#include <listboxdataitem.h>
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 |
Class representing a data item within a ListBox.
WoopsiUI::ListBoxDataItem::ListBoxDataItem | ( | const WoopsiString & | text, | |
const u32 | value, | |||
const u16 | normalTextColour, | |||
const u16 | normalBackColour, | |||
const u16 | selectedTextColour, | |||
const u16 | selectedBackColour | |||
) |
Constructor.
text | The text to display in the item. | |
value | The value of the item. | |
normalTextColour | Colour to draw the text with when not selected. | |
normalBackColour | Colour to draw the background with when not selected. | |
selectedTextColour | Colour to draw the text with when selected. | |
selectedBackColour | Colour to draw the background with when selected. |
u16 WoopsiUI::ListBoxDataItem::getNormalBackColour | ( | ) | const [inline] |
Get the colour used for the background when the item is unselected.
u16 WoopsiUI::ListBoxDataItem::getNormalTextColour | ( | ) | const [inline] |
Get the colour used for text when the item is unselected.
u16 WoopsiUI::ListBoxDataItem::getSelectedBackColour | ( | ) | const [inline] |
Get the colour used for the background when the item is selected.
u16 WoopsiUI::ListBoxDataItem::getSelectedTextColour | ( | ) | const [inline] |
Get the colour used for text when the item is selected.