[OgreKit Lua]

Public Types | Public Member Functions | Public Attributes | List of all members
tsPanel Class Reference

Public Types

typedef utList
< gsGUI3DScriptCallback * > 
tsScriptCallbackList
 

Public Member Functions

 tsPanel (Gui3D::PanelContainer *panel, bool is2D)
 
 ~tsPanel ()
 
void setVisible (bool show)
 
bool isVisible ()
 
bool mouseIntersection ()
 
void attachToObject (gsGameObject *obj)
 
void setPosition (float x, float y, float z)
 
void setScale (float x, float y, float z)
 
void setRotation (float x, float y, float z)
 
gsVector2 getSize ()
 
Gui3D::PanelColors * getSettings ()
 
void setTransformState (const gkTransformState &st)
 
gsGUI3DCaptioncreateCaption (float x, float y, int width, int height, const gkString &text, int fontSize=-1, int align=0, int valign=0)
 
gsGUI3DButtoncreateButton (float x, float y, int width, int height, const gkString &text, int fontSize=-1)
 
gsGUI3DCheckboxcreateCheckbox (float x, float y, int width, int height)
 
gsGUI3DComboboxcreateCombobox (float x, float y, int width, int height, int showElements=3)
 
gsGUI3DListboxcreateListbox (float x, float y, int width, int height, int showElements=3)
 
gsGUI3DProgressbarcreateProgressbar (float x, float y, int width, int height)
 
gsGUI3DScrollbarcreateScrollbar (float x, float y, int width, int height, float minValue=0, float maxValue=100)
 
gsGUI3DTextFieldcreateTextfield (float x, float y, int width, int height, const gkString &text="")
 
gsGUI3DRectanglecreateRectangle (float x, float y, int width, int height, const gsVector4 &col=gsVector4(1.f, 1.f, 1.f,.75f))
 
gsGUI3DRectanglecreateRectangle (float x, float y, int width, int height, const gkString &spriteName)
 
void setBackgroundColor (const gsVector4 &)
 
void setBackgroundColor (float r, float g, float b, float a)
 
void setBackgroundBorder (float width, const gsVector4 &col)
 
void destroy (gsGUI3DRectangle *rect)
 
void addCallback (gsGUI3DScriptCallback *callback)
 
void removeCallback (gsGUI3DScriptCallback *callback)
 
void clearCallbacks ()
 

Public Attributes

Gui3D::PanelContainer * m_panelContainer
 
bool m_is2D
 

Member Typedef Documentation

Constructor & Destructor Documentation

tsPanel::tsPanel ( Gui3D::PanelContainer *  panel,
bool  is2D 
)
inline
tsPanel::~tsPanel ( )
inline

Member Function Documentation

void tsPanel::addCallback ( gsGUI3DScriptCallback callback)
void tsPanel::attachToObject ( gsGameObject obj)
void tsPanel::clearCallbacks ( )
gsGUI3DButton* tsPanel::createButton ( float  x,
float  y,
int  width,
int  height,
const gkString &  text,
int  fontSize = -1 
)
gsGUI3DCaption* tsPanel::createCaption ( float  x,
float  y,
int  width,
int  height,
const gkString &  text,
int  fontSize = -1,
int  align = 0,
int  valign = 0 
)
gsGUI3DCheckbox* tsPanel::createCheckbox ( float  x,
float  y,
int  width,
int  height 
)
gsGUI3DCombobox* tsPanel::createCombobox ( float  x,
float  y,
int  width,
int  height,
int  showElements = 3 
)
gsGUI3DListbox* tsPanel::createListbox ( float  x,
float  y,
int  width,
int  height,
int  showElements = 3 
)
gsGUI3DProgressbar* tsPanel::createProgressbar ( float  x,
float  y,
int  width,
int  height 
)
gsGUI3DRectangle* tsPanel::createRectangle ( float  x,
float  y,
int  width,
int  height,
const gsVector4 col = gsVector4(1.f, 1.f, 1.f,.75f) 
)
gsGUI3DRectangle* tsPanel::createRectangle ( float  x,
float  y,
int  width,
int  height,
const gkString &  spriteName 
)
gsGUI3DScrollbar* tsPanel::createScrollbar ( float  x,
float  y,
int  width,
int  height,
float  minValue = 0,
float  maxValue = 100 
)
gsGUI3DTextField* tsPanel::createTextfield ( float  x,
float  y,
int  width,
int  height,
const gkString &  text = "" 
)
void tsPanel::destroy ( gsGUI3DRectangle rect)
Gui3D::PanelColors* tsPanel::getSettings ( )
inline
gsVector2 tsPanel::getSize ( )
inline
bool tsPanel::isVisible ( )
inline
bool tsPanel::mouseIntersection ( )
inline
void tsPanel::removeCallback ( gsGUI3DScriptCallback callback)
void tsPanel::setBackgroundBorder ( float  width,
const gsVector4 col 
)
void tsPanel::setBackgroundColor ( const gsVector4 )
void tsPanel::setBackgroundColor ( float  r,
float  g,
float  b,
float  a 
)
void tsPanel::setPosition ( float  x,
float  y,
float  z 
)
void tsPanel::setRotation ( float  x,
float  y,
float  z 
)
void tsPanel::setScale ( float  x,
float  y,
float  z 
)
void tsPanel::setTransformState ( const gkTransformState &  st)
void tsPanel::setVisible ( bool  show)
inline

Member Data Documentation

bool tsPanel::m_is2D
Gui3D::PanelContainer* tsPanel::m_panelContainer