X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/07e3a44f8856aa85316b9a6e5c41eec2fb1224fb..4c16bedf179acf883041b6fcede0a430ddf34022:/wxPython/src/_renderer.i?ds=sidebyside diff --git a/wxPython/src/_renderer.i b/wxPython/src/_renderer.i index 6d6a2783d0..f95f1ea916 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,12 +231,13 @@ 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 @@ -240,6 +246,7 @@ platform-specific default renderer which can be retrieved by calling `GetDefault`.", ""); + MustHaveApp(GetDefault); DocDeclStr( static wxRendererNative& , GetDefault(), "Return the default (native) implementation for this platform -- this @@ -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