.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2020 by Total Control Software
License: wxWindows License
.. include:: headings.inc
.. _wx.DCOverlay:
==========================================================================================================================================
|phoenix_title| **wx.DCOverlay**
==========================================================================================================================================
Connects an overlay with a drawing DC.
.. seealso:: :ref:`wx.Overlay`, :ref:`wx.DC`
|
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html

Inheritance diagram for class
DCOverlay:
|
|method_summary| Methods Summary
================================
================================================================================ ================================================================================
:meth:`~wx.DCOverlay.__init__` Connects this overlay to the corresponding drawing dc, if the overlay is not initialized yet this call will do so.
:meth:`~wx.DCOverlay.Clear` Clears the layer, restoring the state at the last init.
================================================================================ ================================================================================
|
|api| Class API
===============
.. class:: wx.DCOverlay(object)
**Possible constructors**::
DCOverlay(overlay : Overlay, dc : DC, x : int, y : int, width : int,
height : int) -> None
DCOverlay(overlay : Overlay, dc : DC) -> None
Connects an overlay with a drawing DC.
.. method:: __init__(self, *args, **kw)
|overload| **Overloaded Implementations:**
:html:`
`
**__init__** `(self, overlay : Overlay, dc : DC, x : int, y : int, width : int, height : int)`
Connects this overlay to the corresponding drawing dc, if the overlay is not initialized yet this call will do so.
:param `overlay`:
:type `overlay`: wx.Overlay
:param `dc`:
:type `dc`: wx.DC
:param `x`:
:type `x`: int
:param `y`:
:type `y`: int
:param `width`:
:type `width`: int
:param `height`:
:type `height`: int
:rtype: `None`
:html:`
`
**__init__** `(self, overlay : Overlay, dc : DC)`
Convenience wrapper that behaves the same using the entire area of the dc.
:param `overlay`:
:type `overlay`: wx.Overlay
:param `dc`:
:type `dc`: wx.DC
:rtype: `None`
:html:`
`
.. method:: Clear(self)
Clears the layer, restoring the state at the last init.
:rtype: `None`