.. include:: headings.inc .. _MoveEvent: ========================================================================================================================================== |phoenix_title| **MoveEvent** ========================================================================================================================================== A move event holds information about :ref:`TopLevelWindow` move change events. These events are currently only generated by wxMSW port. .. _MoveEvent-events: |events| Events Emitted by this Class ===================================== Handlers bound for the following event types will receive a :ref:`MoveEvent` parameter. - EVT_MOVE: Process a ``wxEVT_MOVE`` event, which is generated when a window is moved. - EVT_MOVE_START: Process a ``wxEVT_MOVE_START`` event, which is generated when the user starts to move or size a window. wxMSW only. - EVT_MOVING: Process a ``wxEVT_MOVING`` event, which is generated while the user is moving the window. wxMSW only. - EVT_MOVE_END: Process a ``wxEVT_MOVE_END`` event, which is generated when the user stops moving or sizing a window. wxMSW only. .. seealso:: :ref:`Point`, :ref:`Events and Event Handling ` | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **MoveEvent** .. raw:: html

Inheritance diagram of MoveEvent

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~MoveEvent.__init__` Constructor. :meth:`~MoveEvent.GetPosition` Returns the position of the window generating the move change event. :meth:`~MoveEvent.GetRect` :meth:`~MoveEvent.SetPosition` :meth:`~MoveEvent.SetRect` ================================================================================ ================================================================================ | |property_summary| Properties Summary ===================================== ================================================================================ ================================================================================ :attr:`~MoveEvent.Position` See :meth:`~MoveEvent.GetPosition` and :meth:`~MoveEvent.SetPosition` :attr:`~MoveEvent.Rect` See :meth:`~MoveEvent.GetRect` and :meth:`~MoveEvent.SetRect` ================================================================================ ================================================================================ | |api| Class API =============== .. class:: MoveEvent(Event) A move event holds information about TopLevelWindow move change events. **Possible constructors**:: MoveEvent(pt, id=0) .. method:: __init__(self, pt, id=0) Constructor. :param `pt`: :type `pt`: Point :param `id`: :type `id`: int .. method:: GetPosition(self) Returns the position of the window generating the move change event. :rtype: :ref:`Point` .. method:: GetRect(self) :rtype: :ref:`Rect` .. method:: SetPosition(self, pos) :param `pos`: :type `pos`: Point .. method:: SetRect(self, rect) :param `rect`: :type `rect`: Rect .. attribute:: Position See :meth:`~MoveEvent.GetPosition` and :meth:`~MoveEvent.SetPosition` .. attribute:: Rect See :meth:`~MoveEvent.GetRect` and :meth:`~MoveEvent.SetRect`