Entire Class Index | Main Class Index | Cross Index | Global Index

# Class CL_GUIManager

Root component.
Contained in: global
Derived from: CL_Component
Derived by: none
Group: GUI (Framework)

#include <ClanLib/gui.h>

### public function member index:
### Construction:
`` | `CL_GUIManager` | `(`CL_StyleManager`* `style`)`;
`` | `CL_GUIManager` | `(`CL_Component`* `parent`, `CL_StyleManager`* `style`)`;
``virtual`` | `~CL_GUIManager` | `()`;
### Attributes:
``CL_Component`*` | `get_focus` | `()`;
``CL_Component`*` | `get_capture` | `()`;
### Operations:
``void`` | `set_focus` | `(`CL_Component`* `component`)`;
``void`` | `show` | `()`;
``void`` | `run` | `()`;
``void`` | `quit` | `()`;
``void`` | `enable_input` | `()`;
``void`` | `disable_input` | `()`;
``void`` | `gui_capture_mouse` | `(`CL_Component`* `component`)`;
``void`` | `gui_release_mouse` | `()`;

## Description:

## Function Member Descriptions:

CL_GUIManager::CL_GUIManager - GUI Manager Constructor
`` `CL_GUIManager``(`CL_StyleManager`* `style`)`;

CL_GUIManager::CL_GUIManager - GUI Manager Constructor
`` `CL_GUIManager``(`CL_Component`* `parent`, `CL_StyleManager`* `style`)`;

CL_GUIManager::disable_input - Tells the GUI to stop accepting input.
``void`` `disable_input``()`;

CL_GUIManager::enable_input - Tells the GUI to start accepting input.
``void`` `enable_input``()`;

CL_GUIManager::get_capture - Returns the currently captured component.
``CL_Component`*` `get_capture``()`;

CL_GUIManager::get_focus - Returns the currently focused component.
``CL_Component`*` `get_focus``()`;

CL_GUIManager::gui_capture_mouse - Sets the GUI in capture mode. [should we move this out of API space? -- mbn]
``void`` `gui_capture_mouse``(`CL_Component`* `component`)`;

CL_GUIManager::gui_release_mouse - Takes GUI out of capture mode. [should we move this out of API space? -- mbn]
``void`` `gui_release_mouse``()`;

CL_GUIManager::quit - Break run loop.
``void`` `quit``()`;

CL_GUIManager::run - Redraws the GUI continuosly.
``void`` `run``()`;

CL_GUIManager::set_focus - Sets the focus component of the gui.
``void`` `set_focus``(`CL_Component`* `component`)`;

CL_GUIManager::show - Draws the GUI once.
``void`` `show``()`;

CL_GUIManager::~CL_GUIManager - GUI Manager Destructor
``virtual`` `~CL_GUIManager``()`;

## Variable Member Descriptions: