#include <UIScreen.hpp>
|
| virtual void | load ()=0 |
| | Loads graphics data into memory & pushes to VRAM.
|
| virtual void | unload ()=0 |
| | Unloads graphics data from memory.
|
| virtual void | triggerAction (UIAction action) |
| | Trigger an action to be handled.
|
| virtual void | renderSprites () |
| | Applys sprite colour palette & draws sprites to screen.
|
| virtual void | renderText () |
| | Draws the screen's text. Called after the background is shown.
|
| void | removeSprites () |
| | Clears the displayed sprites from the screen.
|
| virtual int | onTouch (touchPosition *touch) |
| | Hook to allow touch response.
|
| virtual | ~UIScreen ()=default |
| | UIScreen (bool iIsMain) |
|
| void | moveSprite (int spriteId, int x, int y) |
| | Moves the specified sprite to the specified position on the screen.
|
| void | showSprite (int spriteId) |
| | Shows the specified sprite on the screen.
|
| void | hideSprite (int spriteId) |
| | Hides the specified sprite on the screen.
|
Definition at line 6 of file UIScreen.hpp.
◆ ~UIScreen()
| virtual UIScreen::~UIScreen |
( |
| ) |
|
|
virtualdefault |
◆ UIScreen()
| UIScreen::UIScreen |
( |
bool | iIsMain | ) |
|
|
inline |
◆ hideSprite()
| void UIScreen::hideSprite |
( |
int | spriteId | ) |
|
|
protected |
Hides the specified sprite on the screen.
- Parameters
-
| spriteId | the sprite to hide |
Definition at line 43 of file UIScreen.cpp.
◆ load()
| virtual void UIScreen::load |
( |
| ) |
|
|
pure virtual |
◆ moveSprite()
| void UIScreen::moveSprite |
( |
int | spriteId, |
|
|
int | x, |
|
|
int | y ) |
|
protected |
Moves the specified sprite to the specified position on the screen.
- Parameters
-
| spriteId | the sprite to move |
| x | the x position on the screen |
| y | the y position on the screen |
Definition at line 25 of file UIScreen.cpp.
◆ onTouch()
| int UIScreen::onTouch |
( |
touchPosition * | touch | ) |
|
|
virtual |
◆ removeSprites()
| void UIScreen::removeSprites |
( |
| ) |
|
Clears the displayed sprites from the screen.
Definition at line 11 of file UIScreen.cpp.
◆ renderSprites()
| void UIScreen::renderSprites |
( |
| ) |
|
|
virtual |
◆ renderText()
| virtual void UIScreen::renderText |
( |
| ) |
|
|
inlinevirtual |
◆ showSprite()
| void UIScreen::showSprite |
( |
int | spriteId | ) |
|
|
protected |
Shows the specified sprite on the screen.
- Parameters
-
| spriteId | the sprite to show |
Definition at line 34 of file UIScreen.cpp.
◆ triggerAction()
| void UIScreen::triggerAction |
( |
UIAction | action | ) |
|
|
virtual |
◆ unload()
| virtual void UIScreen::unload |
( |
| ) |
|
|
pure virtual |
◆ bgId
◆ isLoaded
| bool UIScreen::isLoaded = false |
◆ isMain
| bool UIScreen::isMain = false |
◆ oam
| OamState* UIScreen::oam = nullptr |
The documentation for this class was generated from the following files: