From 293524e162ac88623e3419231bcbe53686dfaa52 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 26 May 2006 16:35:36 +0000 Subject: [PATCH] Use MustHaveApp for wx.RendererNative.Get and others git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_renderer.i | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 -- 2.45.2