lecui 1.0.0-alpha.20
lecui C++ user interface library
color_picker.h
1//
2// color_picker.h - color picker interface
3//
4// lecui user interface library, part of the liblec library
5// Copyright (c) 2019 Alec Musasa (alecmus at live dot com)
6//
7// Released under the MIT license. For full details see the
8// file LICENSE.txt
9//
10
11#pragma once
12
13#if defined(LECUI_EXPORTS)
14#include "../form.h"
15#else
16#include <liblec/lecui/form.h>
17#endif
18
19namespace liblec {
20 namespace lecui {
22 class lecui_api color_picker {
23 public:
27
30
34 [[nodiscard]]
35 bool pick(color& picked_color);
36
37 private:
38 class impl;
39 impl& _d;
40
41 // Default constructor and copying an object of this class are not allowed
42 color_picker() = delete;
43 color_picker(const color_picker&) = delete;
44 color_picker& operator=(const color_picker&) = delete;
45 };
46 }
47}
Color picker.
Definition: color_picker.h:22
color_picker(form &fm)
Constructor.
bool pick(color &picked_color)
Pick a color through a color picker dialog.
RGBA color on a standard 0 to 255 scale. For the alpha channel 0 is transparent and 255 is opaque.
Definition: lecui.h:583
Form base class. The user must inherit from this class and call one of the two constructors from its ...
Definition: form.h:122
Top level namespace for the liblec libraries.
Definition: appearance.h:19