Member | Description | Type |
name | The name of this object | string |
parent | Handle to parent object | Object@ |
position | Position (x, y) | Vector2 |
pivot | Pivot point (x, y) | Vector2 |
size | Size in pixels (width, height) | Vector2 |
rotation | Rotation angle in radians | float |
scale | Scaling factor [ >0 ] | float |
visible | Object visibility | bool |
red | Color value [0..1] | float |
green | Color value [0..1] | float |
blue | Color value [0..1] | float |
opacity | Color value [0..1] | float |
Remarks: When assigning new values to red, green blue or opacity you also need to call Refresh() to update the object, unless it's an animated object that will update itself eventually.
If you use SetRGB, SetRGBA and SetOpacity the object will be automatically refreshed.
uint ChildCount()
Returns number of children of this object.
Object@ GetChild(uint Index)
Returns handle to child object by index or null if not found.
void Refresh()
Manually refresh object geometry.
void Refresh()
Manually refresh object geometry.
void SetRGB(float Red, float Green, float Blue)
Change object color.
void SetRGBA(float Red, float Green, float Blue, float Opacity)
Change object color.
void SetOpacity(float Opacity)
Change object opacity.
void ChangeAnimation(string& Sequence)
Change animation sequence.
Only works with objects of type <Image>
void SetText(string& Text)
Change text content.
Only works with objects of type <Text>
string& GetText()
Returns text content.
Only works with objects of type <Text>