X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/333d70525c5f8caff27c8847160daf5fd5ccef46..8e509c4b0c60bc066958574e4122a3db8ffcf491:/include/wx/window.h?ds=sidebyside diff --git a/include/wx/window.h b/include/wx/window.h index acff5abc8e..30f4f2f57c 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -506,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; }