OROCHI
 
Loading...
Searching...
No Matches
GxGuiPropertySearchBar.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 GxGuiPropertySearchBar : public GxGuiProperty
20{
21 //-----------------------------------------------------------
23 //-----------------------------------------------------------
25public:
26 // RTTI定義
27 GX_RTTI_CLASS(GxGuiPropertySearchBar, GxGuiProperty)
28 // 基底継承クラス用禁止宣言
29 GX_PROHIBIT_CLASS_BASE_REFERENCE(GxGuiPropertySearchBar)
30
31
32 typedef void (GxClassBaseRoot::* UPDATE_SEARCH_STRING_CALLBACK)( const GxString& value );
33
34private:
36 static constexpr s32 ICON_SIZE = 14;
37
39 //-----------------------------------------------------------
41 //-----------------------------------------------------------
43public:
45 GxGuiPropertySearchBar( void );
47 GxGuiPropertySearchBar( GxTypedObject* pOwner, UPDATE_SEARCH_STRING_CALLBACK callback );
48
50 b32 initialize( void ) override;
51
53 //-----------------------------------------------------------
55 //-----------------------------------------------------------
57protected:
59 void onNoClientDraw( void ) override;
60
62 void onKeyPress( GxKeyboard::KEY key ) override;
64 void onActive( b32 active ) override;
66 void onSize( const GxSize& size ) override;
67
69 //-----------------------------------------------------------
71 //-----------------------------------------------------------
73public:
75 GX_FORCE_INLINE const GxString& getSearchString( void ) const { return _searchString; }
77 GX_FORCE_INLINE void setSearchString( GX_CSTR searchString ) { _searchString = searchString; }
78
80 //-----------------------------------------------------------
82 //-----------------------------------------------------------
84private:
85 GxTypedObject* _pOwner;
86 GxString _searchString;
87 GxString _oldSearchString;
88 UPDATE_SEARCH_STRING_CALLBACK _updateSearchStringCallback;
89
90 GxGuiPropertyParameter* _pGuiParameter;
91
93};
94GX_CORE_NAMESPACE_END()
95
96#endif // GX_DEVELOP
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
void GxTypedObject
その他
Definition GxDefine.h:213
基底クラス
Definition GxBase.h:51
サイズ
Definition GxStruct.h:730
文字列型クラス
Definition GxString.h:18
32bitブーリアン
Definition GxDefine.h:173