YSTest: Progress.h 源文件

YSTest PreAlpha_b700_20160611 The YSLib Test Project

- 首页
- 相关页面
- 模块
- 命名空间
- 类
- 文件

- 文件列表
- 文件成员

Progress.h
浏览该文件的文档.
1 /*
2 © 2011-2015 FrankHB.
3
4 This file is part of the YSLib project, and may only be used,
5 modified, and distributed under the terms of the YSLib project
6 license, LICENSE.TXT. By continuing to use, modify, or distribute
7 this file you indicate that you have read the license and
8 understand and accept it fully.
9 */
10
28 #ifndef YSL_INC_UI_Progress_h_
29 #define YSL_INC_UI_Progress_h_ 1
30
31 #include "YModules.h"
32 #include YFM_YSLib_UI_YControl
33 //#include YFM_YSLib_Service_YResource
34 //#include YFM_YSLib_UI_YStyle
35
36 namespace YSLib
37 {
38
39 namespace UI
40 {
41
46 class YF_API ProgressBar : public Control, protected GMRange<float>
47 {
48 public:
53 Color ForeColor{Drawing::ColorSpace::Black};
54
59 explicit
60 ProgressBar(const Rect& = {}, ValueType = 0xFF);
61 DefDeMoveCtor(ProgressBar)
62
63
68 void
69 SetMaxValue(ValueType);
70 DefSetter(, ValueType, Value, value)
71
76 using GMRange<float>::GetMaxValue;
81 using GMRange<float>::GetValue;
82
87 void
88 Refresh(PaintEventArgs&&) override;
89 };
90
91 } // namespace UI;
92
93 } // namespace YSLib;
94
95 #endif
96
YSLib::UI::Control
控件。
Definition: YControl.h:275
YSLib::Consoles::Black
Definition: YConsole.h:53
YSLib
YSLib 命名空间。
Definition: AndroidHost.h:45
platform::Color
颜色。
Definition: Video.h:451
YSLib::UI::ProgressBar
进度条。
Definition: Progress.h:46
YSLib::GMRange
范围模块类。
Definition: YObject.h:551
YSLib::Drawing::Rect
屏幕标准矩形：表示屏幕矩形区域。
Definition: YGDIBase.h:540
DefDeMoveCtor
#define DefDeMoveCtor(_t)
Definition: YBaseMacro.h:166
UI
YModules.h
YSLib::UI::PaintEventArgs
部件绘制参数。
Definition: YWidgetEvent.h:323
YF_API
#define YF_API
Definition: Platform.h:56
DefSetter
#define DefSetter(_q, _t, _n, _m)
Definition: YBaseMacro.h:251