YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
ColorPicker.h
浏览该文件的文档.
1 /*
2  © 2012-2013 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 INC_YReader_ColorPicker_h_
29 #define INC_YReader_ColorPicker_h_ 1
30 
31 #include <YSLib/UI/YModules.h>
32 #include YFM_YSLib_UI_UIContainerEx
33 #include YFM_YSLib_UI_Scroll
34 
35 namespace YSLib
36 {
37 
38 namespace UI
39 {
40 
45 class ColorBox : public DialogPanel
46 {
47 public:
49  using DialogPanel::btnOK;
50 
51 protected:
67 
68 public:
70 
75  DefGetter(const, Color, Color, GetColorRef())
76 
77 private:
82  Color&
83  GetColorRef() const;
84 
85 public:
86  void
87  SetColor(Color);
88 };
89 
90 } // namespace UI;
91 
92 } // namespace YSLib;
93 
94 #endif
95 
Label lblRed
颜色分量标签。
Definition: ColorPicker.h:66
Control ctlColorArea
颜色区域。
Definition: ColorPicker.h:56
ColorBox(const Point &, Color c=ColorSpace::White)
Definition: ColorPicker.cpp:43
void SetColor(Color)
取当前选定的颜色。
Definition: ColorPicker.cpp:80
DefGetter(override, WidgetRange, Children, WidgetRange(begin(), end())) virtual void Add(IWidget &
按指定 Z 顺序向部件组添加部件,并设置指针。
水平轨道。
Definition: scroll.h:252
控件。
Definition: ycontrol.h:275
拾色框。
Definition: ColorPicker.h:45
标签。
Definition: label.h:104
Thumb btnOK
确定按钮。
Definition: uicontx.h:85
HorizontalTrack trGreen
Definition: ColorPicker.h:61
HorizontalTrack trRed
颜色分量轨道。
Definition: ColorPicker.h:61
Color
控制台颜色枚举。
Definition: Video.h:458
HorizontalTrack trBlue
Definition: ColorPicker.h:61
对话面板。
Definition: uicontx.h:73