PCL
ColorComboBox Event Handlers

Typedefs

using pcl::ColorComboBox::color_event_handler = void(Control::*)(ColorComboBox &sender, RGBA color)
 

Functions

void pcl::ColorComboBox::OnColorHighlighted (color_event_handler handler, Control &receiver)
 
void pcl::ColorComboBox::OnColorSelected (color_event_handler handler, Control &receiver)
 
void pcl::ColorComboBox::OnCustomColorDefined (color_event_handler handler, Control &receiver)
 

Detailed Description

Typedef Documentation

◆ color_event_handler

using pcl::ColorComboBox::color_event_handler = void (Control::*)( ColorComboBox& sender, RGBA color )

Defines the prototype of a color combo box event handler.

A color combo box event is generated when an item is selected or highlighted in a color combo box, or when a new custom color has been defined.

Parameters
senderThe ColorComboBox control that sends a color combo box event.
colorThe RGBA value of the color that has been selected or highlighted in the sender color combo box.

Definition at line 186 of file ColorComboBox.h.

Function Documentation

◆ OnColorHighlighted()

void pcl::ColorComboBox::OnColorHighlighted ( color_event_handler  handler,
Control receiver 
)

Sets the color highlighted event handler for this color combo box control.

Parameters
handlerThe color combo box event handler. Must be a member function of the receiver object's class. This handler will be called whenever a color is highlighted in this color combo box control.
receiverThe control that will receive color highlighted events from this color combo box.

◆ OnColorSelected()

void pcl::ColorComboBox::OnColorSelected ( color_event_handler  handler,
Control receiver 
)

Sets the color selected event handler for this color combo box.

Parameters
handlerThe color combo box event handler. Must be a member function of the receiver object's class. This handler will be called whenever a color is selected in this color combo box control.
receiverThe control that will receive color selected events from this color combo box.

◆ OnCustomColorDefined()

void pcl::ColorComboBox::OnCustomColorDefined ( color_event_handler  handler,
Control receiver 
)

Sets the custom color defined event handler for this color combo box control.

Parameters
handlerThe color combo box event handler. Must be a member function of the receiver object's class. This handler will be called whenever a new custom color is defined in this color combo box control.
receiverThe control that will receive custom color defined events from this color combo box.