[OgreKit Lua]

Public Member Functions | List of all members
gsGUI3DButton Class Reference
Inheritance diagram for gsGUI3DButton:
gsGUI3DElement gsRectangleDesigned

Public Member Functions

 gsGUI3DButton (tsPanel *panel, Gui3D::Button *btn)
 
 ~gsGUI3DButton ()
 
void setText (const gkString &txt)
 
void setBackgroundImage (const gkString &defaultSpriteName, const gkString &overSpriteName, const gkString &clickedSpriteName, const gkString &inactiveSpriteName)
 
void setTextColor (float r, float g, float b, float a)
 
void setFont (int fontIdx)
 
 SCRIPT_CALLBACKS (Button, setPressedCallback, onClicked)
 
- Public Member Functions inherited from gsGUI3DElement
 gsGUI3DElement (tsPanel *panel, Gui3D::PanelElement *elem)
 
 ~gsGUI3DElement ()
 
void setSize (int width, int height)
 
void setPosition (int width, int height)
 
gsVector3 getPosition ()
 
void setName (const gkString &name)
 
const gkString & getName ()
 
bool isHovered ()
 
bool isFocused ()
 
void setFocus (bool b)
 
template<class T >
cast ()
 
GuiType getType ()
 
- Public Member Functions inherited from gsRectangleDesigned
 gsRectangleDesigned (Gorilla::Rectangle *rect)
 
void setBackground (const gsVector4 &col)
 
void setBackground (float r, float g, float b, float a)
 
void setBackground (const gkString &spriteName)
 
void setBorder (float width, const gsVector4 &col)
 
void setBorder (float width, float r, float g, float b, float a)
 

Additional Inherited Members

- Protected Attributes inherited from gsGUI3DElement
Gui3D::PanelElement * m_elem
 
tsPanelm_container
 
gkString m_name
 

Constructor & Destructor Documentation

gsGUI3DButton::gsGUI3DButton ( tsPanel panel,
Gui3D::Button *  btn 
)
inline
gsGUI3DButton::~gsGUI3DButton ( )
inline

Member Function Documentation

gsGUI3DButton::SCRIPT_CALLBACKS ( Button  ,
setPressedCallback  ,
onClicked   
)
void gsGUI3DButton::setBackgroundImage ( const gkString &  defaultSpriteName,
const gkString &  overSpriteName,
const gkString &  clickedSpriteName,
const gkString &  inactiveSpriteName 
)
inline
void gsGUI3DButton::setFont ( int  fontIdx)
inline
void gsGUI3DButton::setText ( const gkString &  txt)
inline
void gsGUI3DButton::setTextColor ( float  r,
float  g,
float  b,
float  a 
)
inline