X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4cc4e7b6ccea5e345e54871f25951e3a0fe2570a..748a46846984b408135b2e1c1093db31f9296543:/include/wx/window.h diff --git a/include/wx/window.h b/include/wx/window.h index 47e9d653e1..2fc2a8a6d2 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -570,8 +570,8 @@ public: // find window among the descendants of this one either by id or by // name (return NULL if not found) - wxWindow *FindWindow( long winid ); - wxWindow *FindWindow( const wxString& name ); + wxWindow *FindWindow(long winid) const; + wxWindow *FindWindow(const wxString& name) const; // Find a window among any window (all return NULL if not found) static wxWindow *FindWindowById( long winid, const wxWindow *parent = NULL ); @@ -777,6 +777,11 @@ public: virtual bool SetBackgroundStyle(wxBackgroundStyle style) { m_backgroundStyle = style; return true; } virtual wxBackgroundStyle GetBackgroundStyle() const { return m_backgroundStyle; } + // returns true if the control has "transparent" areas such as a + // wxStaticText and wxCheckBox and the background should be adapted + // from a parent window + virtual bool HasTransparentBackground() { return false; } + // set/retrieve the font for the window (SetFont() returns true if the // font really changed) virtual bool SetFont(const wxFont& font) = 0; @@ -1317,7 +1322,7 @@ private: // ---------------------------------------------------------------------------- // include the declaration of the platform-specific class -#if defined(__PALMOS__) +#if defined(__WXPALMOS__) #ifdef __WXUNIVERSAL__ #define wxWindowNative wxWindowPalm #else // !wxUniv