PCL
Slider Event Handlers

Typedefs

using pcl::Slider::range_event_handler = void(Control::*)(Slider &sender, int minValue, int maxValue)
 
using pcl::SpinBox::range_event_handler = void(Control::*)(SpinBox &sender, int minValue, int maxValue)
 
using pcl::Slider::value_event_handler = void(Control::*)(Slider &sender, int value)
 

Functions

void pcl::Slider::OnRangeUpdated (range_event_handler handler, Control &receiver)
 
void pcl::Slider::OnValueUpdated (value_event_handler handler, Control &receiver)
 

Detailed Description

Typedef Documentation

◆ range_event_handler [1/2]

using pcl::Slider::range_event_handler = void (Control::*)( Slider& sender, int minValue, int maxValue )

Defines the prototype of a slider range event handler.

A slider range event is generated when the range of a slider control is changed.

Parameters
senderThe control that sends a slider range event.
minValue,maxValueThe current minimum and maximum values of the slider, respectively.

Definition at line 382 of file Slider.h.

◆ range_event_handler [2/2]

using pcl::SpinBox::range_event_handler = void (Control::*)( SpinBox& sender, int minValue, int maxValue )

Defines the prototype of a spin box range event handler.

A spin box range event is generated when the range of a spin box control is changed.

Parameters
senderThe control that sends a spin box range event.
minValue,maxValueThe current minimum and maximum values of the spin box, respectively.

Definition at line 430 of file SpinBox.h.

◆ value_event_handler

using pcl::Slider::value_event_handler = void (Control::*)( Slider& sender, int value )

Defines the prototype of a slider value event handler.

A slider value event is generated when the user changes the value of a slider control.

Parameters
senderThe control that sends a slider value event.
valueThe current value of the slider.

Definition at line 367 of file Slider.h.

Function Documentation

◆ OnRangeUpdated()

void pcl::Slider::OnRangeUpdated ( range_event_handler  handler,
Control receiver 
)

Sets the slider range event handler for this Slider control.

Parameters
handlerThe slider range event handler. Must be a member function of the receiver object's class.
receiverThe control that will receive slider range events from this Slider.

◆ OnValueUpdated()

void pcl::Slider::OnValueUpdated ( value_event_handler  handler,
Control receiver 
)

Sets the slider value event handler for this Slider control.

Parameters
handlerThe slider value event handler. Must be a member function of the receiver object's class.
receiverThe control that will receive slider value events from this Slider.