Changeset View
Changeset View
Standalone View
Standalone View
source/gui/COList.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
class COList : public CList | class COList : public CList | ||||
{ | { | ||||
GUI_OBJECT(COList) | GUI_OBJECT(COList) | ||||
public: | public: | ||||
COList(CGUI* pGUI); | COList(CGUI* pGUI); | ||||
virtual void AddSettings() override; | |||||
protected: | protected: | ||||
void SetupText(); | virtual void SetupText() override; | ||||
void HandleMessage(SGUIMessage& Message); | void HandleMessage(SGUIMessage& Message) override; | ||||
/** | /** | ||||
* Handle the \<item\> tag. | * Handle the \<item\> tag. | ||||
*/ | */ | ||||
virtual bool HandleAdditionalChildren(const XMBElement& child, CXeromyces* pFile); | virtual bool HandleAdditionalChildren(const XMBElement& child, CXeromyces* pFile) override; | ||||
void DrawList(const int& selected, const CStr& _sprite, const CStr& _sprite_selected, const CStr& _textcolor); | void DrawList(const int& selected, const CStr& _sprite, const CStr& _sprite_selected, const CStr& _textcolor) override; | ||||
virtual CRect GetListRect() const; | virtual CRect GetListRect() const override; | ||||
/** | /** | ||||
* Available columns. | * Available columns. | ||||
*/ | */ | ||||
std::vector<COListColumn> m_Columns; | std::vector<COListColumn> m_Columns; | ||||
private: | private: | ||||
// Width of space available for columns | // Width of space available for columns | ||||
float m_TotalAvailableColumnWidth; | float m_TotalAvailableColumnWidth; | ||||
float m_HeadingHeight; | float m_HeadingHeight; | ||||
}; | }; | ||||
#endif // INCLUDED_COLIST | #endif // INCLUDED_COLIST |
Wildfire Games · Phabricator