14GX_CORE_NAMESPACE_BEGIN()
16class GxGuiFormTreeBodyBase;
21class GxGuiFormTreeBase : public GxGuiForm
28 GX_RTTI_ABSTRACT_CLASS(GxGuiFormTreeBase, GxGuiForm)
39 GxGuiFormTreeBase(
void );
41 GxGuiFormTreeBase( GxToolBase* pTool );
44 b32 initialize(
void )
override;
53 void update(
void )
override;
56 virtual GxGuiFormTreeBodyBase* createTreeBody(
void) = 0;
65 constexpr u32 getItemCount(
void )
const {
return _itemCount; }
67 constexpr void setItemCount( u32 count ) { _itemCount = count; }
69 constexpr void addItemCount(
void ) { _itemCount++; }
71 constexpr s32 getScrollOffsetY(
void )
const {
return _scrollOffsetY; }
73 constexpr void setScrollOffsetY( s32 offset ) { _scrollOffsetY = offset; }
75 GX_FORCE_INLINE
b32 isDrawAttributeFilter(
GxUnitBase::ATTRIBUTE attribute )
const {
return _drawAttributeFilter & attribute ? true :
false; }
77 GX_FORCE_INLINE
void setDrawAttributeFilter(
GxUnitBase::ATTRIBUTE attribute,
b32 enable ) { enable ? _drawAttributeFilter |= attribute : _drawAttributeFilter &= ~attribute; }
79 GX_FORCE_INLINE
b32 isEnablePopupMenu(
void )
const {
return _enablePopupMenu; }
81 GX_FORCE_INLINE
void setEnablePopupMenu(
b32 enable ) { _enablePopupMenu = enable; }
83 constexpr GxGuiSplitter* getSplitter(
void )
const {
return _pSplitter; }
85 constexpr GX_CSTR getSearchString(
void )
const {
return _searchString.getString(); }
87 GX_FORCE_INLINE
void setSearchString(
const GxString& searchString ) { _searchString = searchString; }
95 GxToolBase* _pParentTool;
97 GxGuiSplitter* _pSplitter;
98 GxGuiFormTreeBodyBase* _pFormBody;
106 u32 _drawAttributeFilter;
108 b32 _enablePopupMenu;
116class GxGuiFormTreeBodyBase :
public GxGuiForm
123 GX_RTTI_CLASS(GxGuiFormTreeBodyBase, GxGuiForm)
129 static constexpr u32 REGION_HEIGHT = 16;
131 static constexpr s32 MARGIN_1 = 1;
133 static constexpr s32 MARGIN_2 = 2;
135 static constexpr s32 ICON_SIZE = 14;
144 GxGuiFormTreeBodyBase(
void );
153 constexpr void setParentTool(GxToolBase* pTool ) { _pParentTool = pTool; }
155 constexpr void setParentForm( GxGuiFormTreeBase* pForm ) { _pParentForm = pForm; }
163 GxToolBase* _pParentTool;
164 GxGuiFormTreeBase* _pParentForm;
180class GxGuiFormTreeBar :
public GxGuiForm
187 GX_RTTI_CLASS(GxGuiFormTreeBar, GxGuiForm)
198 GxGuiFormTreeBar(
void );
200 GxGuiFormTreeBar( GxGuiFormTreeBase* pForm );
209 void update(
void )
override;
212 void onMouseWheel(
const GxPoint2& position, s32 rotate )
override;
220 GxGuiFormTreeBase* _pParentForm;
222 s32 _oldScrollOffsetY;
227GX_CORE_NAMESPACE_END()
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
配列クラス
Definition GxArrayClassBase.h:18
ATTRIBUTE
属性
Definition GxUnitBase.h:71
座標
Definition GxStruct.h:867
文字列型クラス
Definition GxString.h:18
32bitブーリアン
Definition GxDefine.h:173