PCL
ImageView Event Handlers

Typedefs

using pcl::ImageView::scroll_event_handler = void(Control::*)(ImageView &sender, int dx, int dy)
 

Functions

void pcl::ImageView::OnScrollViewport (scroll_event_handler handler, Control &receiver)
 

Detailed Description

Typedef Documentation

◆ scroll_event_handler

using pcl::ImageView::scroll_event_handler = void (Control::*)( ImageView& sender, int dx, int dy )

Defines the prototype of a scroll event handler.

A scroll event is generated when the viewport in this ImageView control has been moved with respect to the control's origin, e.g. when the values of one or both scroll bars have been changed. The event is generated just before updating the viewport, so this event handler can be implemented for optimization purposes.

Parameters
senderThe control that sends a scroll event.
dxHorizontal scroll distance in viewport pixels. Positive values mean scrolling in the rightward direction.
dyVertical scroll distance in viewport pixels. Positive values mean scrolling in the downward direction.

Definition at line 1407 of file ImageView.h.

Function Documentation

◆ OnScrollViewport()

void pcl::ImageView::OnScrollViewport ( scroll_event_handler  handler,
Control receiver 
)

Sets the scroll event handler for this ImageView control.

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