X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/89d1e2eeab15869685246c20dc260432ea548ea6..26ee65c723cf55822c540506f064ec11d9b26858:/wxPython/src/gtk/_gdi.py diff --git a/wxPython/src/gtk/_gdi.py b/wxPython/src/gtk/_gdi.py index 797eaa1ffe..eee7429773 100644 --- a/wxPython/src/gtk/_gdi.py +++ b/wxPython/src/gtk/_gdi.py @@ -673,7 +673,7 @@ class Bitmap(GDIObject): CopyFromBuffer(self, buffer data) Copy data from a RGB buffer object to replace the bitmap pixel data. - See `wxBitmapFromBuffer` for more . + See `wx.BitmapFromBuffer` for more . """ return _gdi_.Bitmap_CopyFromBuffer(*args, **kwargs) @@ -682,7 +682,7 @@ class Bitmap(GDIObject): CopyFromBufferRGBA(self, buffer data) Copy data from a RGBA buffer object to replace the bitmap pixel data. - See `wxBitmapFromBufferRGBA` for more . + See `wx.BitmapFromBufferRGBA` for more . """ return _gdi_.Bitmap_CopyFromBufferRGBA(*args, **kwargs) @@ -2634,9 +2634,8 @@ class Locale(object): __del__ = lambda self : None; def Init1(*args, **kwargs): """ - Init1(self, String szName, String szShort=EmptyString, String szLocale=EmptyString, - bool bLoadDefault=True, - bool bConvertEncoding=False) -> bool + Init1(self, String name, String shortName=EmptyString, String locale=EmptyString, + bool bLoadDefault=True, bool bConvertEncoding=False) -> bool """ return _gdi_.Locale_Init1(*args, **kwargs) @@ -2693,7 +2692,7 @@ class Locale(object): AddCatalogLookupPathPrefix = staticmethod(AddCatalogLookupPathPrefix) def AddCatalog(*args, **kwargs): - """AddCatalog(self, String szDomain) -> bool""" + """AddCatalog(self, String domain) -> bool""" return _gdi_.Locale_AddCatalog(*args, **kwargs) def IsAvailable(*args, **kwargs): @@ -2702,7 +2701,7 @@ class Locale(object): IsAvailable = staticmethod(IsAvailable) def IsLoaded(*args, **kwargs): - """IsLoaded(self, String szDomain) -> bool""" + """IsLoaded(self, String domain) -> bool""" return _gdi_.Locale_IsLoaded(*args, **kwargs) def GetLanguageInfo(*args, **kwargs): @@ -2726,7 +2725,7 @@ class Locale(object): AddLanguage = staticmethod(AddLanguage) def GetString(*args, **kwargs): - """GetString(self, String szOrigString, String szDomain=EmptyString) -> String""" + """GetString(self, String origString, String domain=EmptyString) -> String""" return _gdi_.Locale_GetString(*args, **kwargs) def GetName(*args, **kwargs): @@ -2793,14 +2792,11 @@ class PyLocale(Locale): return _gdi_.PyLocale__setCallbackInfo(*args, **kwargs) def GetSingularString(*args, **kwargs): - """GetSingularString(self, wxChar szOrigString, wxChar szDomain=None) -> wxChar""" + """GetSingularString(self, String origString, String domain=EmptyString) -> String""" return _gdi_.PyLocale_GetSingularString(*args, **kwargs) def GetPluralString(*args, **kwargs): - """ - GetPluralString(self, wxChar szOrigString, wxChar szOrigString2, size_t n, - wxChar szDomain=None) -> wxChar - """ + """GetPluralString(self, String origString, String origString2, size_t n, String domain=EmptyString) -> String""" return _gdi_.PyLocale_GetPluralString(*args, **kwargs) _gdi_.PyLocale_swigregister(PyLocale) @@ -3385,6 +3381,35 @@ class DC(_core.Object): """ return _gdi_.DC_BlitPointSize(*args, **kwargs) + def StretchBlit(*args, **kwargs): + """ + StretchBlit(self, int dstX, int dstY, int dstWidth, int dstHeight, DC source, + int srcX, int srcY, int srcWidth, int srcHeight, + int rop=COPY, bool useMask=False, + int srcMaskX=wxDefaultCoord, int srcMaskY=wxDefaultCoord) -> bool + + Copy from a source DC to this DC, specifying the destination + coordinates, destination size, source DC, source coordinates, size of + source area to copy, logical function, whether to use a bitmap mask, + and mask source position. + """ + return _gdi_.DC_StretchBlit(*args, **kwargs) + + def StretchBlitPointSize(*args, **kwargs): + """ + StretchBlitPointSize(self, Point dstPt, Size dstSize, DC source, Point srcPt, + Size srcSize, int rop=COPY, bool useMask=False, + Point srcMaskPt=DefaultPosition) -> bool + + Copy from a source DC to this DC, specifying the destination + coordinates, destination size, source DC, source coordinates, size of + source area to copy, logical function, whether to use a bitmap mask, + and mask source position. This version is the same as `StretchBlit` + except `wx.Point` and `wx.Size` objects are used instead of individual + position and size components. + """ + return _gdi_.DC_StretchBlitPointSize(*args, **kwargs) + def GetAsBitmap(*args, **kwargs): """GetAsBitmap(self, Rect subrect=None) -> Bitmap""" return _gdi_.DC_GetAsBitmap(*args, **kwargs) @@ -4693,6 +4718,7 @@ def MemoryDCFromDC(*args, **kwargs): BUFFER_VIRTUAL_AREA = _gdi_.BUFFER_VIRTUAL_AREA BUFFER_CLIENT_AREA = _gdi_.BUFFER_CLIENT_AREA +BUFFER_USES_SHARED_BUFFER = _gdi_.BUFFER_USES_SHARED_BUFFER class BufferedDC(MemoryDC): """ This simple class provides a simple way to avoid flicker: when drawing @@ -5065,22 +5091,13 @@ _gdi_.GraphicsFont_swigregister(GraphicsFont) class GraphicsMatrix(GraphicsObject): """ A wx.GraphicsMatrix is a native representation of an affine - matrix. The contents are specific an private to the respective + matrix. The contents are specific and private to the respective renderer. The only way to get a valid instance is via a CreateMatrix call on the graphics context or the renderer instance. """ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + def __init__(self): raise AttributeError, "No constructor defined" __repr__ = _swig_repr - def __init__(self, *args, **kwargs): - """ - __init__(self) -> GraphicsMatrix - - A wx.GraphicsMatrix is a native representation of an affine - matrix. The contents are specific an private to the respective - renderer. The only way to get a valid instance is via a CreateMatrix - call on the graphics context or the renderer instance. - """ - _gdi_.GraphicsMatrix_swiginit(self,_gdi_.new_GraphicsMatrix(*args, **kwargs)) __swig_destroy__ = _gdi_.delete_GraphicsMatrix __del__ = lambda self : None; def Concat(*args, **kwargs): @@ -5121,7 +5138,8 @@ class GraphicsMatrix(GraphicsObject): """ IsEqual(self, GraphicsMatrix t) -> bool - Returns ``True`` if the elements of the transformation matrix are equal + Returns ``True`` if the elements of the transformation matrix are + equal """ return _gdi_.GraphicsMatrix_IsEqual(*args, **kwargs) @@ -5190,10 +5208,8 @@ _gdi_.GraphicsMatrix_swigregister(GraphicsMatrix) class GraphicsPath(GraphicsObject): """Proxy of C++ GraphicsPath class""" thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + def __init__(self): raise AttributeError, "No constructor defined" __repr__ = _swig_repr - def __init__(self, *args, **kwargs): - """__init__(self) -> GraphicsPath""" - _gdi_.GraphicsPath_swiginit(self,_gdi_.new_GraphicsPath(*args, **kwargs)) __swig_destroy__ = _gdi_.delete_GraphicsPath __del__ = lambda self : None; def MoveToPoint(*args): @@ -5290,8 +5306,8 @@ class GraphicsPath(GraphicsObject): """ AddArcToPoint(self, Double x1, Double y1, Double x2, Double y2, Double r) - Appends an arc to two tangents connecting (current) to (x1,y1) and (x1,y1) - to (x2,y2), also a straight line from (current) to (x1,y1) + Appends an arc to two tangents connecting (current) to (x1,y1) and + (x1,y1) to (x2,y2), also a straight line from (current) to (x1,y1) """ return _gdi_.GraphicsPath_AddArcToPoint(*args, **kwargs) @@ -5343,7 +5359,8 @@ class GraphicsPath(GraphicsObject): """ GetBox(self) -> Rect2D - Gets the bounding box enclosing all points (possibly including control points) + Gets the bounding box enclosing all points (possibly including control + points) """ return _gdi_.GraphicsPath_GetBox(*args, **kwargs) @@ -5398,9 +5415,10 @@ class GraphicsContext(GraphicsObject): """ CreateFromNative(void context) -> GraphicsContext - Creates a wx.GraphicsContext from a native context. This native context - must be eg a CGContextRef for Core Graphics, a Graphics pointer for - GDIPlus or a cairo_t pointer for Cairo. + Creates a wx.GraphicsContext from a native context. This native + context must be eg a CGContextRef for Core Graphics, a Graphics + pointer for GDIPlus or a cairo_t pointer for Cairo. NOTE: For + wxPython we still need a way to make this value usable. """ return _gdi_.GraphicsContext_CreateFromNative(*args, **kwargs) @@ -5409,7 +5427,8 @@ class GraphicsContext(GraphicsObject): """ CreateFromNativeWindow(void window) -> GraphicsContext - Creates a wx.GraphicsContext from a native window. + Creates a wx.GraphicsContext from a native window. NOTE: For wxPython + we still need a way to make this value usable. """ return _gdi_.GraphicsContext_CreateFromNativeWindow(*args, **kwargs) @@ -5453,8 +5472,8 @@ class GraphicsContext(GraphicsObject): CreateRadialGradientBrush(self, Double xo, Double yo, Double xc, Double yc, Double radius, Colour oColor, Colour cColor) -> GraphicsBrush - Creates a native brush, having a radial gradient originating at - point (xo,yc) with color oColour and ends on a circle around (xc,yc) with + Creates a native brush, having a radial gradient originating at point + (xo,yc) with color oColour and ends on a circle around (xc,yc) with radius r and color cColour. """ return _gdi_.GraphicsContext_CreateRadialGradientBrush(*args, **kwargs) @@ -5481,7 +5500,8 @@ class GraphicsContext(GraphicsObject): """ PushState(self) - push the current state of the context, ie the transformation matrix on a stack + Push the current state of the context, (ie the transformation matrix) + on a stack """ return _gdi_.GraphicsContext_PushState(*args, **kwargs) @@ -5489,7 +5509,7 @@ class GraphicsContext(GraphicsObject): """ PopState(self) - pops a stored state from the stack + Pops a stored state from the stack """ return _gdi_.GraphicsContext_PopState(*args, **kwargs) @@ -5727,7 +5747,7 @@ class GraphicsContext(GraphicsObject): def StrokeLineSegements(*args, **kwargs): """ - StrokeLineSegements(self, PyObject beginPoints, PyObject endPoints) + StrokeLineSegments(self, List beginPoints, List endPoints) Stroke disconnected lines from begin to end points """ @@ -5806,9 +5826,10 @@ def GraphicsContext_CreateFromNative(*args, **kwargs): """ GraphicsContext_CreateFromNative(void context) -> GraphicsContext - Creates a wx.GraphicsContext from a native context. This native context - must be eg a CGContextRef for Core Graphics, a Graphics pointer for - GDIPlus or a cairo_t pointer for Cairo. + Creates a wx.GraphicsContext from a native context. This native + context must be eg a CGContextRef for Core Graphics, a Graphics + pointer for GDIPlus or a cairo_t pointer for Cairo. NOTE: For + wxPython we still need a way to make this value usable. """ return _gdi_.GraphicsContext_CreateFromNative(*args, **kwargs) @@ -5816,7 +5837,8 @@ def GraphicsContext_CreateFromNativeWindow(*args, **kwargs): """ GraphicsContext_CreateFromNativeWindow(void window) -> GraphicsContext - Creates a wx.GraphicsContext from a native window. + Creates a wx.GraphicsContext from a native window. NOTE: For wxPython + we still need a way to make this value usable. """ return _gdi_.GraphicsContext_CreateFromNativeWindow(*args, **kwargs) @@ -6246,17 +6268,6 @@ class PenList(GDIObjListBase): """FindOrCreatePen(self, Colour colour, int width, int style) -> Pen""" return _gdi_.PenList_FindOrCreatePen(*args, **kwargs) - def AddPen(*args, **kwargs): - """AddPen(self, Pen pen)""" - return _gdi_.PenList_AddPen(*args, **kwargs) - - def RemovePen(*args, **kwargs): - """RemovePen(self, Pen pen)""" - return _gdi_.PenList_RemovePen(*args, **kwargs) - - AddPen = wx._deprecated(AddPen) - RemovePen = wx._deprecated(RemovePen) - _gdi_.PenList_swigregister(PenList) class BrushList(GDIObjListBase): @@ -6268,17 +6279,6 @@ class BrushList(GDIObjListBase): """FindOrCreateBrush(self, Colour colour, int style=SOLID) -> Brush""" return _gdi_.BrushList_FindOrCreateBrush(*args, **kwargs) - def AddBrush(*args, **kwargs): - """AddBrush(self, Brush brush)""" - return _gdi_.BrushList_AddBrush(*args, **kwargs) - - def RemoveBrush(*args, **kwargs): - """RemoveBrush(self, Brush brush)""" - return _gdi_.BrushList_RemoveBrush(*args, **kwargs) - - AddBrush = wx._deprecated(AddBrush) - RemoveBrush = wx._deprecated(RemoveBrush) - _gdi_.BrushList_swigregister(BrushList) class FontList(GDIObjListBase): @@ -6294,17 +6294,6 @@ class FontList(GDIObjListBase): """ return _gdi_.FontList_FindOrCreateFont(*args, **kwargs) - def AddFont(*args, **kwargs): - """AddFont(self, Font font)""" - return _gdi_.FontList_AddFont(*args, **kwargs) - - def RemoveFont(*args, **kwargs): - """RemoveFont(self, Font font)""" - return _gdi_.FontList_RemoveFont(*args, **kwargs) - - AddFont = wx._deprecated(AddFont) - RemoveFont = wx._deprecated(RemoveFont) - _gdi_.FontList_swigregister(FontList) class ColourDatabase(object): @@ -6901,7 +6890,7 @@ class PseudoDC(_core.Object): def FindObjects(*args, **kwargs): """ - FindObjects(self, int x, int y, int radius=1, wxColor bg=*wxWHITE) -> PyObject + FindObjects(self, int x, int y, int radius=1, Colour bg=*wxWHITE) -> PyObject Returns a list of all the id's that draw a pixel with color not equal to bg within radius of (x,y).