Changeset View
Changeset View
Standalone View
Standalone View
source/gui/CChart.h
Show All 38 Lines | |||||
class CChart : public IGUITextOwner | class CChart : public IGUITextOwner | ||||
{ | { | ||||
GUI_OBJECT(CChart) | GUI_OBJECT(CChart) | ||||
public: | public: | ||||
CChart(CGUI* pGUI); | CChart(CGUI* pGUI); | ||||
virtual ~CChart(); | virtual ~CChart(); | ||||
virtual void AddSettings() override; | |||||
protected: | protected: | ||||
/** | /** | ||||
* @see IGUIObject#HandleMessage() | * @see IGUIObject#HandleMessage() | ||||
*/ | */ | ||||
virtual void HandleMessage(SGUIMessage& Message); | virtual void HandleMessage(SGUIMessage& Message) override; | ||||
/** | /** | ||||
* Draws the Chart | * Draws the Chart | ||||
*/ | */ | ||||
virtual void Draw(); | virtual void Draw() override; | ||||
virtual CRect GetChartRect() const; | virtual CRect GetChartRect() const; | ||||
void UpdateSeries(); | void UpdateSeries(); | ||||
void SetupText(); | virtual void SetupText() override; | ||||
std::vector<CChartData> m_Series; | std::vector<CChartData> m_Series; | ||||
CVector2D m_LeftBottom, m_RightTop; | CVector2D m_LeftBottom, m_RightTop; | ||||
CStrW m_FormatX, m_FormatY; | CStrW m_FormatX, m_FormatY; | ||||
std::vector<CPos> m_TextPositions; | std::vector<CPos> m_TextPositions; | ||||
Show All 24 Lines |
Wildfire Games · Phabricator