|
Mana
|
Main GUI class. More...
#include <gui.h>
Public Member Functions | |
| Gui (Graphics *screen, const std::string &themePath) | |
| ~Gui () override | |
| void | logic () override |
| Performs logic of the GUI. | |
| void | event (Event::Channel channel, const Event &event) override |
| bool | videoResized (int width, int height) |
| Called when the application window has been resized. | |
| gcn::FocusHandler * | getFocusHandler () const |
| gcn::Font * | getFont () const |
| Return game font. | |
| gcn::Font * | getInfoParticleFont () const |
| Return the Font used for "Info Particles", i.e. | |
| void | setUseCustomCursor (bool customCursor) |
| Sets whether a custom cursor should be rendered. | |
| void | setCursorType (Cursor cursor) |
| Sets which cursor should be used. | |
| const std::vector< ThemeInfo > & | getAvailableThemes () const |
| void | setTheme (const ThemeInfo &theme) |
| Sets the global GUI theme. | |
| Theme * | getTheme () const |
| The global GUI theme. | |
Public Member Functions inherited from EventListener | |
| virtual | ~EventListener () |
| void | listen (Event::Channel channel) |
| void | ignore (Event::Channel channel) |
Static Public Attributes | |
| static bool | debugDraw |
Protected Member Functions | |
| void | handleMouseMoved (const gcn::MouseInput &mouseInput) override |
| void | handleTextInput (const TextInput &textInput) |
Private Member Functions | |
| void | updateCursor () |
| void | loadCustomCursors () |
| void | loadSystemCursors () |
Private Attributes | |
| std::vector< ThemeInfo > | mAvailableThemes |
| std::unique_ptr< Theme > | mTheme |
| The global GUI theme. | |
| gcn::Font * | mGuiFont |
| The global GUI font. | |
| gcn::Font * | mInfoParticleFont |
| Font for Info Particles. | |
| bool | mCustomCursor = false |
| Show custom cursor. | |
| float | mCustomCursorScale = 1.0f |
| std::vector< SDL_Cursor * > | mSystemMouseCursors |
| std::vector< SDL_Cursor * > | mCustomMouseCursors |
| Timer | mMouseActivityTimer |
| Cursor | mCursorType = Cursor::Pointer |
| Gui::Gui | ( | Graphics * | screen, |
| const std::string & | themePath | ||
| ) |
|
overridevirtual |
Implements EventListener.
|
inline |
|
inline |
|
overrideprotected |
|
protected |
|
override |
| void Gui::setCursorType | ( | Cursor | cursor | ) |
| void Gui::setTheme | ( | const ThemeInfo & | theme | ) |
| void Gui::setUseCustomCursor | ( | bool | customCursor | ) |
| bool Gui::videoResized | ( | int | width, |
| int | height | ||
| ) |
|
private |
|
private |
|
private |