Woopsi 1.3
Nintendo DS Gui Framework
Public Member Functions
WoopsiUI::ListBoxDataItem Class Reference

#include <libwoopsi/include/listboxdataitem.h>

Inheritance diagram for WoopsiUI::ListBoxDataItem:
WoopsiUI::ListDataItem WoopsiUI::FileListBoxDataItem

List of all members.

Public Member Functions

 ListBoxDataItem (const WoopsiString &text, const u32 value, const u16 normalTextColour, const u16 normalBackColour, const u16 selectedTextColour, const u16 selectedBackColour)
u16 getNormalTextColour () const
u16 getNormalBackColour () const
u16 getSelectedTextColour () const
u16 getSelectedBackColour () const

Detailed Description

Class representing a data item within a ListBox.


Constructor & Destructor Documentation

WoopsiUI::ListBoxDataItem::ListBoxDataItem ( const WoopsiString text,
const u32  value,
const u16  normalTextColour,
const u16  normalBackColour,
const u16  selectedTextColour,
const u16  selectedBackColour 
)

Constructor.

Parameters:
textThe text to display in the item.
valueThe value of the item.
normalTextColourColour to draw the text with when not selected.
normalBackColourColour to draw the background with when not selected.
selectedTextColourColour to draw the text with when selected.
selectedBackColourColour to draw the background with when selected.

Member Function Documentation

u16 WoopsiUI::ListBoxDataItem::getNormalBackColour ( ) const [inline]

Get the colour used for the background when the item is unselected.

Returns:
The background colour when the item is unselected.
u16 WoopsiUI::ListBoxDataItem::getNormalTextColour ( ) const [inline]

Get the colour used for text when the item is unselected.

Returns:
The text colour when the item is unselected.
u16 WoopsiUI::ListBoxDataItem::getSelectedBackColour ( ) const [inline]

Get the colour used for the background when the item is selected.

Returns:
The background colour when the item is selected.
u16 WoopsiUI::ListBoxDataItem::getSelectedTextColour ( ) const [inline]

Get the colour used for text when the item is selected.

Returns:
The text colour when the item is selected.

The documentation for this class was generated from the following file:
 All Classes Functions Variables Enumerations Enumerator