MityDSP Documentation Index

MityDSP::tcGuiListItem Class Reference

#include <ggui/gui_listbox.h>

List of all members.

Public Member Functions

 tcGuiListItem ()
 Default constructor - an empty list item.
 tcGuiListItem (const char *apString, tcGuiImage *apImage=NULL)
 Construct an item with a label.
 tcGuiListItem (const tcGuiListItem &arOther)
 Copy constuctor.
tcGuiListItemoperator= (const tcGuiListItem &arOther)
 Assignment operator.
 ~tcGuiListItem ()
 Destructor.
void SetText (const char *apString)
 Set the item text.
const char * Text () const
 Get the item text. Get the text of the item.
void SetSelected (bool abSelected)
 Set the selected state of the item.
bool IsSelected () const
 Get the item text. Get the selected state of the item.

Protected Attributes

char * m_string
 Item text.
bool m_selected
 Is the item selected.
tcGuiImagem_image
 Image for the item (not used).

Detailed Description

The tcGuiListItem class holds information about items in a tcGuiListBox.

See also:
tcGuiListbox Page

Constructor & Destructor Documentation

MityDSP::tcGuiListItem::tcGuiListItem (  ) 

Default constructor - an empty list item.

MityDSP::tcGuiListItem::tcGuiListItem ( const char *  apString,
tcGuiImage apImage = NULL 
)

Construct an item with a label.

MityDSP::tcGuiListItem::tcGuiListItem ( const tcGuiListItem arOther  ) 

Copy constuctor.

MityDSP::tcGuiListItem::~tcGuiListItem (  ) 

Destructor.


Member Function Documentation

tcGuiListItem& MityDSP::tcGuiListItem::operator= ( const tcGuiListItem arOther  ) 

Assignment operator.

void MityDSP::tcGuiListItem::SetText ( const char *  apString  ) 

Set the item text.

const char* MityDSP::tcGuiListItem::Text (  )  const [inline]

Get the item text. Get the text of the item.

Returns:
pointer to internal string data.
void MityDSP::tcGuiListItem::SetSelected ( bool  abSelected  ) 

Set the selected state of the item.

bool MityDSP::tcGuiListItem::IsSelected (  )  const [inline]

Get the item text. Get the selected state of the item.

Returns:
true if item is selected.

Member Data Documentation

Item text.

Is the item selected.

Image for the item (not used).


  
Generated on Wed Mar 28 15:14:06 2012 for MityDSP Skinnable Graphics User Interface (GGUI) by  Doxygen Version 1.6.1
Copyright © 2009, Critical Link LLC, All rights reserved.