Class: Wx::MoveEvent

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

Overview

A move event holds information about window position change.

These events are currently generated for top level (see TopLevelWindow) windows in all ports, but are not generated for the child windows in WXGTK.

Events using this class

The following event-handler methods redirect the events to member method or handler blocks for MoveEvent events. Event handler methods:

Category: Events

See Also:

  • Point
  • and Event Handling

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(pt, id = 0) ⇒ Wx::MoveEvent

Constructor.

Parameters:

  • pt (Array(Integer, Integer), Wx::Point)
  • id (Integer) (defaults to: 0)


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

def initialize(pt, id=0) end

Instance Method Details

#get_positionWx::Point Also known as: position

Returns the position of the window generating the move change event.

Returns:



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

def get_position; end

#get_rectWx::Rect Also known as: rect

Returns:



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

def get_rect; end

#set_position(pos) ⇒ void Also known as: position=

This method returns an undefined value.

Parameters:



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

def set_position(pos) end

#set_rect(rect) ⇒ void Also known as: rect=

This method returns an undefined value.

Parameters:



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

def set_rect(rect) end