
GUI base component class. More...
Derived from: | public CL_ComponentParent |
Derived by: | CL_CheckBox, CL_ComboBox, CL_Frame, CL_GroupBox, CL_Label, CL_LineEdit, CL_ListView, CL_ListViewHeader, CL_MainWindow, CL_MenuBar, CL_ProgressBar, CL_PushButton, CL_RadioButton, CL_ScrollBar, CL_Slider, CL_Spin, CL_StatusBar, CL_Tab, CL_TextEdit, CL_ToolBar, CL_ToolTip, CL_Window |
Group: | System (GUI) |
#include <ClanLib/gui.h>
Class Members:
Attributes: | |
Focus policies. | |
Returns the position and size of the drawable area of the component. | |
Returns the position and size of the component window (window frame, borders etc). | |
Returns the component type name. | |
Returns the component class name. | |
Returns the component ID name. | |
Returns the CSS element name for the component. | |
Returns true if the component has the focus. | |
Returns true if the components size can be changed. | |
Returns the focus policy of the component. | |
Returns the GUI manager owning this component. | |
Returns the parent component. | |
Return the component owning this component. | |
Returns a list of the child components. | |
Returns the first child component. | |
Returns the last child component. | |
Returns true if the component has any child components. | |
Returns the previous sibling component. | |
Returns the next sibling component. | |
Returns the top level component this CL_GUIComponent is a child of. | |
Return the graphic context for the component. | |
Return the input context for the component. | |
Return true if the component, and all its parents are enabled. | |
Return true if the component, and all its parents are visible. | |
Return the component under 'point', in window coordinates. | |
Returns the preferred size of a render box. | |
Returns the preferred width of a render box. | |
Returns the preferred height of a render box. | |
Convert the top-level window client coordinates to component coordinates. | |
Convert the component coordinates to top-level window client coordinates. | |
Convert the screen coordinates to component coordinates. | |
Convert the component coordinates to screen coordinates. |
| |
Creates a GUI component. |
| |
void func_render(CL_GraphicContext &gc, const CL_Rect &clip_rect) | |
void func_process_message(const CL_GUIMessage &message) | |
void func_style_changed() | |
Callback invoked when the component is resized, i.e. when set_geometry is called. | |
| |
Renders the component and its children. | |
Paints the component. | |
Run component in modal mode. | |
Break message pump. | |
Post GUI message onto the message queue. | |
Send GUI message directly to the target. | |
Set component position and size. | |
Set component window position and size. | |
Sets the component type name. | |
Sets the component class name. | |
Sets the component ID name. | |
Sets the component as enabled or disabled. | |
Sets the component as visible or hidden. | |
Give this component focus. | |
Make all mouse messages be redirected to this component. | |
Sets the focus policy of the component. | |
Find child component with the specified component ID name. | |
Create child components from a GUI definition file. | |
Set a clipping rectangle. | |
Reset the clipping rectangle. |