1 #ifndef TERMOX_WIDGET_WIDGETS_COLOR_SELECT_HPP
2 #define TERMOX_WIDGET_WIDGETS_COLOR_SELECT_HPP
5 #include <signals_light/signal.hpp>
7 #include <termox/painter/color.hpp>
8 #include <termox/widget/layouts/horizontal.hpp>
9 #include <termox/widget/layouts/vertical.hpp>
10 #include <termox/widget/widgets/button.hpp>
16 enum class Display { None, Number };
20 Display display = Display::None;
36 Color_tile::Display display = Color_tile::Display::None;
40 sl::Signal<void(
Color)> color_selected;
44 Color_tile::Display display = Color_tile::Display::None);
49 void set_palette(Palette
const& pal);
52 Color_tile::Display display_;
56 [[nodiscard]]
auto color_select(
57 Color_tile::Display display = Color_tile::Display::None)
58 -> std::unique_ptr<Color_select>;
62 -> std::unique_ptr<Color_select>;
Displays each color of the current palette.
Definition: color_select.hpp:33
Definition: color_select.hpp:14
Color numbers [0 - 180] are valid.
Definition: color.hpp:16
Lays out Widgets in 2D, sharing space in a primary dimension.
Definition: linear_layout.hpp:35
Definition: color_select.hpp:35
Definition: color_select.hpp:18