wx.GCDC¶wx.GCDC is a device context that draws on a wx.GraphicsContext.
See also
Methods Summary¶__init__ |
Constructs a wx.GCDC from a wx.WindowDC. |
GetGraphicsContext |
Retrieves associated wx.GraphicsContext. |
SetGraphicsContext |
Set the graphics context to be used for this wx.GCDC. |
Class API¶wx.GCDC(DC)¶Possible constructors:
GCDC(windowDC)
GCDC(memoryDC)
GCDC(printerDC)
GCDC(context)
GCDC()
GCDC is a device context that draws on a GraphicsContext.
__init__(self, *args, **kw)¶__init__ (self, windowDC)
Constructs a wx.GCDC from a wx.WindowDC.
| Parameters: | windowDC (wx.WindowDC) – |
|---|
__init__ (self, memoryDC)
Constructs a wx.GCDC from a wx.MemoryDC.
| Parameters: | memoryDC (wx.MemoryDC) – |
|---|
__init__ (self, printerDC)
Constructs a wx.GCDC from a wx.PrinterDC.
| Parameters: | printerDC (wx.PrinterDC) – |
|---|
__init__ (self, context)
Construct a wx.GCDC from an existing graphics context.
| Parameters: | context (wx.GraphicsContext) – |
|---|
__init__ (self)
GetGraphicsContext(self)¶Retrieves associated wx.GraphicsContext.
| Return type: | wx.GraphicsContext |
|---|
SetGraphicsContext(self, ctx)¶Set the graphics context to be used for this wx.GCDC.
| Parameters: | ctx (wx.GraphicsContext) – |
|---|
GraphicsContext¶See GetGraphicsContext and SetGraphicsContext