|
jade-engine
0.0
|
Public Member Functions | |
| Button (const ButtonParams ¶ms) | |
| void | Disable (bool disabled) |
| bool | Disabled () const |
| void | Show (const bool shown) override |
| void | Update () override |
| void | SetPosition (uint32_t x, uint32_t y) |
| void | SetCenterPosition (uint32_t x, uint32_t y) |
| int32_t | GetWidth () const |
| int32_t | GetHeight () const |
| int32_t | GetX () const |
| int32_t | GetY () const |
| int32_t | GetCenterX () const |
| int32_t | GetCenterY () const |
| void | SetText (const std::string &text) |
| bool | Pressed () |
| bool | Down () |
| bool | Released () |
Public Member Functions inherited from JadeEngine::IGameObject | |
| IGameObject () | |
| virtual void | Clean () |
| virtual LoadState | Load (SDL_Renderer *renderer) |
| virtual void | Render (SDL_Renderer *renderer) |
| LoadState | GetLoadState () const |
| void | SetLoadState (const LoadState newState) |
| bool | IsShown () const |
| int32_t | GetZ () const |
| void | Destroy () |
| bool | DestructionWanted () const |
Additional Inherited Members | |
Public Attributes inherited from JadeEngine::IGameObject | |
| const std::shared_ptr< Transform > | transform |
Protected Attributes inherited from JadeEngine::IGameObject | |
| LoadState | _loadState |
| bool | _shown |
| int32_t | _z |
|
overridevirtual |
Show or hide game object.
Reimplemented from JadeEngine::IGameObject.
|
overridevirtual |
Triggered every frame while the scene that owns this game object is active and the game object was successfully loaded.
The trigger order is the following: IScene::PreUpdate -> IGameObject::Load -> IGameObject::Update -> IScene::Update -> IGameObject::Load -> IGameObject::Render.
To obtain delta time since last frame use GTime.deltaTime.
Reimplemented from JadeEngine::IGameObject.