Class: Wx::GestureEvent

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

Overview

This is the base class for all supported gesture events.

Note:

Gesture events are not generated by default, you must call Window#enable_touch_events with the appropriate parameter to request their generation.

Category: Events

Instance Method Summary collapse

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.

Parameters:

  • winid (Integer) (defaults to: 0)
  • type (Wx::GenericCollapsiblePane::EventType) (defaults to: Wx::EVT_NULL)


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

def initialize(winid=0, type=Wx::EVT_NULL) end

Instance Method Details

#get_positionWx::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.

Returns:



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

def get_position; end

#is_gesture_endBoolean Also known as: gesture_end?

Returns true if the event was the last in a gesture sequence.

Returns:

  • (Boolean)


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

def is_gesture_end; end

#is_gesture_startBoolean Also known as: gesture_start?

Returns true if the event was the first in a gesture sequence.

Returns:

  • (Boolean)


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.

Parameters:

  • isEnd (Boolean) (defaults to: true)


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.

Parameters:

  • isStart (Boolean) (defaults to: true)


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.

Parameters:



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

def set_position(pos) end