22 #ifndef FIFE_GUI_FIFECHANMANAGER_H 23 #define FIFE_GUI_FIFECHANMANAGER_H 29 #include <fifechan.hpp> 83 fcn::Gui* getFifechanGUI()
const;
96 void init(
const std::string& backend, int32_t screenWidth, int32_t screenHeight);
111 void add(fcn::Widget* widget);
117 void remove(fcn::Widget* widget);
136 void setConsoleEnabled(
bool console);
143 bool isConsoleEnabled()
const;
159 GuiFont* setDefaultFont(
const std::string& path,
uint32_t size,
const std::string& glyphs);
167 GuiFont* createFont(
const std::string& path =
"",
uint32_t size = 0,
const std::string& glyphs =
"");
171 void releaseFont(
GuiFont* font);
173 void invalidateFonts();
175 virtual bool onSdlEvent(SDL_Event& evt);
177 KeyEvent translateKeyEvent(
const fcn::KeyEvent& evt);
178 MouseEvent translateMouseEvent(
const fcn::MouseEvent& evt);
187 void setTabbingEnabled(
bool tabbing);
195 bool isTabbingEnabled()
const;
198 static int32_t convertFifechanKeyToFifeKey(int32_t value);
Console * getConsole() const
Gets the console.
fcn::Container * getTopContainer() const
Gets the top container.
void setCursor(Cursor *cursor)
Sets the cursor.
fcn::FocusHandler * m_focushandler
GuiFont * getDefaultFont()
Gets the default font.
fcn::Container * m_fcn_topcontainer
GuiImageLoader * m_imgloader
std::vector< GuiFont * > m_fonts
std::set< fcn::Widget * > m_widgets
fcn::Graphics * m_gui_graphics
Cursor class manages mouse cursor handling.
Cursor * getCursor() const
Gets the cursor.