YSTest: ColorPicker.h 源文件

YSTest PreAlpha_b800_20170810 The YSLib Test Project

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

- 文件列表
- 文件成员

ColorPicker.h
浏览该文件的文档.
1 /*
2 © 2012-2013, 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 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:
56 Control ctlColorArea;
61 HorizontalTrack trRed, trGreen, trBlue;
66 Label lblRed, lblGreen, lblBlue;
67
68 public:
69 ColorBox(const Point&, Color c = ColorSpace::White);
74 ~ColorBox() override;
75
80 DefGetter(const, Color, Color, GetColorRef())
81
82 private:
87 Color&
88 GetColorRef() const;
89
90 public:
91 void
92 SetColor(Color);
93 };
94
95 } // namespace UI;
96
97 } // namespace YSLib;
98
99 #endif
100
YSLib::UI::ColorBox::lblGreen
Label lblGreen
Definition: ColorPicker.h:66
YSLib::UI::HorizontalTrack
水平轨道。
Definition: Scroll.h:266
YSLib
YSLib 命名空间。
Definition: AndroidHost.h:45
UI
YSLib::UI::ColorBox::trGreen
HorizontalTrack trGreen
Definition: ColorPicker.h:61
YSLib::UI::Label
标签。
Definition: Label.h:143
Color
Pixel Color
Definition: CharRenderer.cpp:58
YSLib::UI::ColorBox::~ColorBox
~ColorBox() override
虚析构：类定义外默认实现。
YSLib::UI::DialogPanel::btnOK
Thumb btnOK
确定按钮。
Definition: UIContainerEx.h:90
YSLib::UI::ColorBox::trRed
HorizontalTrack trRed
颜色分量轨道。
Definition: ColorPicker.h:61
YSLib::Drawing::GBinaryGroup< SPos >
YModules.h
YSLib::UI::Control
控件。
Definition: YControl.h:275
YSLib::UI::ColorBox::trBlue
HorizontalTrack trBlue
Definition: ColorPicker.h:61
CHRLib::c
c
Definition: CharacterProcessing.h:81
YSLib::UI::ColorBox::lblRed
Label lblRed
颜色分量标签。
Definition: ColorPicker.h:66
YSLib::UI::ColorBox::SetColor
void SetColor(Color)
取当前选定的颜色。
YSLib::UI::Panel::DefGetter
DefGetter(override, WidgetRange, Children, WidgetRange(begin(), end())) virtual void Add(IWidget &
按指定 Z 顺序向部件组添加部件，并设置指针。
YSLib::UI::ColorBox
拾色框。
Definition: ColorPicker.h:45
YSLib::UI::ColorBox::lblBlue
Label lblBlue
Definition: ColorPicker.h:66
YSLib::UI::ColorBox::ctlColorArea
Control ctlColorArea
颜色区域。
Definition: ColorPicker.h:56
YSLib::Consoles::White
Definition: YConsole.h:68
YSLib::UI::DialogPanel
对话面板。
Definition: UIContainerEx.h:78
YSLib::UI::ColorBox::ColorBox
ColorBox(const Point &, Color c=ColorSpace::White)
Definition: ColorPicker.cpp:43