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
This commit is contained in:
Robin Dunn 2006-05-26 16:35:36 +00:00
parent e7445ff8ee
commit 293524e162

View File

@ -112,6 +112,11 @@ The wx.RendererNative class is a collection of functions that have
platform-specific implementations for drawing certain parts of platform-specific implementations for drawing certain parts of
genereic controls in ways that are as close to the native look as genereic controls in ways that are as close to the native look as
possible. 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 class wxRendererNative
@ -226,12 +231,13 @@ The flags parameter may be:
MustHaveApp(Get);
DocDeclStr( DocDeclStr(
static wxRendererNative& , Get(), static wxRendererNative& , Get(),
"Return the currently used renderer", ""); "Return the currently used renderer", "");
MustHaveApp(GetGeneric);
DocDeclStr( DocDeclStr(
static wxRendererNative& , GetGeneric(), static wxRendererNative& , GetGeneric(),
"Return the generic implementation of the renderer. Under some "Return the generic implementation of the renderer. Under some
@ -240,6 +246,7 @@ platform-specific default renderer which can be retrieved by calling
`GetDefault`.", ""); `GetDefault`.", "");
MustHaveApp(GetDefault);
DocDeclStr( DocDeclStr(
static wxRendererNative& , GetDefault(), static wxRendererNative& , GetDefault(),
"Return the default (native) implementation for this platform -- this "Return the default (native) implementation for this platform -- this
@ -255,6 +262,7 @@ the return value of `Get`.", "");
// static wxRendererNative *Load(const wxString& name); // static wxRendererNative *Load(const wxString& name);
MustHaveApp(Set);
DocDeclStr( DocDeclStr(
static wxRendererNative *, Set(wxRendererNative *renderer), static wxRendererNative *, Set(wxRendererNative *renderer),
"Set the renderer to use, passing None reverts to using the default "Set the renderer to use, passing None reverts to using the default