************ wx.SizeEvent ************ Inheritance diagram for `wx.SizeEvent`: | .. inheritance-diagram:: wx.SizeEvent | Description =========== A size event holds information about size change events. The ``wx.EVT_SIZE`` handler function will be called when the window has been resized. You may wish to use this for frames to resize their child windows as appropriate. When a window is resized, usually only a small part of the window is damaged and you may only need to repaint that area. However, if your drawing depends on the size of the window, you may need to clear the DC explicitly and repaint the whole window. In which case, you may need to call `wx.Window.Refresh <../Widgets/wx.Window.html#Refresh>`_ to invalidate the entire window. .. note:: Note that the size passed is of the whole window: call `wx.Window.GetClientSize <../Widgets/wx.Window.html#GetClientSize>`_ for the area which may be used by the application. .. seealso:: `wx.Size <../Widgets/wx.Size.html>`_ Derived From ^^^^^^^^^^^^^ * `wx.Event `_ * `wx.Object <../Widgets/wx.Object.html>`_ Event Handling ^^^^^^^^^^^^^^ ================================================== ================================================== Event Name Description ================================================== ================================================== wx.EVT_SIZE(func) Process a ``wx.wxEVT_SIZE`` event. ================================================== ================================================== Methods Summary ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ * `GetRect <#GetRect>`_ * `GetSize <#GetSize>`_ * `SetRect <#SetRect>`_ * `SetSize <#SetSize>`_ Properties Summary ^^^^^^^^^^^^^^^^^^ * `Rect <#Rect>`_ * `Size <#Size>`_ * `m_rect <#m_rect>`_ * `m_size <#m_size>`_ Class API ========= Methods ^^^^^^^ .. method:: __init__(sz=wx.DefaultSize, winid=0) Construct a new `wx.SizeEvent`. **Parameters:** * `sz` (`wx.Size <../Widgets/wx.Size.html>`_) * `winid` (int) | **Returns:** `wx.SizeEvent `_ -------- .. method:: GetRect() Returns the entire rect of the window generating the size change event. | **Returns:** `wx.Rect <../Widgets/wx.Rect.html>`_ -------- .. method:: GetSize() Returns the entire size of the window generating the size change event. | **Returns:** `wx.Size <../Widgets/wx.Size.html>`_ -------- .. method:: SetRect(rect) | **Parameters:** * `rect` (`wx.Rect <../Widgets/wx.Rect.html>`_) -------- .. method:: SetSize(size) | **Parameters:** * `size` (`wx.Size <../Widgets/wx.Size.html>`_) -------- Properties ^^^^^^^^^^ .. attribute:: Rect See `GetRect <#GetRect>`_ and `SetRect <#SetRect>`_ .. attribute:: Size See `GetSize <#GetSize>`_ and `SetSize <#SetSize>`_ .. attribute:: m_rect See `GetRect <#GetRect>`_ and `SetRect <#SetRect>`_ .. attribute:: m_size See `GetSize <#GetSize>`_ and `SetSize <#SetSize>`_