Class: Wx::RotateGestureEvent

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

Overview

This event is generated when two fingers move in opposite directions on the surface.

Events using this class

The following event-handler methods redirect the events to member method or handler blocks for RotateGestureEvent 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(windid = 0) ⇒ Wx::RotateGestureEvent

Constructor.

Parameters:

  • windid (Integer) (defaults to: 0)


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

def initialize(windid=0) end

Instance Method Details

#get_rotation_angleFloat Also known as: rotation_angle

Returns the total angle of rotation in radians in clockwise direction since the gesture was first started i.e.

when GestureEvent#is_gesture_start returned true. This value is always greater than or equal to zero.

Returns:

  • (Float)


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

def get_rotation_angle; end

#set_rotation_angle(rotationAngle) ⇒ void Also known as: rotation_angle=

This method returns an undefined value.

Sets the total angle of rotation in radians in clockwise direction since the gesture was first started i.e.

when GestureEvent#is_gesture_start returned true. This value is always greater than or equal to zero.

Parameters:

  • rotationAngle (Float)


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

def set_rotation_angle(rotationAngle) end