X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6f582e704041c4b133893183270d4853ea34bac..f0c3b72446ee4a45e63a953d2a098a5f229f3a57:/include/wx/window.h diff --git a/include/wx/window.h b/include/wx/window.h index 5a098ee0f3..30f4f2f57c 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -473,6 +473,11 @@ public: return wxSize( wxMax( client.x, best.x ), wxMax( client.y, best.y ) ); } + // return the size of the left/right and top/bottom borders in x and y + // components of the result respectively + virtual wxSize GetWindowBorderSize() const; + + // window state // ------------ @@ -501,9 +506,14 @@ public: void SetWindowStyle( long style ) { SetWindowStyleFlag(style); } long GetWindowStyle() const { return GetWindowStyleFlag(); } + // check if the flag is set bool HasFlag(int flag) const { return (m_windowStyle & flag) != 0; } virtual bool IsRetained() const { return HasFlag(wxRETAINED); } + // turn the flag on if it had been turned off before and vice versa, + // return true if the flag is currently turned on + bool ToggleWindowStyle(int flag); + // extra style: the less often used style bits which can't be set with // SetWindowStyleFlag() virtual void SetExtraStyle(long exStyle) { m_exStyle = exStyle; }