17#ifndef INCLUDED_COLIST
18#define INCLUDED_COLIST
#define GUI_OBJECT(obj)
Definition: IGUIObject.h:50
Definition: Canvas2D.h:36
Definition: CGUISprite.h:134
The main object that represents a whole GUI page.
Definition: CGUI.h:61
Create a list of elements, where one can be selected by the user.
Definition: CList.h:39
Represents a column.
Definition: COList.h:29
float m_Width
Definition: COList.h:43
CGUISimpleSetting< CGUIList > m_List
Definition: COList.h:45
NONCOPYABLE(COListColumn)
COListColumn(COListColumn &&)=default
COListColumn(IGUIObject *owner, const CStr &cid)
Definition: COList.h:31
CGUISimpleSetting< i32 > m_SortOrder
Definition: COList.h:47
CGUIColor m_TextColorSelected
Definition: COList.h:41
COListColumn & operator=(COListColumn &&)=delete
CGUISimpleSetting< CStrW > m_Heading
Definition: COList.h:44
CGUIColor m_TextColor
Definition: COList.h:40
CGUISimpleSetting< bool > m_Hidden
Definition: COList.h:46
CStr m_Id
Definition: COList.h:42
Multi-column list.
Definition: COList.h:59
CGUISimpleSetting< i32 > m_SelectedColumnOrder
Definition: COList.h:89
void HandleMessage(SGUIMessage &Message)
Definition: COList.cpp:123
CGUISimpleSetting< CStr > m_SelectedColumn
Definition: COList.h:88
CGUISimpleSetting< CGUISpriteInstance > m_SpriteHeading
Definition: COList.h:86
CGUISimpleSetting< CGUISpriteInstance > m_SpriteDesc
Definition: COList.h:91
static const CStr EventNameSelectionColumnChange
Definition: COList.h:95
CGUISimpleSetting< bool > m_Sortable
Definition: COList.h:87
virtual void DrawList(CCanvas2D &canvas, const int &selected, const CGUISpriteInstance &sprite, const CGUISpriteInstance &spriteOverlay, const CGUISpriteInstance &spriteSelectarea, const CGUISpriteInstance &spriteSelectAreaOverlay, const CGUIColor &textColor)
Definition: COList.cpp:300
std::vector< COListColumn > m_Columns
Available columns.
Definition: COList.h:84
void SetupText()
Sets up text, should be called every time changes has been made that can change the visual.
Definition: COList.cpp:46
float m_HeadingHeight
Definition: COList.h:99
float m_TotalAvailableColumnWidth
Definition: COList.h:98
virtual void AdditionalChildrenHandled()
Allow the GUI object to process after all child items were handled.
Definition: COList.cpp:295
CGUISimpleSetting< CGUISpriteInstance > m_SpriteAsc
Definition: COList.h:90
virtual bool HandleAdditionalChildren(const XMBData &xmb, const XMBElement &child)
Handle the <item> tag.
Definition: COList.cpp:184
COList(CGUI &pGUI)
Definition: COList.cpp:34
CGUISimpleSetting< CGUISpriteInstance > m_SpriteNotSorted
Definition: COList.h:92
virtual CRect GetListRect() const
Definition: COList.cpp:118
Rectangle class used for screen rectangles.
Definition: Rect.h:31
GUI object such as a button or an input-box.
Definition: IGUIObject.h:60
Definition: XMBData.h:136
Same as the CColor class, but this one can also parse colors predefined in the GUI page (such as "yel...
Definition: CGUIColor.h:30
Message send to IGUIObject::HandleMessage() in order to give life to Objects manually with a derived ...
Definition: SGUIMessage.h:68