.. wxPython Phoenix documentation This file was generated by Phoenix's sphinx generator and associated tools, do not edit by hand. Copyright: (c) 2011-2017 by Total Control Software License: wxWindows License .. include:: headings.inc .. _wx.GCDC: ========================================================================================================================================== |phoenix_title| **wx.GCDC** ========================================================================================================================================== :ref:`wx.GCDC` is a device context that draws on a :ref:`wx.GraphicsContext`. .. seealso:: :ref:`wx.DC`, :ref:`wx.GraphicsContext` | |class_hierarchy| Class Hierarchy ================================= .. raw:: html
Inheritance diagram for class GCDC:

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~wx.GCDC.__init__` Constructs a :ref:`wx.GCDC` from a :ref:`wx.WindowDC`. :meth:`~wx.GCDC.GetGraphicsContext` Retrieves associated :ref:`wx.GraphicsContext`. :meth:`~wx.GCDC.SetGraphicsContext` Set the graphics context to be used for this :ref:`wx.GCDC`. ================================================================================ ================================================================================ | |property_summary| Properties Summary ===================================== ================================================================================ ================================================================================ :attr:`~wx.GCDC.GraphicsContext` See :meth:`~wx.GCDC.GetGraphicsContext` and :meth:`~wx.GCDC.SetGraphicsContext` ================================================================================ ================================================================================ | |api| Class API =============== .. class:: wx.GCDC(DC) **Possible constructors**:: GCDC(windowDC) GCDC(memoryDC) GCDC(printerDC) GCDC(context) GCDC() GCDC is a device context that draws on a GraphicsContext. .. method:: __init__(self, *args, **kw) |overload| Overloaded Implementations: **~~~** **__init__** `(self, windowDC)` Constructs a :ref:`wx.GCDC` from a :ref:`wx.WindowDC`. :param `windowDC`: :type `windowDC`: wx.WindowDC **~~~** **__init__** `(self, memoryDC)` Constructs a :ref:`wx.GCDC` from a :ref:`wx.MemoryDC`. :param `memoryDC`: :type `memoryDC`: wx.MemoryDC **~~~** **__init__** `(self, printerDC)` Constructs a :ref:`wx.GCDC` from a :ref:`wx.PrinterDC`. :param `printerDC`: :type `printerDC`: wx.PrinterDC **~~~** **__init__** `(self, context)` Construct a :ref:`wx.GCDC` from an existing graphics context. :param `context`: :type `context`: wx.GraphicsContext **~~~** **__init__** `(self)` **~~~** .. method:: GetGraphicsContext(self) Retrieves associated :ref:`wx.GraphicsContext`. :rtype: :ref:`wx.GraphicsContext` .. method:: SetGraphicsContext(self, ctx) Set the graphics context to be used for this :ref:`wx.GCDC`. :param `ctx`: :type `ctx`: wx.GraphicsContext .. attribute:: GraphicsContext See :meth:`~wx.GCDC.GetGraphicsContext` and :meth:`~wx.GCDC.SetGraphicsContext`