ListBoxItem Class Reference

#include <list_box.h>

Inheritance diagram for ListBoxItem:

Inheritance graph
[legend]
Collaboration diagram for ListBoxItem:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ListBoxItem (const std::string &_label, Font &_font, const std::string &value, bool enabled)
const std::string & GetLabel () const
const std::string & GetValue () const
const bool IsEnabled () const

Private Attributes

std::string value
bool enabled

Detailed Description

Definition at line 33 of file list_box.h.


Constructor & Destructor Documentation

ListBoxItem::ListBoxItem ( const std::string &  _label,
Font _font,
const std::string &  value,
bool  enabled 
)

Definition at line 32 of file list_box.cpp.

00035                                         : 
00036   Label(_label, Rectanglei(0,0,0,0), _font)
00037 {
00038   value = _value;
00039   enabled = _enabled;
00040 }


Member Function Documentation

const std::string & ListBoxItem::GetLabel (  )  const

Definition at line 42 of file list_box.cpp.

00043 {
00044   return txt_label->GetText();
00045 }

Here is the call graph for this function:

const std::string & ListBoxItem::GetValue (  )  const

Definition at line 47 of file list_box.cpp.

00048 {
00049   return value;
00050 }

const bool ListBoxItem::IsEnabled (  )  const

Definition at line 52 of file list_box.cpp.

00053 {
00054   return enabled;
00055 }


Member Data Documentation

bool ListBoxItem::enabled [private]

Definition at line 37 of file list_box.h.

std::string ListBoxItem::value [private]

Definition at line 36 of file list_box.h.


The documentation for this class was generated from the following files:
Generated on Mon Jan 1 13:55:45 2007 for Wormux by  doxygen 1.4.7