C# Class RenderingLibrary.Graphics.NineSlice

Inheritance: IPositionedSizedObject, IRenderable, IVisible
Afficher le fichier Open project: vchelaru/FlatRedBall Class Usage Examples

Méthodes publiques

Свойство Type Description
SourceRectangle Rectangle?

Private Properties

Свойство Type Description
IRenderable void
IRenderable void
IRenderableIpso void
NineSlice System
OldRefreshSourceRectangles void
RefreshSourceRectangles void
RefreshSpriteDimensions void
Render void

Méthodes publiques

Méthode Description
GetBareTextureForNineSliceTexture ( string absoluteTexture ) : string
GetIfShouldUsePattern ( string absoluteTexture ) : bool
LoadAtlasedTexture ( string valueAsString, AtlasedTexture atlasedTexture ) : void

Loads given texture(s) from atlas.

RefreshTextureCoordinatesAndSpriteSizes ( ) : void
SetSingleTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
SetTexturesUsingPattern ( string anyOf9Textures, SystemManagers managers, bool inAtlas ) : void

Private Methods

Méthode Description
IRenderable ( ) : void
IRenderable ( SpriteRenderer spriteRenderer, SystemManagers managers ) : void
IRenderableIpso ( IRenderableIpso parent ) : void
NineSlice ( ) : System
OldRefreshSourceRectangles ( ) : void
RefreshSourceRectangles ( ) : void
RefreshSpriteDimensions ( ) : void
Render ( Sprite sprite, SystemManagers managers, SpriteRenderer spriteRenderer ) : void

Method Details

GetBareTextureForNineSliceTexture() public static méthode

public static GetBareTextureForNineSliceTexture ( string absoluteTexture ) : string
absoluteTexture string
Résultat string

GetIfShouldUsePattern() public static méthode

public static GetIfShouldUsePattern ( string absoluteTexture ) : bool
absoluteTexture string
Résultat bool

LoadAtlasedTexture() public méthode

Loads given texture(s) from atlas.
public LoadAtlasedTexture ( string valueAsString, AtlasedTexture atlasedTexture ) : void
valueAsString string
atlasedTexture AtlasedTexture
Résultat void

RefreshTextureCoordinatesAndSpriteSizes() public méthode

public RefreshTextureCoordinatesAndSpriteSizes ( ) : void
Résultat void

SetSingleTexture() public méthode

public SetSingleTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
texture Microsoft.Xna.Framework.Graphics.Texture2D
Résultat void

SetTexturesUsingPattern() public méthode

public SetTexturesUsingPattern ( string anyOf9Textures, SystemManagers managers, bool inAtlas ) : void
anyOf9Textures string
managers SystemManagers
inAtlas bool True if textures are atlased.
Résultat void

Property Details

SourceRectangle public_oe property

public Rectangle? SourceRectangle
Résultat Rectangle?