Class: Wx::PanGestureEvent

Inherits:
GestureEvent show all
Defined in:
lib/wx/doc/gen/events.rb

Overview

This event is generated when the user moves a finger on the surface.

WXGTK also generates this event during mouse dragging (mouse motion while a left mouse button is depressed). Note that OSX requires the primary mouse button to be pressed while performing the finger movement.

Events using this class

The following event-handler methods redirect the events to member method or handler blocks for PanGestureEvent events. Event handler methods:

Category: Events

Instance Method Summary collapse

Methods inherited from GestureEvent

#get_position, #is_gesture_end, #is_gesture_start, #set_gesture_end, #set_gesture_start, #set_position

Methods inherited from Event

#clone, #get_event_category, #get_event_object, #get_event_type, #get_id, #get_skipped, #get_timestamp, #is_command_event, #resume_propagation, #set_event_object, #set_event_type, #set_id, #set_timestamp, #should_propagate, #skip, #stop_propagation

Methods inherited from Object

#clone, #dup, #is_same_as, #un_share

Constructor Details

#initialize(winid = 0) ⇒ Wx::PanGestureEvent

Constructor.

Parameters:

  • winid (Integer) (defaults to: 0)


906
# File 'lib/wx/doc/gen/events.rb', line 906

def initialize(winid=0) end

Instance Method Details

#get_deltaWx::Point Also known as: delta

Returns the distance covered since the previous panning event.

Returns:



910
# File 'lib/wx/doc/gen/events.rb', line 910

def get_delta; end

#set_delta(delta) ⇒ void Also known as: delta=

This method returns an undefined value.

Sets the distance covered since the previous panning event.

Parameters:



916
# File 'lib/wx/doc/gen/events.rb', line 916

def set_delta(delta) end