PCL
ViewList Event Handlers

Typedefs

using pcl::ViewList::view_event_handler = void(Control::*)(ViewList &sender, View &view)
 

Functions

void pcl::ViewList::OnCurrentViewUpdated (view_event_handler handler, Control &receiver)
 
void pcl::ViewList::OnViewSelected (view_event_handler handler, Control &receiver)
 

Detailed Description

Typedef Documentation

◆ view_event_handler

using pcl::ViewList::view_event_handler = void (Control::*)( ViewList& sender, View& view )

Defines the prototype of a view event handler.

A view event is generated when the user activates a view item on a ViewList control, or when she changes the current view item in a ViewList control.

Parameters
senderThe control that sends a view event.
viewThe view whose associated item has been selected or activated.

Definition at line 274 of file ViewList.h.

Function Documentation

◆ OnCurrentViewUpdated()

void pcl::ViewList::OnCurrentViewUpdated ( view_event_handler  handler,
Control receiver 
)

Sets the current view updated event handler for this ViewList control.

Parameters
handlerThe event handler. Must be a member function of the receiver object's class.
receiverThe control that will receive current view updated events from this ViewList.

◆ OnViewSelected()

void pcl::ViewList::OnViewSelected ( view_event_handler  handler,
Control receiver 
)

Sets the view selection event handler of this ViewList control.

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