CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

csListBoxItem Class Reference
[List box]

This class encapsulates a menu item. More...

#include <csws/cslistbx.h>

Inheritance diagram for csListBoxItem:

csComponent List of all members.

Public Member Functions

 csListBoxItem (csComponent *iParent, const char *iText, ID iID=0, csListBoxItemStyle iStyle=cslisNormal)
 Listbox item constructor: text item with optional style.
virtual ~csListBoxItem ()
 Listbox item destructor.
virtual bool HandleEvent (iEvent &Event)
 Handle input events.
virtual void SetState (int mask, bool enable)
 Handle additional state flags.
virtual void SuggestSize (int &w, int &h)
 Report the minimal size of menu item.
void SetBitmap (csPixmap *iBitmap, bool iDelete=true)
 Set listbox item image.
void SetOffset (int ihOffset)
 Set content offset.
virtual char * GetSkinName ()
 Get the name of the skip slice for this component.
csListBoxItemStyle GetItemStyle ()
 Get list box item style.
int GetDeltaX ()
 Get horizontal item offset in pixels.
csPixmap * GetItemBitmap ()
 Get listbox item image.
int GetHOffset ()
 Get horizontal contents offset.

Detailed Description

This class encapsulates a menu item.

Definition at line 189 of file cslistbx.h.


Constructor & Destructor Documentation

csListBoxItem::csListBoxItem (  csComponent *  iParent,
const char *  iText,
ID  iID = 0,
csListBoxItemStyle  iStyle = cslisNormal
) 
 

Listbox item constructor: text item with optional style.

virtual csListBoxItem::~csListBoxItem (   )  [virtual]
 

Listbox item destructor.


Member Function Documentation

int csListBoxItem::GetDeltaX (   )  [inline]
 

Get horizontal item offset in pixels.

Definition at line 239 of file cslistbx.h.

int csListBoxItem::GetHOffset (   )  [inline]
 

Get horizontal contents offset.

Definition at line 247 of file cslistbx.h.

csPixmap* csListBoxItem::GetItemBitmap (   )  [inline]
 

Get listbox item image.

Definition at line 243 of file cslistbx.h.

csListBoxItemStyle csListBoxItem::GetItemStyle (   )  [inline]
 

Get list box item style.

Definition at line 235 of file cslistbx.h.

References csListBoxItemStyle.

virtual char* csListBoxItem::GetSkinName (   )  [inline, virtual]
 

Get the name of the skip slice for this component.

Reimplemented from csComponent.

Definition at line 227 of file cslistbx.h.

virtual bool csListBoxItem::HandleEvent (  iEvent &  Event  )  [virtual]
 

Handle input events.

Reimplemented from csComponent.

void csListBoxItem::SetBitmap (  csPixmap *  iBitmap,
bool  iDelete = true
) 
 

Set listbox item image.

void csListBoxItem::SetOffset (  int  ihOffset  )  [inline]
 

Set content offset.

Definition at line 223 of file cslistbx.h.

References csComponent::Invalidate().

virtual void csListBoxItem::SetState (  int  mask,
bool  enable
)  [virtual]
 

Handle additional state flags.

Reimplemented from csComponent.

virtual void csListBoxItem::SuggestSize (  int &  w,
int &  h
)  [virtual]
 

Report the minimal size of menu item.

Reimplemented from csComponent.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.3.9.1