Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/CChart.h
Show All 12 Lines | |||||
* | * | ||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#ifndef INCLUDED_CCHART | #ifndef INCLUDED_CCHART | ||||
#define INCLUDED_CCHART | #define INCLUDED_CCHART | ||||
#include "gui/GUI.h" | |||||
#include "gui/IGUITextOwner.h" | #include "gui/IGUITextOwner.h" | ||||
#include "maths/Vector2D.h" | #include "maths/Vector2D.h" | ||||
#include <vector> | #include <vector> | ||||
struct CChartData | struct CChartData | ||||
{ | { | ||||
// Avoid copying the container. | // Avoid copying the container. | ||||
NONCOPYABLE(CChartData); | NONCOPYABLE(CChartData); | ||||
MOVABLE(CChartData); | MOVABLE(CChartData); | ||||
CChartData() = default; | CChartData() = default; | ||||
CGUIColor m_Color; | CGUIColor m_Color; | ||||
std::vector<CVector2D> m_Points; | std::vector<CVector2D> m_Points; | ||||
}; | }; | ||||
/** | /** | ||||
* Chart for a data visualization as lines or points | * Chart for a data visualization as lines or points | ||||
* | |||||
* @see IGUIObject | |||||
*/ | */ | ||||
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(); | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator