Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csListBoxItem Class Reference

This class encapsulates a menu item. More...

#include <cslistbx.h>

Inheritance diagram for csListBoxItem:

csComponent List of all members.

Public Methods

 csListBoxItem (csComponent *iParent, const char *iText, int 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.

char* GetText ()

Detailed Description

This class encapsulates a menu item.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000