My Project
Public Member Functions | Public Attributes | Protected Attributes | List of all members
ParaEngine::GUITextureElement Struct Reference

a texture from a rectangular region of bitmap, and one additional texture color More...

#include <GUIResource.h>

Public Member Functions

string ToScript (int index, int option=0)
 
void SetElement (TextureEntity *pTexture, const RECT *prcTexture=NULL, Color defaultTextureColor=0xffffffff)
 
TextureEntityGetTexture ()
 
void Cleanup ()
 
void GetRect (RECT *pOut)
 get bounding rect of this element on the composite texture More...
 

Public Attributes

RECT rcTexture
 
LinearColor TextureColor
 
string name
 

Protected Attributes

asset_ptr< TextureEntitypTexture
 

Detailed Description

a texture from a rectangular region of bitmap, and one additional texture color

Member Function Documentation

§ GetRect()

void GUITextureElement::GetRect ( RECT pOut)

get bounding rect of this element on the composite texture

2009.8.16, LiXizhi: for unavailable texture, we used texture width (-1, -1) and offset by this negative width whenever a smaller inner region is specified(making the rcTexture.right and bottom more negative). so in case, the texture width is suddenly available, we can offset (image_width+1, image_height+1) to obtain the inner region properly


The documentation for this struct was generated from the following files: