NGUI: Next-Gen UI kit  3.7.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
UISpriteData Class Reference
Inheritance diagram for UISpriteData:
UIAtlasMaker.SpriteEntry

Public Member Functions

void SetRect (int x, int y, int width, int height)
 Convenience function – set the X, Y, width, and height. More...
 
void SetPadding (int left, int bottom, int right, int top)
 Convenience function – set the sprite's padding. More...
 
void SetBorder (int left, int bottom, int right, int top)
 Convenience function – set the sprite's border. More...
 
void CopyFrom (UISpriteData sd)
 Copy all values of the specified sprite data. More...
 
void CopyBorderFrom (UISpriteData sd)
 Copy the border information from the specified sprite. More...
 

Public Attributes

string name = "Sprite"
 
int x = 0
 
int y = 0
 
int width = 0
 
int height = 0
 
int borderLeft = 0
 
int borderRight = 0
 
int borderTop = 0
 
int borderBottom = 0
 
int paddingLeft = 0
 
int paddingRight = 0
 
int paddingTop = 0
 
int paddingBottom = 0
 

Properties

bool hasBorder [get]
 Whether the sprite has a border. More...
 
bool hasPadding [get]
 Whether the sprite has been offset via padding. More...
 

Member Function Documentation

void UISpriteData.CopyBorderFrom ( UISpriteData  sd)

Copy the border information from the specified sprite.

void UISpriteData.CopyFrom ( UISpriteData  sd)

Copy all values of the specified sprite data.

void UISpriteData.SetBorder ( int  left,
int  bottom,
int  right,
int  top 
)

Convenience function – set the sprite's border.

void UISpriteData.SetPadding ( int  left,
int  bottom,
int  right,
int  top 
)

Convenience function – set the sprite's padding.

void UISpriteData.SetRect ( int  x,
int  y,
int  width,
int  height 
)

Convenience function – set the X, Y, width, and height.

Member Data Documentation

int UISpriteData.borderBottom = 0
int UISpriteData.borderLeft = 0
int UISpriteData.borderRight = 0
int UISpriteData.borderTop = 0
int UISpriteData.height = 0
string UISpriteData.name = "Sprite"
int UISpriteData.paddingBottom = 0
int UISpriteData.paddingLeft = 0
int UISpriteData.paddingRight = 0
int UISpriteData.paddingTop = 0
int UISpriteData.width = 0
int UISpriteData.x = 0
int UISpriteData.y = 0

Property Documentation

bool UISpriteData.hasBorder
get

Whether the sprite has a border.

bool UISpriteData.hasPadding
get

Whether the sprite has been offset via padding.


The documentation for this class was generated from the following file: