Class: Wx::PanGestureEvent
- Inherits:
-
GestureEvent
- Object
- Object
- Event
- GestureEvent
- Wx::PanGestureEvent
- 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:
-
EvtHandler#evt_gesture_pan(id, meth = nil, &block): Process a EVT_GESTURE_PAN.
Category: Events
Instance Method Summary collapse
-
#get_delta ⇒ Wx::Point
(also: #delta)
Returns the distance covered since the previous panning event.
-
#initialize(winid = 0) ⇒ Wx::PanGestureEvent
constructor
Constructor.
-
#set_delta(delta) ⇒ void
(also: #delta=)
Sets the distance covered since the previous panning event.
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.
906 |
# File 'lib/wx/doc/gen/events.rb', line 906 def initialize(winid=0) end |
Instance Method Details
#get_delta ⇒ Wx::Point Also known as: delta
Returns the distance covered since the previous panning event.
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.
916 |
# File 'lib/wx/doc/gen/events.rb', line 916 def set_delta(delta) end |