.. include:: headings.inc .. _GCDC: ========================================================================================================================================== |phoenix_title| **GCDC** ========================================================================================================================================== :ref:`GCDC` is a device context that draws on a :ref:`GraphicsContext`. .. seealso:: :ref:`DC`, :ref:`GraphicsContext` | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **GCDC** .. raw:: html

Inheritance diagram of GCDC

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