OROCHI
 
Loading...
Searching...
No Matches
GxUnitHudScrollbarHundle.h
Go to the documentation of this file.
1//===========================================================================
9//===========================================================================
10#pragma once
11
12GX_HUD_NAMESPACE_BEGIN()
13
14//===========================================================================
16//===========================================================================
18{
19 //-------------------------------------------------------------
21 //-------------------------------------------------------------
23public:
24 // RTTI定義
25 GX_RTTI_CLASS_NAME(GxUnitHudScrollbarHundle, GxUnitHudImage, "ハンドル")
26 // ClassBaseReference継承クラス用禁止宣言
28
29
30 //-------------------------------------------------------------
32 //-------------------------------------------------------------
34public:
37
39 b32 setup( void ) override;
40
42 //-------------------------------------------------------------
44 //-------------------------------------------------------------
46protected:
48 void asyncUpdate( void ) override;
50 void forceAsyncUpdate( void ) override;
51
52public:
53#if defined(_WINDOWS)
55 void startScroll( const GxVector2& position );
56#endif // _WINDOWS
57
59 void forceAdjust( const GxSize& contentSize, const GxVector2& contentPosition );
60
61private:
63 void autoAdjust( void );
65 void autoAdjustInner( const GxUnitHudScrollbar* pUnitScrollbar, const GxUnitHudScrollView* pUnitScrollView, const GxSize& contentSize, const GxVector2& contentPosition );
66#if defined(_WINDOWS)
68 void updateScroll( void );
69#endif // _WINDOWS
70
72 //-------------------------------------------------------------
74 //-------------------------------------------------------------
76protected:
77#if defined(_WINDOWS)
78 b32 _isScrolling;
79 b32 _isForceScroll;
80 GxVector2 _scrollStartPosition;
81 GxVector2 _scrollEndPosition;
82#endif // _WINDOWS
83
85};
86
87GX_HUD_NAMESPACE_END()
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
HUD画像ユニットクラス
Definition GxUnitHudImage.h:18
HUDスクロールビューユニットクラス
Definition GxUnitHudScrollView.h:22
HUDスクロールバーユニットクラス
Definition GxUnitHudScrollbar.h:21
HUDスクロールバーハンドルユニットクラス
Definition GxUnitHudScrollbarHundle.h:18
サイズ
Definition GxStruct.h:730
2次元ベクトル
Definition GxVector.h:34
32bitブーリアン
Definition GxDefine.h:173