C# Class NinePatchSample.NinePatch.NinePatchBase

Inheritance: Component
Afficher le fichier Open project: WaveEngine/Samples

Protected Properties

Свойство Type Description
disposed bool

Private Properties

Свойство Type Description
InitMaterial void
LoadTexture void
RefreshTexture void
UnloadTexture void
UpdateNinePatchData void
UpdateTransformRectangleSize void

Méthodes publiques

Méthode Description
Dispose ( ) : void

Releases unmanaged and - optionally - managed resources.

Méthodes protégées

Méthode Description
DefaultValues ( ) : void

The default values

Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Initialize ( ) : void

Performs further custom initialization for this instance.

InternalLoadTexture ( string &textureId, Texture2D &sourceTexture, Rectangle &sourceRecangle ) : void
InternalUnloadTexture ( ) : void
RefreshInnerTexture ( string textureId, Texture2D sourceTexture, Rectangle sourceRecangle ) : void

Private Methods

Méthode Description
InitMaterial ( ) : void

Init material

LoadTexture ( ) : void
RefreshTexture ( ) : void

Refresh the sprite texture

UnloadTexture ( bool innerTextureOnly = false ) : void

Unload texture

UpdateNinePatchData ( string textureId, Texture sourceTexture, Rectangle sourceRectangle ) : void

Updates the strechable rectangles and inner texture.

UpdateTransformRectangleSize ( ) : void

Updates the size of the transform's rectangle.

Method Details

DefaultValues() protected méthode

The default values
protected DefaultValues ( ) : void
Résultat void

Dispose() public méthode

Releases unmanaged and - optionally - managed resources.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Releases unmanaged and - optionally - managed resources
protected Dispose ( bool disposing ) : void
disposing bool /// true to release both managed and unmanaged resources; false to release only unmanaged resources. ///
Résultat void

Initialize() protected méthode

Performs further custom initialization for this instance.
protected Initialize ( ) : void
Résultat void

InternalLoadTexture() protected abstract méthode

protected abstract InternalLoadTexture ( string &textureId, Texture2D &sourceTexture, Rectangle &sourceRecangle ) : void
textureId string
sourceTexture Texture2D
sourceRecangle Rectangle
Résultat void

InternalUnloadTexture() protected abstract méthode

protected abstract InternalUnloadTexture ( ) : void
Résultat void

RefreshInnerTexture() protected méthode

protected RefreshInnerTexture ( string textureId, Texture2D sourceTexture, Rectangle sourceRecangle ) : void
textureId string
sourceTexture Texture2D
sourceRecangle Rectangle
Résultat void

Property Details

disposed protected_oe property

The disposed
protected bool disposed
Résultat bool