OROCHI
 
Loading...
Searching...
No Matches
GxGuiPropertyUnit.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 GxGuiPropertyUnit : public GxGuiProperty
20{
21 //-----------------------------------------------------------
23 //-----------------------------------------------------------
25public:
26 GX_RTTI_CLASS(GxGuiPropertyUnit, GxGuiProperty)
27 // ClassBaseReference継承クラス用禁止宣言
28 GX_PROHIBIT_CLASS_BASE_REFERENCE(GxGuiPropertyUnit)
29
30
31 //-----------------------------------------------------------
33 //-----------------------------------------------------------
35public:
37 GxGuiPropertyUnit( void );
39 GxGuiPropertyUnit( const GxProperty& property, GxTypedObject* pOwner, const GxRtti& rtti, u32 index = 0 );
40
42 //-----------------------------------------------------------
44 //-----------------------------------------------------------
46protected:
48 void onSize( const GxSize& size ) override;
50 void onDraw( void ) override;
51
53 void onDropUnit( GxUnitBase* pUnit ) override;
55 void onMouseUp( const GxPoint2& position, u32 button ) override;
56
58 //-----------------------------------------------------------
60 //-----------------------------------------------------------
62protected:
64 b32 isDefaultValue(void) override;
66 void setDefaultValue( void ) override;
67
69 //-----------------------------------------------------------
71 //-----------------------------------------------------------
73protected:
74 GxRect _paramRect;
75
77};
78
79GX_CORE_NAMESPACE_END()
80
81#endif // GX_DEVELOP
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
void GxTypedObject
その他
Definition GxDefine.h:213
プロパティクラス
Definition GxProperty.h:48
実行時型情報クラス
Definition GxRtti.h:154
ユニット基礎クラス
Definition GxUnitBase.h:45
座標
Definition GxStruct.h:867
矩形
Definition GxStruct.h:951
サイズ
Definition GxStruct.h:730
32bitブーリアン
Definition GxDefine.h:173