15GX_CORE_NAMESPACE_BEGIN()
19class GxGuiTabPrevious;
23class GxGuiDesktop : public GxGuiBase
30 GX_RTTI_CLASS(GxGuiDesktop, GxGuiBase)
35 static constexpr s32 MOUSE_RIGHT_DOWN_POSITION_MARGIN = 5;
37 static constexpr u32 MOUSE_RIGHT_DOWN_COUNT_MAX = 60;
55 void setPopupMenu(GxGuiMenu* pGuiMenu);
57 void setPopupHover(GxGuiHover* pGuiHover);
59 GxGuiHover* setPopupHover(
const GxPoint2& position, GX_CSTR pMessage,
const GxGuiBase* pOwner,
b32 useAdjust =
true );
61 void createTabPreview(
void );
64 void onMouseDown(
const GxPoint2& position, u32 button)
override;
67 void onMouseUp(
const GxPoint2& position, u32 button)
override;
70 void onKeyDown(GxKeyboard::KEY key)
override;
73 void closeHover(
void);
77 GX_FORCE_INLINE
b32 canCreateMenu(
void)
const {
return _canCreateMenu; }
79 void createMenu(
const GxPoint2& position);
91 GX_FORCE_INLINE
void setMenuPropertyTable(
const GxPropertyTable& propertyTable){ _menuTable = propertyTable; }
94 b32 isOpenMenu(
void );
97 b32 isOpenTabPreview(
void );
100 GX_FORCE_INLINE
void setCanCreateMenu(
b32 can ){ _canCreateMenu = can; }
103 void setInScreenWindow(
void );
106 GX_FORCE_INLINE
void setCallBackCreateMenuTable(
const GxCallback::GxHandlerBase& handle ){ _handleCreateMenuTable = handle; }
119 u32 _mouseRightDownCount;
130class GxGuiTabPreview :
public GxGuiBase
137 GX_RTTI_CLASS(GxGuiTabPreview, GxGuiBase)
142 static constexpr u32 MARGIN_LEFT = 6;
144 static constexpr u32 MARGIN_RIGHT = 6;
146 static constexpr u32 MARGIN_TOP = 6;
148 static constexpr u32 MARGIN_BOTTOM = 6;
150 static constexpr u32 MARGIN_NAME_WIDTH = 20;
152 static constexpr u32 NAME_HEIGHT = 24;
161 GxGuiTabPreview(
void);
164 b32 initialize(
void)
override;
173 void postDraw(
void )
override;
175 void onNoClientDraw(
void )
override;
180 void goPrevious(
void);
182 void selectWindow(GxGuiBase* pGui);
186 void onKeyDown( GxKeyboard::KEY key )
override;
189 void onKeyUp( GxKeyboard::KEY key )
override;
192 void onSize(
const GxSize& )
override;
195 GxRect calculateClientRect(
const GxRect& clientRect )
const override;
198 GxSize getUseRegionSize(
void )
const override;
203GX_CORE_NAMESPACE_END()
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
ハンドラ基本クラス
Definition GxCallback.h:27
プロパティテーブルクラス
Definition GxProperty.h:1641
座標
Definition GxStruct.h:867
矩形
Definition GxStruct.h:951
サイズ
Definition GxStruct.h:730
32bitブーリアン
Definition GxDefine.h:173