|
ClanLib
2.3.7
|
GUI manager. More...
#include <gui_manager.h>
Public Member Functions | |
Construction | |
| CL_GUIManager () | |
| Constructs a gui manager with a system window manager. More... | |
| CL_GUIManager (const CL_DisplayWindow &display_window) | |
| Constructs a gui manager with a texture window manager. More... | |
| CL_GUIManager (const CL_String &path_to_theme) | |
| Fully constructs a gui manager with a system window manager, a css theme and resources. More... | |
| CL_GUIManager (const CL_DisplayWindow &display_window, const CL_String &path_to_theme) | |
| Fully constructs a gui manager with a texture window manager, a css theme and resources. More... | |
| CL_GUIManager (CL_GUIWindowManager &window_manager, const CL_String &path_to_theme) | |
| Fully constructs a gui manager with a custom window manager, a css theme and resources. More... | |
| CL_GUIManager (CL_SharedPtr< CL_GUIManager_Impl > impl) | |
| Constructs a GUIManager. More... | |
| virtual | ~CL_GUIManager () |
Attributes | |
| bool | is_gui_manager () const |
| Returns true if the parent is the GUI manager. More... | |
| CL_GUITheme | get_theme () const |
| Returns the GUI theme being used. More... | |
| CL_CSSDocument | get_css_document () const |
| Returns the CSS document being used. More... | |
| CL_GUIWindowManager | get_window_manager () const |
| Returns the windows manager being used. More... | |
| CL_GUIComponent * | get_capture_component () const |
| Returns the mouse capture component. More... | |
| CL_GUIComponent * | get_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... | |
| CL_Font | get_registered_font (const CL_FontDescription &desc) |
| Get a registered user defined GUI font (set with register_font()). Returns NULL if not found. More... | |
| CL_String | get_clipboard_text () const |
| Get Clipboard text. More... | |
Events | |
| CL_Signal_v1< CL_GUIMessage & > & | sig_filter_message () |
| bool func_filter_message(const CL_GUIMessage &message) More... | |
| CL_Callback_0< int > & | func_exec_handler () |
| int func_exec_handler() More... | |
Operations | |
| void | add_theme (const CL_String &path_to_theme) |
| Adds a GUI theme directory. More... | |
| void | set_theme (CL_GUITheme &theme) |
| Sets the GUI theme. More... | |
| void | set_css_document (CL_CSSDocument css) |
| Sets the CSS document. More... | |
| void | set_css_document (const CL_String &fullname) |
| Sets the CSS document, by creating a CSSDocument from file automatically. More... | |
| void | set_css_document (const CL_String &filename, const CL_VirtualDirectory &directory) |
| Set css document. More... | |
| void | add_resources (const CL_ResourceManager &resources) |
| Adds additional resources to the GUI resource manager. More... | |
| void | add_resources (const CL_String &filename) |
| Adds additional resources to the GUI resource manager, by creating a ResourceManager from file automatically. More... | |
| void | add_resources (const CL_String &filename, const CL_VirtualDirectory &directory) |
| Adds additional resources to the GUI resource manager. More... | |
| void | initialize_layout_manager (const CL_String &xml_fullname, const CL_String &css_fullname) |
| Load layout. More... | |
| void | set_window_manager (CL_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 (CL_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 (CL_GUIComponent *component, bool state) |
| Set the mouse capture component. More... | |
| void | request_repaint (const CL_Rect &rect, CL_GUIComponent *root_component) |
| Mark the specified area to be redrawn. More... | |
| void | register_font (const CL_Font &font, const CL_FontDescription &desc) |
| Registers a user defined GUI font - referenced using the specified font description. More... | |
| void | render_windows () |
| Render windows. More... | |
| void | set_clipboard_text (const CL_StringRef &str) |
| Set clipboard text. More... | |
| void | set_tablet_proximity_component (CL_GUIComponent *, bool state) |
| Redirect proximity events from tablet to the specified component. More... | |
| void | set_accelerator_table (const CL_AcceleratorTable &table) |
| Set the accelerator table. More... | |
| CL_CSSLayout | create_layout (CL_GUIComponent *component) |
| Creates a css layout for a given component. More... | |
| bool | has_layout (CL_GUIComponent *component) |
| Checks if a component type has layout information available. More... | |
Implementation | |
| class | CL_GUIComponent_Impl |
| class | CL_GUIThemePart |
| class | CL_GUIThemePart_Impl |
GUI manager.
| CL_GUIManager::CL_GUIManager | ( | ) |
Constructs a gui manager with a system window manager.
Remember to add a theme using set_theme() or add_theme().
| CL_GUIManager::CL_GUIManager | ( | const CL_DisplayWindow & | display_window) |
Constructs a gui manager with a texture window manager.
Remember to add a theme using set_theme() or add_theme().
| display_window | = display window to attach gui to. |
| CL_GUIManager::CL_GUIManager | ( | const CL_String & | path_to_theme) |
Fully constructs a gui manager with a system window manager, a css theme and resources.
| path_to_theme | = Path to theme directory. It has to contain resources.xml and theme.css. |
| CL_GUIManager::CL_GUIManager | ( | const CL_DisplayWindow & | display_window, |
| const CL_String & | path_to_theme | ||
| ) |
Fully constructs a gui manager with a texture window manager, a css theme and resources.
| display_window | = display window to attach gui to. |
| path_to_theme | = Path to theme directory. It has to contain resources.xml and theme.css. |
| CL_GUIManager::CL_GUIManager | ( | CL_GUIWindowManager & | window_manager, |
| const CL_String & | path_to_theme | ||
| ) |
Fully constructs a gui manager with a custom window manager, a css theme and resources.
| window_manager | = Window manager |
| path_to_theme | = Path to theme directory. It has to contain resources.xml and theme.css. |
| CL_GUIManager::CL_GUIManager | ( | CL_SharedPtr< CL_GUIManager_Impl > | impl) |
Constructs a GUIManager.
| impl | = Shared Ptr |
|
virtual |
| void CL_GUIManager::add_resources | ( | const CL_ResourceManager & | resources) |
Adds additional resources to the GUI resource manager.
| void CL_GUIManager::add_resources | ( | const CL_String & | filename) |
Adds additional resources to the GUI resource manager, by creating a ResourceManager from file automatically.
| void CL_GUIManager::add_resources | ( | const CL_String & | filename, |
| const CL_VirtualDirectory & | directory | ||
| ) |
Adds additional resources to the GUI resource manager.
| void CL_GUIManager::add_theme | ( | const CL_String & | path_to_theme) |
Adds a GUI theme directory.
| path_to_theme | = Path to theme directory. It has to contain resources.xml and theme.css. |
| void CL_GUIManager::clear_exit_flag | ( | ) |
Clears the flag indicating exec() should exit its message pump loop.
| CL_CSSLayout CL_GUIManager::create_layout | ( | CL_GUIComponent * | component) |
Creates a css layout for a given component.
| void CL_GUIManager::dispatch_message | ( | CL_GUIMessage | message) |
Sends a GUI message to the message handler target for the message.
| int CL_GUIManager::exec | ( | ) |
Processes messages until exit_with_code is called.
| void CL_GUIManager::exit_with_code | ( | int | exit_code) |
Breaks the message loop.
| CL_Callback_0<int>& CL_GUIManager::func_exec_handler | ( | ) |
| CL_GUIComponent* CL_GUIManager::get_capture_component | ( | ) | const |
Returns the mouse capture component.
| CL_String CL_GUIManager::get_clipboard_text | ( | ) | const |
Get Clipboard text.
| CL_CSSDocument CL_GUIManager::get_css_document | ( | ) | const |
Returns the CSS document being used.
| int CL_GUIManager::get_exit_code | ( | ) | const |
Returns the dialog exit code.
| bool CL_GUIManager::get_exit_flag | ( | ) | const |
Returns if a dialog message pump loop should exit.
| CL_GUIComponent* CL_GUIManager::get_focused_component | ( | ) |
Returns the currently focused component.
| CL_Font CL_GUIManager::get_registered_font | ( | const CL_FontDescription & | desc) |
Get a registered user defined GUI font (set with register_font()). Returns NULL if not found.
| CL_GUITheme CL_GUIManager::get_theme | ( | ) | const |
Returns the GUI theme being used.
| CL_GUIWindowManager CL_GUIManager::get_window_manager | ( | ) | const |
Returns the windows manager being used.
| bool CL_GUIManager::has_layout | ( | CL_GUIComponent * | component) |
Checks if a component type has layout information available.
| void CL_GUIManager::initialize_layout_manager | ( | const CL_String & | xml_fullname, |
| const CL_String & | css_fullname | ||
| ) |
Load layout.
|
inline |
Returns true if the parent is the GUI manager.
| void CL_GUIManager::process_messages | ( | int | timeout) |
Processes all messages available.
| timeout | = Timeout (ms). -1 = Wait forever |
| void CL_GUIManager::register_font | ( | const CL_Font & | font, |
| const CL_FontDescription & | desc | ||
| ) |
Registers a user defined GUI font - referenced using the specified font description.
| void CL_GUIManager::render_windows | ( | ) |
Render windows.
| void CL_GUIManager::request_repaint | ( | const CL_Rect & | rect, |
| CL_GUIComponent * | root_component | ||
| ) |
Mark the specified area to be redrawn.
| void CL_GUIManager::set_accelerator_table | ( | const CL_AcceleratorTable & | table) |
Set the accelerator table.
| void CL_GUIManager::set_capture_component | ( | CL_GUIComponent * | component, |
| bool | state | ||
| ) |
Set the mouse capture component.
| void CL_GUIManager::set_clipboard_text | ( | const CL_StringRef & | str) |
Set clipboard text.
| void CL_GUIManager::set_css_document | ( | CL_CSSDocument | css) |
Sets the CSS document.
| void CL_GUIManager::set_css_document | ( | const CL_String & | fullname) |
Sets the CSS document, by creating a CSSDocument from file automatically.
| void CL_GUIManager::set_css_document | ( | const CL_String & | filename, |
| const CL_VirtualDirectory & | directory | ||
| ) |
Set css document.
| filename | = String |
| directory | = Virtual Directory |
| void CL_GUIManager::set_tablet_proximity_component | ( | CL_GUIComponent * | , |
| bool | state | ||
| ) |
Redirect proximity events from tablet to the specified component.
| void CL_GUIManager::set_theme | ( | CL_GUITheme & | theme) |
Sets the GUI theme.
| void CL_GUIManager::set_window_manager | ( | CL_GUIWindowManager & | window_manager) |
Sets the windows manager.
| CL_Signal_v1<CL_GUIMessage &>& CL_GUIManager::sig_filter_message | ( | ) |
bool func_filter_message(const CL_GUIMessage &message)
|
friend |
|
friend |
|
friend |
1.8.4