YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
progress.h
浏览该文件的文档.
1 /*
2  Copyright by FrankHB 2011 - 2013.
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 "ycontrol.h"
32 //#include "../Core/yres.h"
33 //#include "ystyle.h"
34 
36 
38 
39 
43 class YF_API ProgressBar : public Control, protected GMRange<float>
44 {
45 public:
47  explicit
48  ProgressBar(const Rect& = {}, ValueType = 0xFF);
50 
51 
56  void
57  SetMaxValue(ValueType);
58  DefSetter(ValueType, Value, value)
59 
60 
64  using GMRange<float>::GetMaxValue;
69  using GMRange<float>::GetValue;
70 
75  void
76  Refresh(PaintEventArgs&&) override;
77 };
78 
80 
81 YSL_END
82 
83 #endif
84