C# Class NinePatchSample.NinePatch.NinePatchBase

Inheritance: Component
Exibir arquivo Open project: WaveEngine/Samples

Protected Properties

Property Type Description
disposed bool

Private Properties

Property Type Description
InitMaterial void
LoadTexture void
RefreshTexture void
UnloadTexture void
UpdateNinePatchData void
UpdateTransformRectangleSize void

Public Methods

Method Description
Dispose ( ) : void

Releases unmanaged and - optionally - managed resources.

Protected Methods

Method 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

Method 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 method

The default values
protected DefaultValues ( ) : void
return void

Dispose() public method

Releases unmanaged and - optionally - managed resources.
public Dispose ( ) : void
return void

Dispose() protected method

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. ///
return void

Initialize() protected method

Performs further custom initialization for this instance.
protected Initialize ( ) : void
return void

InternalLoadTexture() protected abstract method

protected abstract InternalLoadTexture ( string &textureId, Texture2D &sourceTexture, Rectangle &sourceRecangle ) : void
textureId string
sourceTexture Texture2D
sourceRecangle Rectangle
return void

InternalUnloadTexture() protected abstract method

protected abstract InternalUnloadTexture ( ) : void
return void

RefreshInnerTexture() protected method

protected RefreshInnerTexture ( string textureId, Texture2D sourceTexture, Rectangle sourceRecangle ) : void
textureId string
sourceTexture Texture2D
sourceRecangle Rectangle
return void

Property Details

disposed protected_oe property

The disposed
protected bool disposed
return bool