OROCHI
 
Loading...
Searching...
No Matches
GxGuiPropertyPosition2.h
Go to the documentation of this file.
1//===========================================================================
10//===========================================================================
11#pragma once
12
13#if GX_DEVELOP
14
15GX_CORE_NAMESPACE_BEGIN()
16
17class GxGuiColorEditButton;
18//===========================================================================
20//===========================================================================
21class GxGuiPropertyPosition2 : public GxGuiPropertyClass
22{
23 //-----------------------------------------------------------
25 //-----------------------------------------------------------
27public:
28 GX_RTTI_CLASS(GxGuiPropertyPosition2, GxGuiPropertyClass)
29 // ClassBaseReference継承クラス用禁止宣言
30 GX_PROHIBIT_CLASS_BASE_REFERENCE(GxGuiPropertyPosition2)
31
32
33 enum class CONTROL
34 {
35 NONE = 0,
36 X,
37 Y,
38 ALL
39 };
40
42 //-----------------------------------------------------------
44 //-----------------------------------------------------------
46public:
48 GxGuiPropertyPosition2(void);
50 GxGuiPropertyPosition2(const GxProperty& property, GxTypedObject* pOwner, u32 index = 0 );
51
53 //-----------------------------------------------------------
55 //-----------------------------------------------------------
57public:
59 b32 initialize( void ) override;
60
62 void update( void ) override;
63
65 void screenRender( void ) override;
66
67protected:
69 GX_FORCE_INLINE void eventSolidDisplayOn(void) { _isSolidDisplay = true; }
70
72 GX_FORCE_INLINE void eventSolidDisplayOff(void) { _isSolidDisplay = false; }
73
75 void callBackFunctionGetScreenPositionDefault(void* pSource, void* pArgument);
76
78 void callBackFunctionSetScreenPositionDefault(void* pSource, void* pArgument);
79
81 //-----------------------------------------------------------
83 //-----------------------------------------------------------
85public:
87 GX_FORCE_INLINE void setCallBackGetScreenPosition( const GxCallback::GxHandlerBase& handle ){ _handleGetScreenPosition = handle; }
89 GX_FORCE_INLINE void setCallBackSetScreenPosition( const GxCallback::GxHandlerBase& handle ){ _handleSetScreenPosition = handle; }
90
91protected:
93 void setScreenPosition( const GxPoint2& screenPosition );
95 GxPoint2 getScreenPosition( void );
96
98 //-----------------------------------------------------------
100 //-----------------------------------------------------------
102protected:
103 CONTROL _controlMode;
104 GxGuiBase* _pControlGui;
105
106 GxGuiColorEditButton* _pGuiColorEditButton;
107
108 b32 _isSolidDisplay;
109
110 GxCallback::GxHandlerBase _handleGetScreenPosition;
111 GxCallback::GxHandlerBase _handleSetScreenPosition;
112
114};
115
116GX_CORE_NAMESPACE_END()
117
118#endif // GX_DEVELOP
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
void GxTypedObject
その他
Definition GxDefine.h:213
@ NONE
何もしない
@ X
X.
@ Y
Y.
ハンドラ基本クラス
Definition GxCallback.h:27
プロパティクラス
Definition GxProperty.h:48
座標
Definition GxStruct.h:867
32bitブーリアン
Definition GxDefine.h:173