BlitPointSize);
+ DocDeclStr(
+ bool , StretchBlit(wxCoord dstX, wxCoord dstY,
+ wxCoord dstWidth, wxCoord dstHeight,
+ wxDC *source,
+ wxCoord srcX, wxCoord srcY,
+ wxCoord srcWidth, wxCoord srcHeight,
+ int rop = wxCOPY, bool useMask = false,
+ wxCoord srcMaskX = wxDefaultCoord,
+ wxCoord srcMaskY = wxDefaultCoord),
+ "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.", "
+
+ :param xdest: Destination device context x position.
+ :param ydest: Destination device context y position.
+ :param dstWidth: Width of destination area.
+ :param dstHeight: Height of destination area.
+ :param source: Source device context.
+ :param xsrc: Source device context x position.
+ :param ysrc: Source device context y position.
+ :param srcWidth: Width of source area to be copied.
+ :param srcHeight: Height of source area to be copied.
+ :param logicalFunc: Logical function to use: see `SetLogicalFunction`.
+ :param useMask: If true, StretchBlit does a transparent blit using
+ the mask that is associated with the bitmap selected
+ into the source device context.
+ :param xsrcMask: Source x position on the mask. If both xsrcMask and
+ ysrcMask are -1, xsrc and ysrc will be assumed for
+ the mask source position. Currently only implemented
+ on Windows.
+ :param ysrcMask: Source y position on the mask.
+");
+
+
+
+ DocDeclStrName(
+ bool , StretchBlit(const wxPoint& dstPt, const wxSize& dstSize,
+ wxDC *source, const wxPoint& srcPt, const wxSize& srcSize,
+ int rop = wxCOPY, bool useMask = false,
+ const wxPoint& srcMaskPt = wxDefaultPosition),
+ "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.", "",
+ StretchBlitPointSize);
+
+
+
DocDeclStr(
wxBitmap , GetAsBitmap(const wxRect *subrect = NULL) const,
"", "");
DocDeclAStrName(
void, GetTextExtent(const wxString& string,
wxCoord *OUTPUT, wxCoord *OUTPUT, wxCoord *OUTPUT, wxCoord* OUTPUT,
- wxFont* font = NULL),
+ const wxFont* font = NULL),
"GetFullTextExtent(wxString string, Font font=None) ->\n (width, height, descent, externalLeading)",
"Get the width, height, decent and leading of the text using the
current or specified font. Only works for single line strings.", "",
DocDeclAStr(
void, GetMultiLineTextExtent(const wxString& text,
wxCoord *OUTPUT, wxCoord *OUTPUT, wxCoord *OUTPUT,
- wxFont *font = NULL),
+ const wxFont *font = NULL),
"GetMultiLineTextExtent(wxString string, Font font=None) ->\n (width, height, lineHeight)",
"Get the width, height, and line height of the text using the
current or specified font. Works for single as well as multi-line
enum {
wxBUFFER_VIRTUAL_AREA,
- wxBUFFER_CLIENT_AREA
+ wxBUFFER_CLIENT_AREA,
+ wxBUFFER_USES_SHARED_BUFFER
};
MustHaveApp(wxBufferedDC);
};
#endif
+//---------------------------------------------------------------------------
+
+%{
+#include <wx/dcsvg.h>
+%}
+
+class wxSVGFileDC : public wxDC
+{
+ %nokwargs wxSVGFileDC;
+
+ wxSVGFileDC(wxString f);
+ wxSVGFileDC(wxString f, int Width, int Height);
+ wxSVGFileDC(wxString f, int Width, int Height, float dpi);
+
+ ~wxSVGFileDC();
+
+};
+
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------