X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/054fdb68eba84ff55658116e41aa503990ec3ea9..ab7f0034828cfc121014b3e1e29bba583fb6d832:/interface/wx/window.h?ds=sidebyside diff --git a/interface/wx/window.h b/interface/wx/window.h index 29300d796d..f7d3a31938 100644 --- a/interface/wx/window.h +++ b/interface/wx/window.h @@ -385,6 +385,8 @@ public: Returns @true if the window (or in case of composite controls, its main child window) has focus. + @since 2.9.0 + @see FindFocus() */ virtual bool HasFocus() const; @@ -1923,7 +1925,16 @@ public: */ void SetOwnBackgroundColour(const wxColour& colour); + /** + Return @true if this window inherits the background colour from its parent. + + @see SetOwnBackgroundColour(), InheritAttributes() + */ bool InheritsBackgroundColour() const; + + /** + Return @true if a background colour has been set for this window. + */ bool UseBgCol() const; /** @@ -3538,6 +3549,11 @@ protected: GetBestSize() returns an arbitrary hardcoded size for the window, so you must override it when implementing a custom window class. + Notice that the best size returned by this function is cached + internally, so if anything that results in the best size changing (e.g. + change to the control contents) happens, you need to call + InvalidateBestSize() to notify wxWidgets about it. + @see @ref overview_windowsizing @since 2.9.0