YSTest: Progress.h 源文件

YSTest PreAlpha_b900_20201012 The YSLib Test Project

Progress.h
浏览该文件的文档.
1 /*
2 © 2011-2015, 2020 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
67 void
68 SetMaxValue(ValueType);
69 DefSetter(, ValueType, Value, value)
70
71
75 using GMRange<float>::GetMaxValue;
80 using GMRange<float>::GetValue;
81
86 void
87 Refresh(PaintEventArgs&&) override;
88 };
89
90 } // namespace UI;
91
92 } // namespace YSLib;
93
94 #endif
95
YSLib::GMRange
判断是否持有相同对象。
Definition: YObject.h:1737
YSLib::UI::Control
控件。
Definition: YControl.h:271
YF_API
#define YF_API
Definition: Platform.h:56
YSLib::Drawing::ColorSpace::Black
@ Black
Definition: YGDIBase.h:262
YSLib::Drawing::Rect
屏幕标准矩形：表示屏幕矩形区域。
Definition: YGDIBase.h:788
YSLib
YSLib 命名空间。
Definition: AndroidHost.h:46
Color
Pixel Color
Definition: CharRenderer.cpp:59
YModules.h
YSLib 用户界面模块配置文件。
DefSetter
#define DefSetter(_q, _t, _n, _m)
Definition: YBaseMacro.h:252
YSLib::UI::PaintEventArgs
部件绘制参数。
Definition: YWidgetEvent.h:330
YSLib::UI::ProgressBar
进度条。
Definition: Progress.h:47