22 #ifndef FIFE_VIDEO_GUI_GUICHANMANAGER_H
23 #define FIFE_VIDEO_GUI_GUICHANMANAGER_H
29 #include <guichan.hpp>
95 void init(
const std::string& backend, int32_t screenWidth, int32_t screenHeight);
110 void add(gcn::Widget* widget);
115 void remove(gcn::Widget* widget);
GuiFont * setDefaultFont(const std::string &path, uint32_t size, const std::string &glyphs)
Set the global font properties.
void resizeTopContainer(uint32_t x, uint32_t y, uint32_t width, uint32_t height)
Resizes the top container.
gcn::Gui * getGuichanGUI() const
Gets the member pointer to the Guichan GUI.
gcn::Graphics * m_gui_graphics
MouseEvent translateMouseEvent(const gcn::MouseEvent &evt)
gcn::Container * m_gcn_topcontainer
virtual void turn()
Performs the GUI logic and draws the GUI accordingly.
KeyEvent translateKeyEvent(const gcn::KeyEvent &evt)
GuiFont * createFont(const std::string &path="", uint32_t size=0, const std::string &glyphs="")
Gets font with given properties.
void add(gcn::Widget *widget)
Adds a new widget.
gcn::FocusHandler * m_focushandler
GuiFont * getDefaultFont()
Gets the default font.
void releaseFont(GuiFont *font)
Releases given font.
void init(const std::string &backend, int32_t screenWidth, int32_t screenHeight)
Inits the GUI Manager.
gcn::Container * getTopContainer() const
Gets the top container.
Console * getConsole() const
Gets the console.
GuiImageLoader * m_imgloader
static int32_t convertGuichanKeyToFifeKey(int32_t value)
GUIChanManager()
Constructor.
virtual bool onSdlEvent(SDL_Event &evt)
Called when an SDL event is received from SDL.
virtual ~GUIChanManager()
Destructor.
std::set< gcn::Widget * > m_widgets
std::vector< GuiFont * > m_fonts