X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/70794ec5ba1c6849d716a2b932abe458fec9fc8b..6bda7508c6e41365b69fdf690b3070991098a7af:/wxPython/src/_dc.i diff --git a/wxPython/src/_dc.i b/wxPython/src/_dc.i index d5dca6ae04..8d906f3d48 100644 --- a/wxPython/src/_dc.i +++ b/wxPython/src/_dc.i @@ -246,8 +246,8 @@ current text background colour to draw the background (all bits set to 0). :see: `SetTextForeground`, `SetTextBackground` and `wx.MemoryDC`"); - void DrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y, bool useMask = False); - %name(DrawBitmapPoint) void DrawBitmap(const wxBitmap &bmp, const wxPoint& pt, bool useMask = False); + void DrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y, bool useMask = false); + %name(DrawBitmapPoint) void DrawBitmap(const wxBitmap &bmp, const wxPoint& pt, bool useMask = false); DocStr( @@ -285,7 +285,7 @@ font. ``wx.SWISS_FONT`` is an example of a font which is."," DocDeclStr( bool , Blit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height, wxDC *source, wxCoord xsrc, wxCoord ysrc, - int rop = wxCOPY, bool useMask = False, + int rop = wxCOPY, bool useMask = false, wxCoord xsrcMask = -1, wxCoord ysrcMask = -1), "Copy from a source DC to this DC. Parameters specify the destination coordinates, size of area to copy, source DC, source coordinates, @@ -312,7 +312,7 @@ position.", " DocDeclStrName( bool , Blit(const wxPoint& destPt, const wxSize& sz, wxDC *source, const wxPoint& srcPt, - int rop = wxCOPY, bool useMask = False, + int rop = wxCOPY, bool useMask = false, const wxPoint& srcPtMask = wxDefaultPosition), "Copy from a source DC to this DC. Parameters specify the destination coordinates, size of area to copy, source DC, source coordinates, @@ -818,7 +818,7 @@ mode, but mapping mode is currently ignored for PostScript output. "Sets the x and y axis orientation (i.e., the direction from lowest to highest values on the axis). The default orientation is the natural orientation, e.g. x axis from left to right and y axis from bottom up.", ""); - + DocDeclStr( int , GetLogicalFunction() const, @@ -862,25 +862,43 @@ colour. DocDeclStr( - virtual void , SetOptimization(bool optimize), - "If *optimize* is true this function sets optimization mode on. This -currently means that under X, the device context will not try to set a -pen or brush property if it is known to be set already. This approach -can fall down if non-wxWidgets code is using the same device context -or window, for example when the window is a panel on which the -windowing system draws panel items. The wxWidgets device context -'memory' will now be out of step with reality. - -Setting optimization off, drawing, then setting it back on again, is a -trick that must occasionally be employed.", ""); + void , ComputeScaleAndOrigin(), + "Performs all necessary computations for given platform and context +type after each change of scale and origin parameters. Usually called +automatically internally after such changes. +", ""); - DocDeclStr( - virtual bool , GetOptimization(), - "Returns true if device context optimization is on. See -`SetOptimization` for details.", ""); + +// DocDeclStr( +// virtual void , SetOptimization(bool optimize), +// "If *optimize* is true this function sets optimization mode on. This +// currently means that under X, the device context will not try to set a +// pen or brush property if it is known to be set already. This approach +// can fall down if non-wxWidgets code is using the same device context +// or window, for example when the window is a panel on which the +// windowing system draws panel items. The wxWidgets device context +// 'memory' will now be out of step with reality. +// Setting optimization off, drawing, then setting it back on again, is a +// trick that must occasionally be employed.", ""); + +// DocDeclStr( +// virtual bool , GetOptimization(), +// "Returns true if device context optimization is on. See +// `SetOptimization` for details.", ""); + + %pythoncode { + def SetOptimization(self, optimize): + pass + def GetOptimization(self): + return False + SetOptimization = wx._deprecated(SetOptimization) + GetOptimization = wx._deprecated(GetOptimization) + } + + // bounding box // ------------ @@ -1575,7 +1593,7 @@ public: // %name(PrinterDC2) wxPrinterDC(const wxString& driver, // const wxString& device, // const wxString& output, -// bool interactive = True, +// bool interactive = true, // int orientation = wxPORTRAIT); }; @@ -1597,7 +1615,7 @@ public: // %name(PrinterDC2) wxPrinterDC(const wxString& driver, // const wxString& device, // const wxString& output, -// bool interactive = True, +// bool interactive = true, // int orientation = wxPORTRAIT); }; #endif