Class: Wx::ZoomGestureEvent

Inherits:
GestureEvent show all
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:

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::ZoomGestureEvent

Constructor.

Parameters:

  • windid (Integer) (defaults to: 0)


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

def initialize(windid=0) end

Instance Method Details

#get_zoom_factorFloat 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).

Returns:

  • (Float)


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.

Parameters:

  • zoomFactor (Float)


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

def set_zoom_factor(zoomFactor) end