PCL
ComboBox Event Handlers

Typedefs

using pcl::ComboBox::edit_event_handler = void(Control::*)(ComboBox &sender)
 
using pcl::ComboBox::item_event_handler = void(Control::*)(ComboBox &sender, int itemIndex)
 

Functions

void pcl::ComboBox::OnEditTextUpdated (edit_event_handler handler, Control &receiver)
 
void pcl::ComboBox::OnItemHighlighted (item_event_handler handler, Control &receiver)
 
void pcl::ComboBox::OnItemSelected (item_event_handler handler, Control &receiver)
 

Detailed Description

Typedef Documentation

◆ edit_event_handler

using pcl::ComboBox::edit_event_handler = void (Control::*)( ComboBox& sender )

Defines the prototype of a combo box edit event handler.

A combo box edit event is generated when the text in the editable part of a combo box is changed by the user.

Parameters
senderThe ComboBox control that sends a combo box edit event.

Definition at line 493 of file ComboBox.h.

◆ item_event_handler

using pcl::ComboBox::item_event_handler = void (Control::*)( ComboBox& sender, int itemIndex )

Defines the prototype of a combo box item event handler.

A combo box item event is generated when an item is selected or highlighted in a combo box.

Parameters
senderThe ComboBox control that sends a combo box item event.
itemIndexThe index of the combo box item where the event originated, in the range from zero to the number of existing combo box items minus one.

Definition at line 481 of file ComboBox.h.

Function Documentation

◆ OnEditTextUpdated()

void pcl::ComboBox::OnEditTextUpdated ( edit_event_handler  handler,
Control receiver 
)

Sets the edit updated event handler for this combo box.

Parameters
handlerThe combo box edit event handler. Must be a member function of the receiver object's class. This handler will be called whenever the text changes in the editable part of combo box control.
receiverThe control that will receive edit updated events from this combo box.

◆ OnItemHighlighted()

void pcl::ComboBox::OnItemHighlighted ( item_event_handler  handler,
Control receiver 
)

Sets the item highlighted event handler for this combo box.

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

◆ OnItemSelected()

void pcl::ComboBox::OnItemSelected ( item_event_handler  handler,
Control receiver 
)

Sets the item selected event handler for this combo box.

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