OROCHI
 
Loading...
Searching...
No Matches
GxGuiTimeLine.h
Go to the documentation of this file.
1//===========================================================================
9//===========================================================================
10#pragma once
11
12#if GX_DEVELOP
13
14GX_CORE_NAMESPACE_BEGIN()
15
16//===========================================================================
18//===========================================================================
19class GxGuiTimeLine : public GxGuiForm
20{
21 //-----------------------------------------------------------
23 //-----------------------------------------------------------
25public:
26 GX_RTTI_CLASS(GxGuiTimeLine, GxGuiForm)
27 // 基底継承クラス用禁止宣言
29
30
31 class GxTimeLineColumnColor
32 {
33 //-----------------------------------------------------------
35 //-----------------------------------------------------------
37 public:
39 GxTimeLineColumnColor(u32 frame, GxColor color)
40 : _frame(frame), _color(color){}
41
43 //-----------------------------------------------------------
45 //-----------------------------------------------------------
47
48 u32 _frame;
49 GxColor _color;
50 GxString _string;
51
53 };
54
56 //-----------------------------------------------------------
58 //-----------------------------------------------------------
60public:
62 GxGuiTimeLine(void);
64 GxGuiTimeLine(u32 rowCount , u32 columnCount);
65
67 //-----------------------------------------------------------
69 //-----------------------------------------------------------
71public:
73 void cleanup(void) override;
74
75protected:
77 void onDraw(void) override;
78
80 //-----------------------------------------------------------
82 //-----------------------------------------------------------
84public:
86 void initializeKeyValue(void);
88 void insertRow(s32 index = -1);
90 void removeRow(u32 index);
92 constexpr u32 getRowCount(void) const { return _valueArray.getCount(); }
94 void setColumnCount(u32 count);
96 constexpr u32 getColumnCount(void) const { return _columnCount; }
98 constexpr void setSelectRow(s32 row) { _selectRow = row; }
100 constexpr s32 getSelectRow(void) const { return _selectRow; }
102 constexpr void setSelectColumn(s32 column) { _selectColumn = column; }
104 constexpr s32 getSelectColumn(void) const { return _selectColumn; }
106 void setKeyValue(u32 row, u32 column, b32 enable);
108 b32 getKeyValue(u32 row, u32 column);
110 constexpr void setHeaderHeight(u32 headerHeight ) { _headerHeight = headerHeight; }
112 constexpr u32 getHeaderHeight(void) const { return _headerHeight; }
114 constexpr void setRowHeight(u32 rowHeight) { _rowHeight = rowHeight; }
116 constexpr u32 getRowHeight(void) const { return _rowHeight; }
118 constexpr void setColumnWidth(u32 keyWidth) { _keyWidth = keyWidth;}
120 constexpr u32 getColumnWidth(void) const { return _keyWidth;}
122 constexpr void setNowTime(f32 nowTime) { _nowTime = nowTime; }
124 constexpr f32 getNowTime(void) const { return _nowTime; }
126 constexpr void setKeyWidth(u32 keyWidth) { _keyWidth = keyWidth; }
128 constexpr u32 getKeyWidth(void) const { return _keyWidth; }
129
131 void setRowColor (u32 row, GxColor color);
133 GxColor getRowColorDefault (u32 row);
135 GxColor getRowColor (u32 row);
136
138 GX_FORCE_INLINE void setKeyColor(GxColor color) { _keyColor = color; }
140 GX_FORCE_INLINE GxColor getKeyColor(void) const { return _keyColor; }
141
143 void setColumnMarker(const u32 index, const u32& frame, const GxColor& color, const GxString& string);
145 void setColumnMarkerCount(u32 count);
146
148 //-----------------------------------------------------------
150 //-----------------------------------------------------------
152private:
153 GxArray _columnMarkerArray;
154 GxArray _valueArray;
155 GxArray _colorArray;
156 u32 _columnCount;
157 s32 _selectRow;
158 s32 _selectColumn;
159 f32 _nowTime;
160 u32 _headerHeight;
161 u32 _rowHeight;
162 u32 _keyWidth;
163 GxColor _keyColor;
164
166};
167
168GX_CORE_NAMESPACE_END()
169
170#endif // GX_DEVELOP
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
配列クラス
Definition GxArray.h:18
Definition GxColor.h:21
文字列型クラス
Definition GxString.h:18
32bitブーリアン
Definition GxDefine.h:173