Class: Wx::RotateGestureEvent
- Inherits:
-
GestureEvent
- Object
- Object
- Event
- GestureEvent
- Wx::RotateGestureEvent
- 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:
-
EvtHandler#evt_gesture_rotate(id, meth = nil, &block): Process a EVT_GESTURE_ROTATE.
Category: Events
Instance Method Summary collapse
-
#get_rotation_angle ⇒ Float
(also: #rotation_angle)
Returns the total angle of rotation in radians in clockwise direction since the gesture was first started i.e.
-
#initialize(windid = 0) ⇒ Wx::RotateGestureEvent
constructor
Constructor.
-
#set_rotation_angle(rotationAngle) ⇒ void
(also: #rotation_angle=)
Sets the total angle of rotation in radians in clockwise direction since the gesture was first started i.e.
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.
970 |
# File 'lib/wx/doc/gen/events.rb', line 970 def initialize(windid=0) end |
Instance Method Details
#get_rotation_angle ⇒ Float 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.
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.
984 |
# File 'lib/wx/doc/gen/events.rb', line 984 def set_rotation_angle(rotationAngle) end |