31#include <guichan/gui.hpp>
82 Gui(
Graphics *screen,
const std::string &themePath);
90 void logic()
override;
102 {
return mFocusHandler; }
A central point of control for graphics.
Timer mMouseActivityTimer
void handleTextInput(const TextInput &textInput)
bool mCustomCursor
Show custom cursor.
void handleMouseMoved(const gcn::MouseInput &mouseInput) override
gcn::Font * getFont() const
Return game font.
gcn::Font * mInfoParticleFont
Font for Info Particles.
gcn::Font * getInfoParticleFont() const
Return the Font used for "Info Particles", i.e.
std::vector< ThemeInfo > mAvailableThemes
bool videoResized(int width, int height)
Called when the application window has been resized.
std::unique_ptr< Theme > mTheme
The global GUI theme.
std::vector< SDL_Cursor * > mCustomMouseCursors
gcn::Font * mGuiFont
The global GUI font.
Theme * getTheme() const
The global GUI theme.
gcn::FocusHandler * getFocusHandler() const
void setUseCustomCursor(bool customCursor)
Sets whether a custom cursor should be rendered.
std::vector< SDL_Cursor * > mSystemMouseCursors
void event(Event::Channel channel, const Event &event) override
void setTheme(const ThemeInfo &theme)
Sets the global GUI theme.
void setCursorType(Cursor cursor)
Sets which cursor should be used.
const std::vector< ThemeInfo > & getAvailableThemes() const
void logic() override
Performs logic of the GUI.
Simple timer that can be used to check if a certain amount of time has passed.
SDLInput * guiInput
GUI input.
gcn::Font * monoFont
Monospaced text font.
Cursor
Cursors are in graphic order from left to right.
gcn::Font * boldFont
Bolded text font.