Bottle 2D - Lua API 1.0.0
All you need to create games using bottle2D.
|
A Drawable is a base class which contains fonctions common to every Drawable object (Group, Sprite, Text...). More...
#include <header.hpp>
Public Member Functions | |
number | GetZpos () |
Get the object's z order. | |
nil | SetZpos (number val) |
Set the object's z order (an object with a low z order will be in the background) | |
number | GetLowZPos () |
Get the low pos (the low zPos is a creation order, for the object that have the same zPos) | |
nil | Show (bool visible=true) |
Show / hide an object. | |
nil | Hide () |
Hide and object. | |
bool | IsVisible () |
Return truc if the object is visible, false otherwise. | |
bool | IsUpperThan (Drawable drawableToCompare) |
Return true if this Drawable is on to of the the given one (higher Zpos) | |
Public Attributes | |
int | zPos |
Access the object's z order (an object with a low z order will be in the background) | |
bool | visible |
Hide / show the object. |
A Drawable is a base class which contains fonctions common to every Drawable object (Group, Sprite, Text...).
It should not be used directly.
number Drawable::GetLowZPos | ( | ) |
Get the low pos (the low zPos is a creation order, for the object that have the same zPos)
number Drawable::GetZpos | ( | ) |
Get the object's z order.
nil Drawable::Hide | ( | ) |
Hide and object.
bool Drawable::IsUpperThan | ( | Drawable | drawableToCompare | ) |
Return true if this Drawable is on to of the the given one (higher Zpos)
bool Drawable::IsVisible | ( | ) |
Return truc if the object is visible, false otherwise.
nil Drawable::SetZpos | ( | number | val | ) |
Set the object's z order (an object with a low z order will be in the background)
nil Drawable::Show | ( | bool | visible = true | ) |
Show / hide an object.
bool Drawable::visible |
Hide / show the object.
int Drawable::zPos |
Access the object's z order (an object with a low z order will be in the background)