Class: Wx::MoveEvent
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:
-
EvtHandler#evt_move(meth = nil, &block): Process a EVT_MOVE event, which is generated when a window is moved.
-
EvtHandler#evt_move_start(meth = nil, &block): Process a EVT_MOVE_START event, which is generated when the user starts to move or size a window. WXMSW only.
-
EvtHandler#evt_moving(meth = nil, &block): Process a EVT_MOVING event, which is generated while the user is moving the window. WXMSW only.
-
EvtHandler#evt_move_end(meth = nil, &block): Process a EVT_MOVE_END event, which is generated when the user stops moving or sizing a window. WXMSW only.
Category: Events
Instance Method Summary collapse
-
#get_position ⇒ Wx::Point
(also: #position)
Returns the position of the window generating the move change event.
- #get_rect ⇒ Wx::Rect (also: #rect)
-
#initialize(pt, id = 0) ⇒ Wx::MoveEvent
constructor
Constructor.
- #set_position(pos) ⇒ void (also: #position=)
- #set_rect(rect) ⇒ void (also: #rect=)
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.
1427 |
# File 'lib/wx/doc/gen/events.rb', line 1427 def initialize(pt, id=0) end |
Instance Method Details
#get_position ⇒ Wx::Point Also known as: position
Returns the position of the window generating the move change event.
1431 |
# File 'lib/wx/doc/gen/events.rb', line 1431 def get_position; end |
#get_rect ⇒ Wx::Rect Also known as: rect
1435 |
# File 'lib/wx/doc/gen/events.rb', line 1435 def get_rect; end |
#set_position(pos) ⇒ void Also known as: position=
This method returns an undefined value.
1445 |
# File 'lib/wx/doc/gen/events.rb', line 1445 def set_position(pos) end |
#set_rect(rect) ⇒ void Also known as: rect=
This method returns an undefined value.
1440 |
# File 'lib/wx/doc/gen/events.rb', line 1440 def set_rect(rect) end |