52 #ifndef __PCL_ColorComboBox_h
53 #define __PCL_ColorComboBox_h
57 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
143 return m_customColor;
157 return CustomColor() != 0;
240 Control* onColorSelectedReceiver =
nullptr;
243 Control* onColorHighlightedReceiver =
nullptr;
246 Control* onCustomColorDefinedReceiver =
nullptr;
248 EventHandlers() =
default;
249 EventHandlers(
const EventHandlers& ) =
default;
250 EventHandlers& operator =(
const EventHandlers& ) =
default;
256 void ItemSelected(
ComboBox&,
int );
257 void ItemHighlighted(
ComboBox&,
int );
A ComboBox descendant class to select RGB colors.
bool HasCustomColor() const
void SetCurrentColor(RGBA color)
ColorComboBox(Control &parent=Control::Null())
RGBA CurrentColor() const
~ColorComboBox() override
Client-side interface to a PixInsight ComboBox control.
Client-side interface to a PixInsight Control object.
void OnColorSelected(color_event_handler handler, Control &receiver)
void(Control::*)(ColorComboBox &sender, RGBA color) color_event_handler
void OnCustomColorDefined(color_event_handler handler, Control &receiver)
void OnColorHighlighted(color_event_handler handler, Control &receiver)