YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
ColorPicker.h
浏览该文件的文档.
1 /*
2  Copyright by FrankHB 2012 - 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 INC_YReader_ColorPicker_h_
29 #define INC_YReader_ColorPicker_h_ 1
30 
31 #include <YSLib/UI/uicontx.h>
32 #include <YSLib/UI/scroll.h>
33 
35 
37 
38 
42 class ColorBox : public DialogPanel
43 {
44 public:
46  using DialogPanel::btnOK;
47 
48 protected:
53  Control ctlColorArea;
58  HorizontalTrack trRed, trGreen, trBlue;
64 
65 public:
67 
72  DefGetter(const, Color, Color, GetColorRef())
73 
74 private:
79  Color&
80  GetColorRef() const;
81 
82 public:
83  void
84  SetColor(Color);
85 };
86 
88 
89 YSL_END
90 
91 #endif
92