Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CL_Component Class Reference

#include <component.h>

Inheritance diagram for CL_Component:

Inheritance graph
[legend]
Collaboration diagram for CL_Component:

Collaboration graph
[legend]
List of all members.

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_GUIManagerget_gui_manager () const
CL_StyleManagerget_style_manager () const
int get_width () const
int get_height () const
CL_Rect get_screen_rect () const
const CL_Rectget_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_v0sig_paint ()
 Signals:.

CL_Signal_v0sig_begin_paint ()
CL_Signal_v0sig_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_v0sig_got_focus ()
CL_Signal_v0sig_lost_focus ()
CL_Signal_v2<int, int>& sig_resized ()
CL_Signal_v0sig_mouse_entered ()
CL_Signal_v0sig_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_Genericimpl
 Implementation:.


Constructor & Destructor Documentation

CL_Component::CL_Component ( CL_Component * parent,
CL_StyleManager * style = NULL )
 

Construction:.

CL_Component::CL_Component ( const CL_Rect & pos,
CL_Component * parent,
CL_StyleManager * style = NULL )
 

CL_Component::CL_Component ( const CL_ComponentOptions & options,
CL_Component * parent,
CL_StyleManager * style = NULL )
 

virtual CL_Component::~CL_Component ( ) [virtual]
 


Member Function Documentation

void CL_Component::add_child ( CL_Component * child,
bool delete_child = false )
 

void CL_Component::add_components ( class CL_ComponentManager * component_manager )
 

void CL_Component::attach_style ( CL_ComponentStyle * style )
 

void CL_Component::capture_mouse ( )
 

void CL_Component::clear_removeflag ( )
 

void CL_Component::close ( )
 

void CL_Component::detach_style ( CL_ComponentStyle * style )
 

void CL_Component::enable ( bool enable = true )
 

const std::list<CL_Component *>& CL_Component::get_children ( ) const
 

std::list<CL_Component *>& CL_Component::get_children ( )
 

CL_Rect CL_Component::get_children_rect ( )
 

CL_Component* CL_Component::get_component_at ( int pos_x,
int pos_y )
 

CL_GUIManager* CL_Component::get_gui_manager ( ) const
 

int CL_Component::get_height ( ) const
 

CL_Component * CL_Component::get_parent ( ) const
 

Attributes:.

const CL_Rect& CL_Component::get_position ( ) const
 

Referenced by BORDER_SIZE().

CL_Component* CL_Component::get_root_parent ( )
 

CL_Rect CL_Component::get_screen_rect ( ) const
 

CL_StyleManager* CL_Component::get_style_manager ( ) const
 

int CL_Component::get_width ( ) const
 

bool CL_Component::has_child ( CL_Component * component ) const
 

bool CL_Component::has_focus ( ) const
 

bool CL_Component::is_enabled ( ) const
 

bool CL_Component::is_mouse_captured ( ) const
 

bool CL_Component::is_popup ( ) const
 

bool CL_Component::is_removeflag_set ( ) const
 

bool CL_Component::is_visible ( ) const
 

void CL_Component::popup ( bool popup )
 

void CL_Component::quit ( )
 

Reimplemented in CL_GUIManager.

void CL_Component::release_mouse ( )
 

void CL_Component::remove_child ( CL_Component * child )
 

void CL_Component::run ( CL_GUIManager * parent = NULL )
 

void CL_Component::set_focus ( )
 

void CL_Component::set_gui_manager ( CL_GUIManager * gui )
 

void CL_Component::set_height ( int height )
 

void CL_Component::set_parent ( CL_Component * parent )
 

void CL_Component::set_position ( int new_x,
int new_y )
 

void CL_Component::set_position ( const CL_Rect & new_pos )
 

Referenced by BORDER_SIZE().

void CL_Component::set_size ( int new_width,
int new_height )
 

void CL_Component::set_width ( int width )
 

void CL_Component::show ( bool show = true )
 

CL_Signal_v0& CL_Component::sig_begin_paint ( )
 

CL_Signal_v1<CL_Component *>& CL_Component::sig_child_add ( )
 

CL_Signal_v1<CL_Component *>& CL_Component::sig_child_remove ( )
 

CL_Signal_v0& CL_Component::sig_end_paint ( )
 

CL_Signal_v0& CL_Component::sig_got_focus ( )
 

CL_Signal_v3<CL_Component *, CL_InputDevice *, CL_Key>& CL_Component::sig_key_down ( )
 

Referenced by CL_ComponentMoveHandler_Generic::down_y().

CL_Signal_v3<CL_Component *, CL_InputDevice *, CL_Key>& CL_Component::sig_key_up ( )
 

CL_Signal_v0& CL_Component::sig_lost_focus ( )
 

CL_Signal_v0& CL_Component::sig_mouse_entered ( )
 

CL_Signal_v0& CL_Component::sig_mouse_left ( )
 

CL_Signal_v4<CL_Component *, CL_InputDevice *, int, int>& CL_Component::sig_mouse_moved ( )
 

CL_Signal_v0 & CL_Component::sig_paint ( )
 

Signals:.

Referenced by BORDER_SIZE().

CL_Signal_v2<int, int>& CL_Component::sig_resized ( )
 

CL_Signal_v2<int &, int &>& CL_Component::sig_transform_coords ( )
 

void CL_Component::update ( )
 

Operations:.


Member Data Documentation

class CL_Component_Generic * CL_Component::impl [private]
 

Implementation:.

Reimplemented in CL_Button, CL_CheckBox, CL_ComboBox, CL_FileDialog, CL_Frame, CL_GUIManager, CL_InputBox, CL_Label, CL_ListBox, CL_MenuItem, CL_MessageBox, CL_PopupMenu, CL_ProgressBar, CL_ScrollBar, and CL_Window.

Definition at line 234 of file component.h.


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 19:56:46 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001