clan::GUIManager Class Reference

GUI manager. More...

#include <gui_manager.h>

Public Member Functions

Construction
 GUIManager ()
 Constructs a gui manager with a system window manager. More...
 
 GUIManager (const DisplayWindow &display_window)
 Constructs a gui manager with a texture window manager. More...
 
 GUIManager (const std::string &path_to_css_and_resources)
 Fully constructs a gui manager with a system window manager, a css theme and resources. More...
 
 GUIManager (const DisplayWindow &display_window, const std::string &path_to_css_and_resources)
 Fully constructs a gui manager with a texture window manager, a css theme and resources. More...
 
 GUIManager (GUIWindowManager &window_manager, const std::string &path_to_css_and_resources)
 Fully constructs a gui manager with a custom window manager, a css theme and resources. More...
 
 GUIManager (std::shared_ptr< GUIManager_Impl > impl)
 Constructs a GUIManager. More...
 
virtual ~GUIManager ()
 
Attributes
ResourceManager get_resource_manager () const
 Returns the resource manager. More...
 
CSSDocument get_css_document () const
 Returns the CSS document being used. More...
 
GUIWindowManager get_window_manager () const
 Returns the windows manager being used. More...
 
GUIComponentget_capture_component () const
 Returns the mouse capture component. More...
 
GUIComponentget_focused_component ()
 Returns the currently focused component. More...
 
bool get_exit_flag () const
 Returns if a dialog message pump loop should exit. More...
 
int get_exit_code () const
 Returns the dialog exit code. More...
 
std::string get_clipboard_text () const
 Get Clipboard text. More...
 
Events
Signal_v1< std::shared_ptr
< GUIMessage > & > & 
sig_filter_message ()
 bool func_filter_message(std::shared_ptr<GUIMessage> &message) More...
 
Callback_0< int > & func_exec_handler ()
 int func_exec_handler() More...
 
Operations
void set_resource_manager (ResourceManager &resource_manager)
 Set the resource manager (other than the default one) More...
 
void add_theme (const std::string &fullname)
 Adds a GUI theme. More...
 
void add_theme (const std::string &fullname, const FileSystem &fs)
 Adds a GUI theme. More...
 
void set_theme (CSSDocument css)
 Sets the GUI theme. More...
 
void set_theme (const std::string &fullname)
 Sets the GUI theme. More...
 
void set_theme (const std::string &filename, const FileSystem &fs)
 Set the GUI theme. More...
 
void add_resources (const XMLResourceDocument &resources)
 Adds resources to the GUI resource manager. More...
 
void add_resources (const std::string &filename)
 Adds additional resources to the GUI resource manager, by creating a XMLResourceDocument from file automatically. More...
 
void add_resources (const std::string &filename, const FileSystem &fs)
 Adds additional resources to the GUI resource manager. More...
 
void set_window_manager (GUIWindowManager &window_manager)
 Sets the windows manager. More...
 
int exec ()
 Processes messages until exit_with_code is called. More...
 
void process_messages (int timeout)
 Processes all messages available. More...
 
void dispatch_message (std::shared_ptr< GUIMessage > message)
 Sends a GUI message to the message handler target for the message. More...
 
void exit_with_code (int exit_code)
 Breaks the message loop. More...
 
void clear_exit_flag ()
 Clears the flag indicating exec() should exit its message pump loop. More...
 
void set_capture_component (GUIComponent *component, bool state)
 Set the mouse capture component. More...
 
void request_repaint (const Rect &rect, GUIComponent *root_component)
 Mark the specified area to be redrawn. More...
 
void render_windows ()
 Render windows. More...
 
void set_clipboard_text (const std::string &str)
 Set clipboard text. More...
 
void set_tablet_proximity_component (GUIComponent *, bool state)
 Redirect proximity events from tablet to the specified component. More...
 
void set_accelerator_table (const AcceleratorTable &table)
 Set the accelerator table. More...
 

Implementation

class GUIComponent_Impl
 

Detailed Description

GUI manager.


The documentation for this class was generated from the following file: