X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a290fa5a7deebe9d96c0c0089d18e27d4bd9b624..cb3db09022512bcbb6c6c41dd6859ab9245186a1:/include/wx/univ/toplevel.h diff --git a/include/wx/univ/toplevel.h b/include/wx/univ/toplevel.h index e0fb181d12..4cb89dbf36 100644 --- a/include/wx/univ/toplevel.h +++ b/include/wx/univ/toplevel.h @@ -11,10 +11,6 @@ #ifndef __WX_UNIV_TOPLEVEL_H__ #define __WX_UNIV_TOPLEVEL_H__ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "univtoplevel.h" -#endif - #include "wx/univ/inpcons.h" #include "wx/univ/inphand.h" #include "wx/icon.h" @@ -122,8 +118,6 @@ public: // implement base class pure virtuals virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL); virtual wxPoint GetClientAreaOrigin() const; - virtual void DoGetClientSize(int *width, int *height) const; - virtual void DoSetClientSize(int width, int height); virtual void SetIcon(const wxIcon& icon) { SetIcons( wxIconBundle( icon ) ); } virtual void SetIcons(const wxIconBundle& icons); @@ -143,14 +137,15 @@ public: virtual int GetMinWidth() const; virtual int GetMinHeight() const; - virtual bool ProvidesBackground() const { return true; } - + virtual wxWindow *GetInputWindow() const { return wx_const_cast(wxTopLevelWindow*, this); } + protected: + virtual void DoGetClientSize(int *width, int *height) const; + virtual void DoSetClientSize(int width, int height); + // handle titlebar button click event virtual void ClickTitleBarButton(long button); - virtual wxWindow *GetInputWindow() const { return (wxWindow*)this; } - // return wxTOPLEVEL_xxx combination based on current state of the frame long GetDecorationsStyle() const;