hx3d  1
2D/3D Simple Game Framework
Public Member Functions | List of all members
hx3d::gui::Widget Class Reference

Base GUI element. More...

#include <widget.hpp>

Public Member Functions

 Widget (Widget *parent)
 Construct a widget from a parent widget. More...
 
void add (Ptr< Widget > widget)
 Add a widget to the list. More...
 
- Public Member Functions inherited from hx3d::graphics::Mesh
virtual void draw (Ptr< Shader > shader)
 Draw the mesh using a shader. More...
 
void setTint (Color tint)
 Set the mesh tint. More...
 
ColorgetTint ()
 Get the mesh tint. More...
 
void updateColor ()
 Update the mesh color from the tint.
 
void setGeometry (Ptr< geom::BaseGeometry > geometry)
 Set the mesh geometry. More...
 
Ptr< geom::BaseGeometry > & getGeometry ()
 Get the mesh geometry. More...
 

Additional Inherited Members

- Public Attributes inherited from hx3d::graphics::Mesh
Transform transform
 Mesh transformation.
 
- Protected Attributes inherited from hx3d::graphics::Mesh
Color _tint
 Tint color.
 
Ptr< geom::BaseGeometry_geometry
 Current geometry.
 

Detailed Description

Base GUI element.

Definition at line 39 of file widget.hpp.

Constructor & Destructor Documentation

hx3d::gui::Widget::Widget ( Widget parent)

Construct a widget from a parent widget.

Parameters
parentWidget (Ptr)

Definition at line 28 of file widget.cpp.

Member Function Documentation

void hx3d::gui::Widget::add ( Ptr< Widget widget)

Add a widget to the list.

Parameters
widgetWidget (Ptr)

Definition at line 62 of file widget.cpp.


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