![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
Component base class.
Contained in: global
Derived from:
none
Derived by:
CL_Button
CL_Frame
CL_GUIManager
CL_Image
CL_InputBox
CL_Label
CL_ListBox
CL_PopupMenu
CL_ProgressBar
CL_ScrollBar
CL_TreeItem
CL_TreeView
CL_Window
Group: GUI (Framework)
#include <ClanLib/gui.h>
public function member index: |
||
Construction: |
||
CL_Component | (CL_Component* parent, CL_StyleManager* style = NULL); | |
CL_Component | (const CL_Rect& pos, CL_Component* parent, CL_StyleManager* style = NULL); | |
virtual | ~CL_Component | (); |
Attributes: |
||
CL_Component* | get_parent | () const; |
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; |
const std::list<CL_Component* >& | get_children | () const; |
CL_Rect | get_children_rect | (); |
CL_Component* | get_component_at | (int pos_x, int pos_y); |
CL_Component* | get_focus | () const; |
bool | has_focus | () const; |
bool | has_mouse_over | () const; |
bool | is_visible | () const; |
bool | is_enabled | () const; |
bool | is_popup | () const; |
bool | is_mouse_captured | () const; |
bool | is_removeflag_set | () const; |
CL_Point | get_mouse_position | () const; |
int | get_tab_id | () const; |
Operations: |
||
void | set_tab_id | (int id); |
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_width | (int width); |
void | set_height | (int height); |
void | set_parent | (CL_Component* parent); |
void | set_gui_manager | (CL_GUIManager* gui); |
void | show | (bool show = true); |
void | enable | (bool enable = true); |
void | popup | (bool popup); |
void | set_focus | (); |
void | raise | (); |
void | lower | (); |
void | capture_mouse | (); |
void | release_mouse | (); |
void | update | (); |
void | run | (CL_Component* parent = NULL); |
void | quit | (); |
void | close | (); |
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); |
void | find_preferred_size | (); |
CL_Component* | find_tab_id | (int tab_id); |
Signals: |
||
CL_Signal_v1<const CL_ComponentOptions& >& | sig_set_options | (); |
CL_Signal_v0& | sig_paint | (); |
CL_Signal_v0& | sig_begin_paint | (); |
CL_Signal_v0& | sig_paint_children | (); |
CL_Signal_v0& | sig_end_paint | (); |
CL_Signal_v2<CL_InputDevice* , const CL_Key& >& | sig_input_down | (); |
CL_Signal_v2<CL_InputDevice* , const CL_Key& >& | sig_input_up | (); |
CL_Signal_v1<const CL_Key& >& | sig_key_down | (); |
CL_Signal_v1<const CL_Key& >& | sig_key_up | (); |
CL_Signal_v1<const CL_Key& >& | sig_mouse_down | (); |
CL_Signal_v1<const CL_Key& >& | sig_mouse_up | (); |
CL_Signal_v2<int, int>& | sig_mouse_move | (); |
CL_Signal_v0& | sig_mouse_enter | (); |
CL_Signal_v0& | sig_mouse_leave | (); |
CL_Signal_v0& | sig_got_focus | (); |
CL_Signal_v0& | sig_lost_focus | (); |
CL_Signal_v2<int, int>& | sig_resize | (); |
CL_Signal_v2<int, int>& | sig_move | (); |
CL_Signal_v1<CL_Component* >& | sig_child_before_add | (); |
CL_Signal_v1<CL_Component* >& | sig_child_add | (); |
CL_Signal_v1<CL_Component* >& | sig_child_before_remove | (); |
CL_Signal_v1<CL_Component* >& | sig_child_remove | (); |
CL_Signal_v2<int& , int& >& | sig_transform_coords | (); |
CL_Signal_v1<CL_Point& >& | sig_get_minimum_size | (); |
CL_Signal_v1<CL_Point& >& | sig_get_maximum_size | (); |
CL_Signal_v1<CL_Point& >& | sig_get_preferred_size | (); |