declarative::color_picker::SlidersRGB#
RGB sliders for editing a color.
| Header: | #include <AUI/View/AColorPicker.h> |
| CMake: | aui_link(my_target PUBLIC aui::views) |
Detailed Description#
SlidersRGB exposes three sliders, one for each channel (red, green,
blue). The sliders are bound to a shared AColor contract and notify a
callback when the color changes.
|
Public fields and Signals#
Channel#
using Channel
Pointer to a color channel.
color#
contract::In<AColor> color
The color contract to edit.
onColorChanged#
std::function<void(AColor)> onColorChanged
Callback invoked when the color changes.
sliderFactory#
std::function<_<AView>(contract::In<AColor>color,std::function<void(AColor)>onColorChanged,Channelchannel)> sliderFactory
Factory used to create individual sliders.
Public Methods#
defaultSlider#
static _<AView> SlidersRGB::defaultSlider(contract::In<AColor> color, std::function<void(AColor)> onColorChanged, Channel channel)
Creates a slider for a single channel.
- Arguments
colorThe color contract.onColorChangedCallback when the color changes.channelPointer to the channel member.- Returns
- A view containing the slider.