|
| UiSprite (const Ogre::String &name) |
| Constructor. More...
|
|
| UiSprite (const Ogre::String &name, const Ogre::String &path_name, UiWidget *parent) |
| Constructor. More...
|
|
virtual | ~UiSprite () |
| Destructor. More...
|
|
void | Initialise () |
| Loads an initializes the sprite. More...
|
|
virtual void | Update () |
| Updates the sprite state. More...
|
|
virtual void | Render () |
| Renders the sprite. More...
|
|
virtual void | UpdateTransformation () |
| Updates the sprite state. More...
|
|
void | SetImage (const Ogre::String &image) |
| Sets the sprite image. More...
|
|
void | SetImage (const char *image) override |
| Sets the sprite image. More...
|
|
void | SetVertexShader (const Ogre::String &shader) |
| Sets the vertex shader for the sprite. More...
|
|
void | SetFragmentShader (const Ogre::String &shader) |
| Sets the fragment shader for the sprite. More...
|
|
void | UpdateGeometry () |
| Recalculates the sprite geometry. More...
|
|
| UiWidget (const Ogre::String &name) |
| Constructor. More...
|
|
| UiWidget (const Ogre::String &name, const Ogre::String &path_name, UiWidget *parent) |
| Constructor. More...
|
|
virtual | ~UiWidget () |
| Destructor. More...
|
|
void | Initialise () |
| Initializes the widget. More...
|
|
virtual void | Update () |
| Updates the widget status. More...
|
|
void | OnResize () |
| Handles resizing events. More...
|
|
virtual void | Render () |
| Renders the widget and it's children. More...
|
|
void | SetVisible (const bool visible) |
| Toggles the widget visibility. More...
|
|
bool | IsVisible () const |
| Checks the widget visibility. More...
|
|
const Ogre::String & | GetName () const |
| Retrieves the widget name. More...
|
|
void | AddChild (UiWidget *widget) |
| Add other widget as the widget's child. More...
|
|
UiWidget * | GetChild (const Ogre::String &name) |
| Retrieves a children by name. More...
|
|
UiWidget * | GetChild (const unsigned int id) |
| Retrieves a children by ID. More...
|
|
unsigned int | GetNumberOfChildren () |
| Counts the widget's children. More...
|
|
void | RemoveAllChildren () |
| Removes all children widgets. More...
|
|
void | AddAnimation (UiAnimation *animation) |
| Adds an animation to the widget. More...
|
|
const Ogre::String & | GetCurrentAnimationName () const |
| Retrieves the current animation name. More...
|
|
UiAnimation::State | GetAnimationState () const |
| Retrieves the current animation state. More...
|
|
void | PlayAnimation (const Ogre::String &animation, UiAnimation::State state, const float start, const float end) |
| Plays an animation. More...
|
|
void | ScriptPlayAnimation (const char *name) |
| Plays an animation. More...
|
|
void | ScriptPlayAnimationStop (const char *name) |
| Plays an animation. More...
|
|
void | ScriptPlayAnimation (const char *name, const float start, const float end) |
|
void | ScriptPlayAnimationStop (const char *name, const float start, const float end) |
| Plays an animation. More...
|
|
void | ScriptSetDefaultAnimation (const char *animation) |
| Sets the default animation for the widget. More...
|
|
int | ScriptAnimationSync () |
| Synchronizes an animation. More...
|
|
void | SetUpdateTransformation () |
| Marks the widget as transformed. More...
|
|
virtual void | UpdateTransformation () |
| Recalculates the widget geometry. More...
|
|
void | SetAlign (const UiWidget::Align align) |
| Sets the widget horizontal alignment. More...
|
|
void | SetVerticalAlign (const UiWidget::VerticalAlign valign) |
| Sets the widget vertical alignment. More...
|
|
float | GetFinalZ () const |
| Retrieves the final Z-index of the widget after a transformation. More...
|
|
Ogre::Vector2 | GetFinalOrigin () const |
| Retrieves the coordinates of the widget after a transformation. More...
|
|
Ogre::Vector2 | GetFinalTranslate () const |
| Retrieves the final translation of the widget after a transformation. More...
|
|
Ogre::Vector2 | GetFinalSize () const |
| Retrieves the final size of the widget after a transformation. More...
|
|
Ogre::Vector2 | GetFinalScale () const |
| Retrieves the final scale of the widget after a transformation. More...
|
|
Ogre::Vector4 | GetFinalScissor (bool &scissor) const |
| Retrieves the final scissor of the widget after a transformation. More...
|
|
float | GetFinalRotation () const |
| Retrieves the final rotation of the widget. More...
|
|
void | SetOriginX (const float percent, const float x) |
| Sets the X coordinate origin for the widget. More...
|
|
void | SetOriginY (const float percent, const float y) |
| Sets the Y coordinate origin for the widget. More...
|
|
void | SetX (const float percent, const float x) |
| Sets the X coordinate for the widget. More...
|
|
void | GetX (float &percent, float &x) |
| Retrieves the X coordinate for the widget. More...
|
|
void | SetY (const float percent, const float y) |
| Sets the Y coordinate for the widget. More...
|
|
void | GetY (float &percent, float &y) |
| Retrieves the Y coordinate for the widget. More...
|
|
void | SetZ (const float z) |
| Sets the widget Z-index. More...
|
|
void | SetWidth (const float percent, const float width) |
| Sets the width the widget. More...
|
|
void | GetWidth (float &percent, float &width) |
| Retrieves the width of the widget. More...
|
|
void | SetHeight (const float percent, const float height) |
| Sets the height the widget. More...
|
|
void | GetHeight (float &percent, float &height) |
| Retrieves the height of the widget. More...
|
|
void | SetScale (const Ogre::Vector2 &scale) |
| Sets the widget scale. More...
|
|
void | SetRotation (const float degree) |
| Sets the widget rotation. More...
|
|
void | SetScissorArea (const float percent_x1, const float x1, const float percent_y1, const float y1, const float percent_x2, const float x2, const float percent_y2, const float y2) |
| Sets the widget scissor area. More...
|
|
void | SetGlobalScissor (const bool global) |
|
void | SetColour (const float r, const float g, const float b) |
| Sets the widget colour. More...
|
|
void | SetColours (const float r1, const float g1, const float b1, const float r2, const float g2, const float b2, const float r3, const float g3, const float b3, const float r4, const float g4, const float b4) |
| Sets the widget colour. More...
|
|
void | SetAlpha (const float a) |
| Sets the widget transparency. More...
|
|
virtual void | SetText (const char *text) |
| Sets the text of the widget. More...
|
|
virtual void | SetImage (const char *image) |
| Sets the text of the widget. More...
|
|
float | ScriptGetWidth () |
| Retrieves the absolute width of the widget. More...
|
|
void | ScriptSetWidth (float width) |
| Sets the absolute width of the widget. More...
|
|
float | ScriptGetHeight () |
| Retrieves the absolute height of the widget. More...
|
|
void | ScriptSetHeight (float height) |
| Sets the absolute height of the widget. More...
|
|