X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/992b2ec476a34e6f71220ad103b45b107f20f370..6305fabeeb14bf9fb020d096c5944ffb1b2ae4dc:/include/wx/window.h diff --git a/include/wx/window.h b/include/wx/window.h index 7a20ca1615..47e9d653e1 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -368,7 +368,7 @@ public: { DoSetSizeHints(minW, minH, maxW, maxH, incW, incH); } - + void SetSizeHints( const wxSize& minSize, const wxSize& maxSize=wxDefaultSize, const wxSize& incSize=wxDefaultSize) @@ -377,7 +377,7 @@ public: maxSize.x, maxSize.y, incSize.x, incSize.y); } - + virtual void DoSetSizeHints(int minW, int minH, int maxW = wxDefaultCoord, int maxH = wxDefaultCoord, int incW = wxDefaultCoord, int incH = wxDefaultCoord ); @@ -502,7 +502,7 @@ public: // return the window which currently has the focus or NULL static wxWindow *FindFocus(); - + static wxWindow *DoFindFocus() /* = 0: implement in derived classes */; // can this window have focus? @@ -757,6 +757,13 @@ public: } wxColour GetBackgroundColour() const; + // if the window shouldn't inherit its colour from the parent, override + // this function to return true + // + // this is currently only used by wxMSW and wxUniv but should be useful for + // the other ports too + virtual bool ProvidesBackground() const { return false; } + virtual bool SetForegroundColour(const wxColour& colour); void SetOwnForegroundColour(const wxColour& colour) { @@ -1085,7 +1092,7 @@ protected: // returns the main window of composite control; this is the window // that FindFocus returns if the focus is in one of composite control's // windows - virtual wxWindow *GetMainWindowOfCompositeControl() + virtual wxWindow *GetMainWindowOfCompositeControl() { return (wxWindow*)this; } // the window id - a number which uniquely identifies a window among @@ -1310,7 +1317,14 @@ private: // ---------------------------------------------------------------------------- // include the declaration of the platform-specific class -#if defined(__WXMSW__) +#if defined(__PALMOS__) + #ifdef __WXUNIVERSAL__ + #define wxWindowNative wxWindowPalm + #else // !wxUniv + #define wxWindowPalm wxWindow + #endif // wxUniv/!wxUniv + #include "wx/palmos/window.h" +#elif defined(__WXMSW__) #ifdef __WXUNIVERSAL__ #define wxWindowNative wxWindowMSW #else // !wxUniv @@ -1412,7 +1426,7 @@ class WXDLLEXPORT wxWindowAccessible: public wxAccessible { public: wxWindowAccessible(wxWindow* win): wxAccessible(win) { if (win) win->SetAccessible(this); } - virtual ~wxWindowAccessible() {}; + virtual ~wxWindowAccessible() {} // Overridables