Class: Wx::GestureEvent
Overview
This is the base class for all supported gesture events.
Gesture events are not generated by default, you must call Window#enable_touch_events with the appropriate parameter to request their generation.
Category: Events
Direct Known Subclasses
LongPressEvent, PanGestureEvent, PressAndTapEvent, RotateGestureEvent, TwoFingerTapEvent, ZoomGestureEvent
Instance Method Summary collapse
-
#get_position ⇒ Wx::Point
(also: #position)
Returns the position where the event took effect, in client coordinates: position of Pan event, center of zoom for Zoom event, center of rotation for Rotate event, center of box formed by 2 fingers for Two Finger Tap event and position of the pressed finger for Press and Tap Event.
-
#initialize(winid = 0, type = Wx::EVT_NULL) ⇒ Wx::GestureEvent
constructor
Constructor.
-
#is_gesture_end ⇒ Boolean
(also: #gesture_end?)
Returns true if the event was the last in a gesture sequence.
-
#is_gesture_start ⇒ Boolean
(also: #gesture_start?)
Returns true if the event was the first in a gesture sequence.
-
#set_gesture_end(isEnd = true) ⇒ void
(also: #gesture_end=)
Sets the event to be the last in a gesture sequence.
-
#set_gesture_start(isStart = true) ⇒ void
(also: #gesture_start=)
Sets the event to be the first in a gesture sequence.
-
#set_position(pos) ⇒ void
(also: #position=)
Sets the position where the event took effect, in client coordinates: position of Pan event, center of zoom for Zoom event, center of rotation for Rotate event.
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, type = Wx::EVT_NULL) ⇒ Wx::GestureEvent
Constructor.
851 |
# File 'lib/wx/doc/gen/events.rb', line 851 def initialize(winid=0, type=Wx::EVT_NULL) end |
Instance Method Details
#get_position ⇒ Wx::Point Also known as: position
Returns the position where the event took effect, in client coordinates: position of Pan event, center of zoom for Zoom event, center of rotation for Rotate event, center of box formed by 2 fingers for Two Finger Tap event and position of the pressed finger for Press and Tap Event.
855 |
# File 'lib/wx/doc/gen/events.rb', line 855 def get_position; end |
#is_gesture_end ⇒ Boolean Also known as: gesture_end?
Returns true if the event was the last in a gesture sequence.
865 |
# File 'lib/wx/doc/gen/events.rb', line 865 def is_gesture_end; end |
#is_gesture_start ⇒ Boolean Also known as: gesture_start?
Returns true if the event was the first in a gesture sequence.
860 |
# File 'lib/wx/doc/gen/events.rb', line 860 def is_gesture_start; end |
#set_gesture_end(isEnd = true) ⇒ void Also known as: gesture_end=
This method returns an undefined value.
Sets the event to be the last in a gesture sequence.
883 |
# File 'lib/wx/doc/gen/events.rb', line 883 def set_gesture_end(isEnd=true) end |
#set_gesture_start(isStart = true) ⇒ void Also known as: gesture_start=
This method returns an undefined value.
Sets the event to be the first in a gesture sequence.
877 |
# File 'lib/wx/doc/gen/events.rb', line 877 def set_gesture_start(isStart=true) end |
#set_position(pos) ⇒ void Also known as: position=
This method returns an undefined value.
Sets the position where the event took effect, in client coordinates: position of Pan event, center of zoom for Zoom event, center of rotation for Rotate event.
871 |
# File 'lib/wx/doc/gen/events.rb', line 871 def set_position(pos) end |