Class: Wx::ZoomGestureEvent
- Inherits:
-
GestureEvent
- Object
- Object
- Event
- GestureEvent
- Wx::ZoomGestureEvent
- Defined in:
- lib/wx/doc/gen/events.rb
Overview
This event is generated when two fingers pinch the surface to zoom in or out.
Events using this class
The following event-handler methods redirect the events to member method or handler blocks for ZoomGestureEvent events. Event handler methods:
-
EvtHandler#evt_gesture_zoom(id, meth = nil, &block): Process a EVT_GESTURE_ZOOM.
Category: Events
Instance Method Summary collapse
-
#get_zoom_factor ⇒ Float
(also: #zoom_factor)
Returns the zoom Factor since the gesture started.
-
#initialize(windid = 0) ⇒ Wx::ZoomGestureEvent
constructor
Constructor.
-
#set_zoom_factor(zoomFactor) ⇒ void
(also: #zoom_factor=)
Sets the zoom Factor.
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::ZoomGestureEvent
Constructor.
937 |
# File 'lib/wx/doc/gen/events.rb', line 937 def initialize(windid=0) end |
Instance Method Details
#get_zoom_factor ⇒ Float Also known as: zoom_factor
Returns the zoom Factor since the gesture started.
Hence, starting of the gesture is considered as 1:1. A value greater than 1.0 means we should enlarge (or zoom in), a value less than 1.0 means we should shrink (or zoom out).
943 |
# File 'lib/wx/doc/gen/events.rb', line 943 def get_zoom_factor; end |
#set_zoom_factor(zoomFactor) ⇒ void Also known as: zoom_factor=
This method returns an undefined value.
Sets the zoom Factor.
949 |
# File 'lib/wx/doc/gen/events.rb', line 949 def set_zoom_factor(zoomFactor) end |