MyGUI
3.5.3
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
MyGUIEngine
include
MyGUI_ScrollViewBase.h
Go to the documentation of this file.
1
/*
2
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
3
* Distributed under the MIT License
4
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5
*/
6
7
#ifndef MYGUI_SCROLL_VIEW_BASE_H_
8
#define MYGUI_SCROLL_VIEW_BASE_H_
9
10
#include "
MyGUI_Prerequest.h
"
11
#include "
MyGUI_Types.h
"
12
13
namespace
MyGUI
14
{
15
16
class
MYGUI_EXPORT
ScrollViewBase
17
{
18
protected
:
19
virtual
~ScrollViewBase() =
default
;
20
21
void
updateScrollSize();
22
void
updateScrollPosition();
23
24
virtual
IntSize
getContentSize()
const
;
25
26
virtual
IntPoint
getContentPosition()
const
;
27
virtual
void
setContentPosition(
const
IntPoint& _value);
28
29
virtual
IntSize
getViewSize()
const
;
30
31
// Scroll change value, applied when clicking on a scroll
32
virtual
size_t
getHScrollPage()
const
;
33
virtual
size_t
getVScrollPage()
const
;
34
35
virtual
Align getContentAlign()
const
;
36
37
virtual
void
eraseContent();
38
39
protected
:
40
ScrollBar* mVScroll{
nullptr
};
41
ScrollBar* mHScroll{
nullptr
};
42
Widget* mScrollViewClient{
nullptr
};
43
44
bool
mVisibleHScroll{
true
};
45
bool
mVisibleVScroll{
true
};
46
47
size_t
mVRange{0};
48
size_t
mHRange{0};
49
50
// Whether content changes on resize
51
bool
mChangeContentByResize{
false
};
52
};
53
54
}
// namespace MyGUI
55
56
#endif
// MYGUI_SCROLL_VIEW_BASE_H_
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition
MyGUI_Platform.h:57
MyGUI_Prerequest.h
MyGUI_Types.h
MyGUI
Definition
MyGUI_ActionController.h:15
MyGUI::IntPoint
types::TPoint< int > IntPoint
Definition
MyGUI_Types.h:26
MyGUI::IntSize
types::TSize< int > IntSize
Definition
MyGUI_Types.h:29
Generated by
1.18.0