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

CL_MenuItem Class Reference

#include <menuitem.h>

Inheritance diagram for CL_MenuItem:

Inheritance graph
[legend]
Collaboration diagram for CL_MenuItem:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_MenuItem (const CL_ComponentOptions &options, CL_Component *parent)
virtual ~CL_MenuItem ()
virtual void add_child (CL_Component *child)
bool is_checkable ()
bool is_separator ()
bool is_checked ()
bool is_highlighted ()
bool has_submenu ()
const std::string& get_text ()
void set_text (const std::string &text)
 retval: The item label.

void set_impl (CL_ComponentStyle *impl)
CL_ComponentStyleget_impl ()
 CL_MenuItem (const CL_ComponentOptions &options, CL_Component *parent)
virtual ~CL_MenuItem ()
virtual void add_child (CL_Component *child)
bool is_checkable ()
bool is_separator ()
bool is_checked ()
bool is_highlighted ()
bool has_submenu ()
const std::string& get_text ()
void set_text (const std::string &text)
 retval: The item label.

void set_impl (CL_ComponentStyle *impl)
CL_ComponentStyleget_impl ()

Public Attributes

CL_Signal_v0 sig_clicked
 param: text - The item label.


Static Public Methods

CL_MenuItem* create (const CL_ComponentOptions &options, CL_Component *parent, CL_StyleManager *style)
CL_MenuItem* create (const CL_ComponentOptions &options, CL_Component *parent, CL_StyleManager *style)

Protected Methods

void on_mouse_enter ()
void on_mouse_leave ()
void on_key_down (CL_Component *comp, CL_InputDevice *device, CL_Key key)
void on_timer_popup ()
void on_mouse_enter ()
void on_mouse_leave ()
void on_key_down (CL_Component *comp, CL_InputDevice *device, CL_Key key)
void on_timer_popup ()

Protected Attributes

int id
std::string text
bool separator
bool checked
bool checkable
bool highlighted
CL_PopupMenusubmenu
CL_Timer timer_popup
CL_ComponentStyleimpl
 Implementation:.

CL_Slot slot_mouse_enter
CL_Slot slot_mouse_level
CL_Slot slot_key_down
CL_Slot slot_timer_popup

Private Methods

void init (int id)
void close_children ()
void init (int id)
void close_children ()

Constructor & Destructor Documentation

CL_MenuItem::CL_MenuItem ( const CL_ComponentOptions & options,
CL_Component * parent )
 

CL_MenuItem::~CL_MenuItem ( ) [inline, virtual]
 

Definition at line 31 of file menuitem.h.

CL_MenuItem::CL_MenuItem ( const CL_ComponentOptions & options,
CL_Component * parent )
 

CL_MenuItem::~CL_MenuItem ( ) [inline, virtual]
 

Definition at line 29 of file menuitem_generic.h.


Member Function Documentation

virtual void CL_MenuItem::add_child ( CL_Component * child ) [virtual]
 

virtual void CL_MenuItem::add_child ( CL_Component * child ) [virtual]
 

void CL_MenuItem::close_children ( ) [private]
 

void CL_MenuItem::close_children ( ) [private]
 

CL_MenuItem* CL_MenuItem::create ( const CL_ComponentOptions & options,
CL_Component * parent,
CL_StyleManager * style ) [static]
 

CL_MenuItem* CL_MenuItem::create ( const CL_ComponentOptions & options,
CL_Component * parent,
CL_StyleManager * style ) [static]
 

CL_ComponentStyle * CL_MenuItem::get_impl ( ) [inline]
 

Definition at line 53 of file menuitem_generic.h.

CL_ComponentStyle * CL_MenuItem::get_impl ( ) [inline]
 

Definition at line 55 of file menuitem.h.

const std::string & CL_MenuItem::get_text ( ) [inline]
 

Definition at line 42 of file menuitem_generic.h.

const std::string & CL_MenuItem::get_text ( ) [inline]
 

Definition at line 44 of file menuitem.h.

bool CL_MenuItem::has_submenu ( ) [inline]
 

Definition at line 40 of file menuitem_generic.h.

bool CL_MenuItem::has_submenu ( ) [inline]
 

