OROCHI
 
Loading...
Searching...
No Matches
GxToolViewProperty.h
Go to the documentation of this file.
1//===========================================================================
9//===========================================================================
10#pragma once
11
12#include "GxToolBase.h"
13
14#if GX_DEVELOP
15
16GX_CORE_NAMESPACE_BEGIN()
17
18//===========================================================================
20//===========================================================================
21class GxToolViewProperty : public GxToolBase
22{
23 //-------------------------------------------------------------
25 //-------------------------------------------------------------
27public:
28 // RTTI定義
29 GX_RTTI_CLASS_NAME_ICON( GxToolViewProperty, GxToolBase, "ビューポート", GxRtti::ICON_TYPE::CORE )
30 // ClassBaseReference継承クラス用禁止宣言
31 GX_PROHIBIT_CLASS_BASE_REFERENCE( GxToolViewProperty )
32
33
34 //-------------------------------------------------------------
36 //-------------------------------------------------------------
38
40 GxToolViewProperty( void ) : _pGuiProcessBar(nullptr), _view(RENDER_VIEW::_0){}
41
43 b32 initialize( void ) override;
44
46 //-------------------------------------------------------------
48 //-------------------------------------------------------------
50
52 void onDraw( void ) override;
53
55 void addMenuOwnProperty(GxPropertyTable& table) override;
56protected:
58 GX_FORCE_INLINE void onDropFile(GX_CSTR pFilePath) override { getGxSysTool()->createUnit(pFilePath); getGxSysTool()->setDropFilePath(""); }
59
61 //-------------------------------------------------------------
63 //-------------------------------------------------------------
65public:
67 GxRect getScreenRegion(void) const;
69 GxPoint2 getMouseScreenPosition(void) const;
70
72 constexpr GxSysTool::GxGuiProcessBar* getGuiProcessBar(void) const { return _pGuiProcessBar; }
74 constexpr GxSysTool::GxGuiFps* getGuiFps(void) const { return _pGuiFps; }
75
77 constexpr RENDER_VIEW getView(void) const { return _view; }
79 GX_FORCE_INLINE void setRenderCallback(GxCallback::GxHandlerBase handle) { _handleRender = handle; }
81 GX_FORCE_INLINE void clearRenderCallback(void) { _handleRender.clear(); }
83 void setView(RENDER_VIEW view);
84private:
86 GX_FORCE_INLINE void setView(s32 view) { setView(static_cast<RENDER_VIEW>(view)); }
87
89 //-------------------------------------------------------------
91 //-------------------------------------------------------------
93private:
94 GxSysTool::GxGuiProcessBar* _pGuiProcessBar;
95 GxSysTool::GxGuiFps* _pGuiFps;
96 RENDER_VIEW _view;
97 GxCallback::GxHandlerBase _handleRender;
98
100};
101
102GX_CORE_NAMESPACE_END()
103
104#endif // GX_DEVELOP
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
RENDER_VIEW
描画優先度(ビュー)
Definition GxRender.h:442
@ _0
ビュー0
ツール基本クラス
ハンドラ基本クラス
Definition GxCallback.h:27
プロパティテーブルクラス
Definition GxProperty.h:1641
座標
Definition GxStruct.h:867
矩形
Definition GxStruct.h:951
32bitブーリアン
Definition GxDefine.h:173