Public Methods |
| | CL_Component (CL_Component *parent, CL_StyleManager *style=NULL) |
| | Construction:.
|
| | CL_Component (const CL_Rect &pos, CL_Component *parent, CL_StyleManager *style=NULL) |
| | CL_Component (const CL_ComponentOptions &options, CL_Component *parent, CL_StyleManager *style=NULL) |
| virtual | ~CL_Component () |
| CL_Component* | get_parent () const |
| | Attributes:.
|
| CL_Component* | get_root_parent () |
| CL_GUIManager* | get_gui_manager () const |
| CL_StyleManager* | get_style_manager () const |
| int | get_width () const |
| int | get_height () const |
| CL_Rect | get_screen_rect () const |
| const CL_Rect& | get_position () const |
| bool | has_child (CL_Component *component) const |
| std::list<CL_Component *>& | get_children () |
| const std::list<CL_Component *>& | get_children () const |
| CL_Rect | get_children_rect () |
| CL_Component* | get_component_at (int pos_x, int pos_y) |
| bool | is_visible () const |
| bool | is_enabled () const |
| bool | is_popup () const |
| bool | has_focus () const |
| bool | is_mouse_captured () const |
| bool | is_removeflag_set () const |
| void | update () |
| | Operations:.
|
| void | set_position (const CL_Rect &new_pos) |
| void | set_position (int new_x, int new_y) |
| void | set_size (int new_width, int new_height) |
| void | set_parent (CL_Component *parent) |
| void | set_gui_manager (CL_GUIManager *gui) |
| void | set_width (int width) |
| void | set_height (int height) |
| void | show (bool show=true) |
| void | enable (bool enable=true) |
| void | popup (bool popup) |
| void | set_focus () |
| void | capture_mouse () |
| void | release_mouse () |
| void | close () |
| void | run (CL_GUIManager *parent=NULL) |
| void | quit () |
| void | clear_removeflag () |
| void | add_child (CL_Component *child, bool delete_child=false) |
| void | remove_child (CL_Component *child) |
| void | add_components (class CL_ComponentManager *component_manager) |
| void | attach_style (CL_ComponentStyle *style) |
| void | detach_style (CL_ComponentStyle *style) |
| CL_Signal_v0& | sig_paint () |
| | Signals:.
|
| CL_Signal_v0& | sig_begin_paint () |
| CL_Signal_v0& | sig_end_paint () |
CL_Signal_v3<CL_Component *,
CL_InputDevice *, CL_Key>& | sig_key_down () |
CL_Signal_v3<CL_Component *,
CL_InputDevice *, CL_Key>& | sig_key_up () |
CL_Signal_v4<CL_Component *,
CL_InputDevice *, int, int>& | sig_mouse_moved () |
| CL_Signal_v0& | sig_got_focus () |
| CL_Signal_v0& | sig_lost_focus () |
| CL_Signal_v2<int, int>& | sig_resized () |
| CL_Signal_v0& | sig_mouse_entered () |
| CL_Signal_v0& | sig_mouse_left () |
| CL_Signal_v1<CL_Component *>& | sig_child_add () |
| CL_Signal_v1<CL_Component *>& | sig_child_remove () |
| CL_Signal_v2<int &, int &>& | sig_transform_coords () |
Private Attributes |
| class CL_Component_Generic* | impl |
| | Implementation:.
|