MyGUI  3.4.1
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 
17  {
18  protected:
20  virtual ~ScrollViewBase() = default;
21 
22  void updateScrollSize();
23  void updateScrollPosition();
24 
25  // размер данных
26  virtual IntSize getContentSize() const;
27 
28  // смещение данных
29  virtual IntPoint getContentPosition() const;
30  virtual void setContentPosition(const IntPoint& _value);
31 
32  // размер окна, через которые видно данные
33  virtual IntSize getViewSize() const;
34 
35  // размер на который прокручиваются данные при щелчке по скролу
36  virtual size_t getHScrollPage() const;
37  virtual size_t getVScrollPage() const;
38 
39  virtual Align getContentAlign() const;
40 
41  virtual void eraseContent();
42 
43  protected:
47 
50 
51  size_t mVRange;
52  size_t mHRange;
53 
54  // изменяется ли содержимое при ресайзе
56  };
57 
58 } // namespace MyGUI
59 
60 #endif // MYGUI_SCROLL_VIEW_BASE_H_
#define MYGUI_EXPORT
widget description should be here.
virtual ~ScrollViewBase()=default
widget description should be here.
Definition: MyGUI_Widget.h:37