X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/07e3a44f8856aa85316b9a6e5c41eec2fb1224fb..c4287548985b4a8246eb1d9b4ced2f346fc95253:/wxPython/src/_renderer.i diff --git a/wxPython/src/_renderer.i b/wxPython/src/_renderer.i index 6d6a2783d0..3ee0740e0f 100644 --- a/wxPython/src/_renderer.i +++ b/wxPython/src/_renderer.i @@ -112,6 +112,11 @@ The wx.RendererNative class is a collection of functions that have platform-specific implementations for drawing certain parts of genereic controls in ways that are as close to the native look as possible. + +Note that each drawing function restores the `wx.DC` attributes if it +changes them, so it is safe to assume that the same pen, brush and +colours that were active before the call to this function are still in +effect after it. ", ""); class wxRendererNative @@ -226,26 +231,28 @@ The flags parameter may be: - + MustHaveApp(Get); DocDeclStr( static wxRendererNative& , Get(), "Return the currently used renderer", ""); + MustHaveApp(GetGeneric); DocDeclStr( static wxRendererNative& , GetGeneric(), "Return the generic implementation of the renderer. Under some platforms, this is the default renderer implementation, others have platform-specific default renderer which can be retrieved by calling -`GetDefault`.", ""); +`wx.RendererNative.GetDefault`.", ""); + MustHaveApp(GetDefault); DocDeclStr( static wxRendererNative& , GetDefault(), "Return the default (native) implementation for this platform -- this -is also the one used by default but this may be changed by calling `Set` -in which case the return value of this method may be different from -the return value of `Get`.", ""); +is also the one used by default but this may be changed by calling +`wx.RendererNative.Set` in which case the return value of this method +may be different from the return value of `wx.RendererNative.Get`.", ""); @@ -255,6 +262,7 @@ the return value of `Get`.", ""); // static wxRendererNative *Load(const wxString& name); + MustHaveApp(Set); DocDeclStr( static wxRendererNative *, Set(wxRendererNative *renderer), "Set the renderer to use, passing None reverts to using the default