|
ClanLib
2.3.7
|
GUI window manager interface. More...
#include <gui_window_manager.h>

Public Types | |
Enumerations | |
| enum | CL_WindowManagerType { cl_wm_type_system, cl_wm_type_texture } |
Public Member Functions | |
Construction | |
| CL_GUIWindowManager () | |
| Constructs a null instance. More... | |
| CL_GUIWindowManager (CL_GUIWindowManagerProvider *provider) | |
| Constructs a window manager. More... | |
| CL_GUIWindowManager (const CL_GUIWindowManager &src) | |
| Duplicates the reference to a window manager. More... | |
| ~CL_GUIWindowManager () | |
Attributes | |
| bool | is_null () const |
| Is Null. More... | |
| CL_GUIWindowManagerProvider * | get_provider () const |
| Retrieves the provider. More... | |
| CL_WindowManagerType | get_window_manager_type () const |
| Get Window manager type. More... | |
Operations | |
| void | set_site (CL_GUIWindowManagerSite *site) |
| Set site. More... | |
| void | create_window (CL_GUITopLevelWindow *handle, CL_GUITopLevelWindow *owner, CL_GUIComponent *component, CL_GUITopLevelDescription description) |
| void | destroy_window (CL_GUITopLevelWindow *handle) |
| Destroy window. More... | |
| void | enable_window (CL_GUITopLevelWindow *handle, bool enable) |
| Enable window. More... | |
| bool | has_focus (CL_GUITopLevelWindow *handle) const |
| Has focus. More... | |
| void | set_visible (CL_GUITopLevelWindow *handle, bool visible, bool activate_root_win) |
| Set visible. More... | |
| void | set_geometry (CL_GUITopLevelWindow *handle, const CL_Rect &geometry, bool client_area) |
| Set geometry. More... | |
| CL_Rect | get_geometry (CL_GUITopLevelWindow *handle, bool client_area) const |
| Get geometry. More... | |
| CL_Point | screen_to_window (CL_GUITopLevelWindow *handle, const CL_Point &screen_point, bool client_area) const |
| Screen to window. More... | |
| CL_Point | window_to_screen (CL_GUITopLevelWindow *handle, const CL_Point &window_point, bool client_area) const |
| Window to screen. More... | |
| CL_GraphicContext & | get_gc (CL_GUITopLevelWindow *handle) const |
| Get gc. More... | |
| CL_InputContext & | get_ic (CL_GUITopLevelWindow *handle) const |
| Get ic. More... | |
| CL_GraphicContext | begin_paint (CL_GUITopLevelWindow *handle, const CL_Rect &update_region) |
| Begin paint. More... | |
| void | set_cliprect (CL_GUITopLevelWindow *handle, CL_GraphicContext &gc, const CL_Rect &rect) |
| Set cliprect. More... | |
| void | reset_cliprect (CL_GUITopLevelWindow *handle, CL_GraphicContext &gc) |
| Reset cliprect. More... | |
| void | push_cliprect (CL_GUITopLevelWindow *handle, CL_GraphicContext &gc, const CL_Rect &rect) |
| Push cliprect. More... | |
| void | pop_cliprect (CL_GUITopLevelWindow *handle, CL_GraphicContext &gc) |
| Pop cliprect. More... | |
| void | end_paint (CL_GUITopLevelWindow *handle, const CL_Rect &update_region) |
| End paint. More... | |
| void | request_repaint (CL_GUITopLevelWindow *handle, const CL_Rect &update_region) |
| Request repaint. More... | |
| void | bring_to_front (CL_GUITopLevelWindow *handle) |
| Bring to front. More... | |
| bool | is_minimized (CL_GUITopLevelWindow *handle) const |
| Is minimized. More... | |
| bool | is_maximized (CL_GUITopLevelWindow *handle) const |
| Is maximized. More... | |
| void | process_message () |
| Process message. More... | |
| void | capture_mouse (CL_GUITopLevelWindow *handle, bool state) |
| Capture mouse. More... | |
| CL_DisplayWindow | get_display_window (CL_GUITopLevelWindow *handle) const |
| Get display window. More... | |
| void | set_cursor (CL_GUITopLevelWindow *handle, const CL_Cursor &cursor) |
| Set cursor. More... | |
| void | set_cursor (CL_GUITopLevelWindow *handle, enum CL_StandardCursor type) |
| Set cursor. More... | |
| void | update () |
| Perform any updates. More... | |
| void | setup_painting () |
| Initial setup for painting all top level windows. More... | |
| void | complete_painting () |
| Final completion for painting all top level windows. More... | |
GUI window manager interface.
| CL_GUIWindowManager::CL_GUIWindowManager | ( | ) |
Constructs a null instance.
| CL_GUIWindowManager::CL_GUIWindowManager | ( | CL_GUIWindowManagerProvider * | provider) |
Constructs a window manager.
| provider | = The theme provider |
| CL_GUIWindowManager::CL_GUIWindowManager | ( | const CL_GUIWindowManager & | src) |
Duplicates the reference to a window manager.
| CL_GUIWindowManager::~CL_GUIWindowManager | ( | ) |
| CL_GraphicContext CL_GUIWindowManager::begin_paint | ( | CL_GUITopLevelWindow * | handle, |
| const CL_Rect & | update_region | ||
| ) |
Begin paint.
| handle | = GUITop Level Window |
| update_region | = Rect |
| void CL_GUIWindowManager::bring_to_front | ( | CL_GUITopLevelWindow * | handle) |
Bring to front.
| handle | = GUITop Level Window |
| void CL_GUIWindowManager::capture_mouse | ( | CL_GUITopLevelWindow * | handle, |
| bool | state | ||
| ) |
Capture mouse.
| handle | = GUITop Level Window |
| state | = bool |
| void CL_GUIWindowManager::complete_painting | ( | ) |
Final completion for painting all top level windows.
| void CL_GUIWindowManager::create_window | ( | CL_GUITopLevelWindow * | handle, |
| CL_GUITopLevelWindow * | owner, | ||
| CL_GUIComponent * | component, | ||
| CL_GUITopLevelDescription | description | ||
| ) |
| void CL_GUIWindowManager::destroy_window | ( | CL_GUITopLevelWindow * | handle) |
Destroy window.
| handle | = GUITop Level Window |
| void CL_GUIWindowManager::enable_window | ( | CL_GUITopLevelWindow * | handle, |
| bool | enable | ||
| ) |
Enable window.
| handle | = GUITop Level Window |
| enable | = bool |
| void CL_GUIWindowManager::end_paint | ( | CL_GUITopLevelWindow * | handle, |
| const CL_Rect & | update_region | ||
| ) |
End paint.
| handle | = GUITop Level Window |
| update_region | = Rect |
| CL_DisplayWindow CL_GUIWindowManager::get_display_window | ( | CL_GUITopLevelWindow * | handle) | const |
Get display window.
| handle | = GUITop Level Window |
| CL_GraphicContext& CL_GUIWindowManager::get_gc | ( | CL_GUITopLevelWindow * | handle) | const |
Get gc.
| handle | = GUITop Level Window |
| CL_Rect CL_GUIWindowManager::get_geometry | ( | CL_GUITopLevelWindow * | handle, |
| bool | client_area | ||
| ) | const |
Get geometry.
| handle | = GUITop Level Window |
| client_area | = bool |
| CL_InputContext& CL_GUIWindowManager::get_ic | ( | CL_GUITopLevelWindow * | handle) | const |
Get ic.
| handle | = GUITop Level Window |
| CL_GUIWindowManagerProvider* CL_GUIWindowManager::get_provider | ( | ) | const |
Retrieves the provider.
| CL_WindowManagerType CL_GUIWindowManager::get_window_manager_type | ( | ) | const |
Get Window manager type.
| bool CL_GUIWindowManager::has_focus | ( | CL_GUITopLevelWindow * | handle) | const |
Has focus.
| handle | = GUITop Level Window |
| bool CL_GUIWindowManager::is_maximized | ( | CL_GUITopLevelWindow * | handle) | const |
Is maximized.
| handle | = GUITop Level Window |
| bool CL_GUIWindowManager::is_minimized | ( | CL_GUITopLevelWindow * | handle) | const |
Is minimized.
| handle | = GUITop Level Window |
| bool CL_GUIWindowManager::is_null | ( | ) | const |
Is Null.
| void CL_GUIWindowManager::pop_cliprect | ( | CL_GUITopLevelWindow * | handle, |
| CL_GraphicContext & | gc | ||
| ) |
Pop cliprect.
| handle | = GUITop Level Window |
| gc | = Graphic Context |
| void CL_GUIWindowManager::process_message | ( | ) |
Process message.
| void CL_GUIWindowManager::push_cliprect | ( | CL_GUITopLevelWindow * | handle, |
| CL_GraphicContext & | gc, | ||
| const CL_Rect & | rect | ||
| ) |
Push cliprect.
| handle | = GUITop Level Window |
| gc | = Graphic Context |
| rect | = Clip rect |
| void CL_GUIWindowManager::request_repaint | ( | CL_GUITopLevelWindow * | handle, |
| const CL_Rect & | update_region | ||
| ) |
Request repaint.
| handle | = GUITop Level Window |
| update_region | = Rect |
| void CL_GUIWindowManager::reset_cliprect | ( | CL_GUITopLevelWindow * | handle, |
| CL_GraphicContext & | gc | ||
| ) |
Reset cliprect.
| handle | = GUITop Level Window |
| gc | = Graphic Context |
| CL_Point CL_GUIWindowManager::screen_to_window | ( | CL_GUITopLevelWindow * | handle, |
| const CL_Point & | screen_point, | ||
| bool | client_area | ||
| ) | const |
Screen to window.
| handle | = GUITop Level Window |
| screen_point | = Point |
| client_area | = bool |
| void CL_GUIWindowManager::set_cliprect | ( | CL_GUITopLevelWindow * | handle, |
| CL_GraphicContext & | gc, | ||
| const CL_Rect & | rect | ||
| ) |
Set cliprect.
| handle | = GUITop Level Window |
| gc | = Graphic Context |
| rect | = Rect |
| void CL_GUIWindowManager::set_cursor | ( | CL_GUITopLevelWindow * | handle, |
| const CL_Cursor & | cursor | ||
| ) |
Set cursor.
| handle | = GUITop Level Window |
| cursor | = Cursor |
| void CL_GUIWindowManager::set_cursor | ( | CL_GUITopLevelWindow * | handle, |
| enum CL_StandardCursor | type | ||
| ) |
Set cursor.
| handle | = GUITop Level Window |
| type | = CL_StandardCursor |
| void CL_GUIWindowManager::set_geometry | ( | CL_GUITopLevelWindow * | handle, |
| const CL_Rect & | geometry, | ||
| bool | client_area | ||
| ) |
Set geometry.
| handle | = GUITop Level Window |
| geometry | = Rect |
| client_area | = bool |
| void CL_GUIWindowManager::set_site | ( | CL_GUIWindowManagerSite * | site) |
Set site.
| site | = GUIWindow Manager Site |
| void CL_GUIWindowManager::set_visible | ( | CL_GUITopLevelWindow * | handle, |
| bool | visible, | ||
| bool | activate_root_win | ||
| ) |
Set visible.
| handle | = GUITop Level Window |
| visible | = bool |
| activate_root_win | = bool |
| void CL_GUIWindowManager::setup_painting | ( | ) |
Initial setup for painting all top level windows.
| void CL_GUIWindowManager::update | ( | ) |
Perform any updates.
This is called by CL_GUIManager::exec(), after all messages has been processed
| CL_Point CL_GUIWindowManager::window_to_screen | ( | CL_GUITopLevelWindow * | handle, |
| const CL_Point & | window_point, | ||
| bool | client_area | ||
| ) | const |
Window to screen.
| handle | = GUITop Level Window |
| window_point | = Point |
| client_area | = bool |
1.8.4