def __init__(self, *args, **kwargs):
"""__init__(self) -> FontEnumerator"""
_gdi_.FontEnumerator_swiginit(self,_gdi_.new_FontEnumerator(*args, **kwargs))
- self._setCallbackInfo(self, FontEnumerator, 0)
+ FontEnumerator._setCallbackInfo(self, self, FontEnumerator)
__swig_destroy__ = _gdi_.delete_FontEnumerator
__del__ = lambda self : None;
def _setCallbackInfo(*args, **kwargs):
- """_setCallbackInfo(self, PyObject self, PyObject _class, bool incref)"""
+ """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=0)"""
return _gdi_.FontEnumerator__setCallbackInfo(*args, **kwargs)
def EnumerateFacenames(*args, **kwargs):
def __init__(self, *args, **kwargs):
"""__init__(self, int language=-1, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> PyLocale"""
_gdi_.PyLocale_swiginit(self,_gdi_.new_PyLocale(*args, **kwargs))
- self._setCallbackInfo(self, PyLocale)
+ PyLocale._setCallbackInfo(self, self, PyLocale)
__swig_destroy__ = _gdi_.delete_PyLocale
__del__ = lambda self : None;
return val
Create = staticmethod(Create)
+ def CreateMeasuringContext(*args):
+ """
+ CreateMeasuringContext() -> GraphicsContext
+
+ Create a lightwieght context that can be used for measuring text only.
+ """
+ val = _gdi_.GraphicsContext_CreateMeasuringContext(*args)
+ val.__dc = args[0] # save a ref so the dc will not be deleted before self
+ return val
+
+ CreateMeasuringContext = staticmethod(CreateMeasuringContext)
def CreateFromNative(*args, **kwargs):
"""
CreateFromNative(void context) -> GraphicsContext
def DrawText(*args, **kwargs):
"""
- DrawText(self, String str, Double x, Double y)
+ DrawText(self, String str, Double x, Double y, GraphicsBrush backgroundBrush=NullGraphicsBrush)
- Draws a text at the defined position.
+ Draws a text string at the defined position.
"""
return _gdi_.GraphicsContext_DrawText(*args, **kwargs)
def DrawRotatedText(*args, **kwargs):
"""
- DrawRotatedText(self, String str, Double x, Double y, Double angle)
+ DrawRotatedText(self, String str, Double x, Double y, Double angle, GraphicsBrush backgroundBrush=NullGraphicsBrush)
- Draws a text at the defined position, at the given angle.
+ Draws a text string at the defined position, at the specified angle,
+ which is given in radians.
"""
return _gdi_.GraphicsContext_DrawRotatedText(*args, **kwargs)
val.__dc = args[0] # save a ref so the dc will not be deleted before self
return val
+def GraphicsContext_CreateMeasuringContext(*args):
+ """
+ GraphicsContext_CreateMeasuringContext() -> GraphicsContext
+
+ Create a lightwieght context that can be used for measuring text only.
+ """
+ val = _gdi_.GraphicsContext_CreateMeasuringContext(*args)
+ val.__dc = args[0] # save a ref so the dc will not be deleted before self
+ return val
+
def GraphicsContext_CreateFromNative(*args, **kwargs):
"""
GraphicsContext_CreateFromNative(void context) -> GraphicsContext
"""
return _gdi_.GraphicsRenderer_CreateContext(*args)
+ def CreateMeasuringContext(*args, **kwargs):
+ """CreateMeasuringContext(self) -> GraphicsContext"""
+ return _gdi_.GraphicsRenderer_CreateMeasuringContext(*args, **kwargs)
+
def CreateContextFromNativeContext(*args, **kwargs):
"""CreateContextFromNativeContext(self, void context) -> GraphicsContext"""
return _gdi_.GraphicsRenderer_CreateContextFromNativeContext(*args, **kwargs)
"""Proxy of C++ GCDC class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
- def __init__(self, *args, **kwargs):
- """__init__(self, WindowDC dc) -> GCDC"""
- _gdi_.GCDC_swiginit(self,_gdi_.new_GCDC(*args, **kwargs))
+ def __init__(self, *args):
+ """
+ __init__(self, WindowDC dc) -> GCDC
+ __init__(self, Window window) -> GCDC
+ """
+ _gdi_.GCDC_swiginit(self,_gdi_.new_GCDC(*args))
self.__dc = args[0] # save a ref so the other dc will not be deleted before self
__swig_destroy__ = _gdi_.delete_GCDC