Definition at line 42 of file menuitem.h.

void CL_MenuItem::init ( int id ) [private]
 

void CL_MenuItem::init ( int id ) [private]
 

bool CL_MenuItem::is_checkable ( ) [inline]
 

Definition at line 35 of file menuitem_generic.h.

bool CL_MenuItem::is_checkable ( ) [inline]
 

Definition at line 37 of file menuitem.h.

bool CL_MenuItem::is_checked ( ) [inline]
 

Definition at line 37 of file menuitem_generic.h.

bool CL_MenuItem::is_checked ( ) [inline]
 

Definition at line 39 of file menuitem.h.

bool CL_MenuItem::is_highlighted ( ) [inline]
 

Definition at line 38 of file menuitem_generic.h.

bool CL_MenuItem::is_highlighted ( ) [inline]
 

Definition at line 40 of file menuitem.h.

bool CL_MenuItem::is_separator ( ) [inline]
 

Definition at line 36 of file menuitem_generic.h.

bool CL_MenuItem::is_separator ( ) [inline]
 

Definition at line 38 of file menuitem.h.

void CL_MenuItem::on_key_down ( CL_Component * comp,
CL_InputDevice * device,
CL_Key key ) [protected]
 

void CL_MenuItem::on_key_down ( CL_Component * comp,
CL_InputDevice * device,
CL_Key key ) [protected]
 

void CL_MenuItem::on_mouse_enter ( ) [protected]
 

void CL_MenuItem::on_mouse_enter ( ) [protected]
 

void CL_MenuItem::on_mouse_leave ( ) [protected]
 

void CL_MenuItem::on_mouse_leave ( ) [protected]
 

void CL_MenuItem::on_timer_popup ( ) [protected]
 

void CL_MenuItem::on_timer_popup ( ) [protected]
 

void CL_MenuItem::set_impl ( CL_ComponentStyle * impl ) [inline]
 

Definition at line 52 of file menuitem_generic.h.

void CL_MenuItem::set_impl ( CL_ComponentStyle * impl ) [inline]
 

Definition at line 54 of file menuitem.h.

void CL_MenuItem::set_text ( const std::string & text ) [inline]
 

retval: The item label.

Definition at line 46 of file menuitem_generic.h.

void CL_MenuItem::set_text ( const std::string & text ) [inline]
 

retval: The item label.

Definition at line 48 of file menuitem.h.


Member Data Documentation

bool CL_MenuItem::checkable [protected]
 

Definition at line 75 of file menuitem_generic.h.

bool CL_MenuItem::checked [protected]
 

Definition at line 74 of file menuitem_generic.h.

bool CL_MenuItem::highlighted [protected]
 

Definition at line 76 of file menuitem_generic.h.

int CL_MenuItem::id [protected]
 

Definition at line 69 of file menuitem_generic.h.

CL_ComponentStyle* CL_MenuItem::impl [protected]
 

Implementation:.

Reimplemented from CL_Component.

Definition at line 82 of file menuitem_generic.h.

bool CL_MenuItem::separator [protected]
 

Definition at line 73 of file menuitem_generic.h.

CL_Signal_v0 CL_MenuItem::sig_clicked
 

param: text - The item label.

Definition at line 50 of file menuitem_generic.h.

CL_Slot CL_MenuItem::slot_key_down [protected]
 

Definition at line 66 of file menuitem_generic.h.

CL_Slot CL_MenuItem::slot_mouse_enter [protected]
 

Definition at line 66 of file menuitem_generic.h.

CL_Slot CL_MenuItem::slot_mouse_level [protected]
 

Definition at line 66 of file menuitem_generic.h.

CL_Slot CL_MenuItem::slot_timer_popup [protected]
 

Definition at line 66 of file menuitem_generic.h.

CL_PopupMenu* CL_MenuItem::submenu [protected]
 

Definition at line 78 of file menuitem_generic.h.

std::string CL_MenuItem::text [protected]
 

Definition at line 71 of file menuitem_generic.h.

CL_Timer CL_MenuItem::timer_popup [protected]
 

Definition at line 80 of file menuitem_generic.h.


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