X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c0ea335c7b1aa4ebd8b3a79dfb4be9fb20eefdb..52f96deca1baa3c5ac50eb1c22481ae21cb941fc:/include/wx/frame.h diff --git a/include/wx/frame.h b/include/wx/frame.h index 831e122705..de126f6a57 100644 --- a/include/wx/frame.h +++ b/include/wx/frame.h @@ -27,11 +27,20 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxFrameNameStr; WXDLLEXPORT_DATA(extern const wxChar*) wxStatusLineNameStr; WXDLLEXPORT_DATA(extern const wxChar*) wxToolBarNameStr; +WXDLLEXPORT_DATA(extern wxWindow*) wxWndHook; class WXDLLEXPORT wxMenuBar; class WXDLLEXPORT wxStatusBar; class WXDLLEXPORT wxToolBar; +// Styles for ShowFullScreen +#define wxFULLSCREEN_NOMENUBAR 0x01 +#define wxFULLSCREEN_NOTOOLBAR 0x02 +#define wxFULLSCREEN_NOSTATUSBAR 0x04 +#define wxFULLSCREEN_NOBORDER 0x08 +#define wxFULLSCREEN_NOCAPTION 0x10 +#define wxFULLSCREEN_ALL (wxFULLSCREEN_NOMENUBAR | wxFULLSCREEN_NOTOOLBAR | wxFULLSCREEN_NOSTATUSBAR | wxFULLSCREEN_NOBORDER | wxFULLSCREEN_NOCAPTION) + // ---------------------------------------------------------------------------- // wxFrame is a top-level window with optional menubar, statusbar and toolbar // @@ -49,6 +58,9 @@ class WXDLLEXPORT wxFrameBase : public wxWindow public: // construction wxFrameBase(); +#ifdef __WXMAC_X__ + virtual ~wxFrameBase() {} // Added min for Mac X +#endif wxFrame *New(wxWindow *parent, wxWindowID id, @@ -85,6 +97,10 @@ public: // make the window modal (all other windows unresponsive) virtual void MakeModal(bool modal = TRUE); + // get the origin of the client area (which may be different from (0, 0) + // if the frame has a toolbar) in client coordinates + virtual wxPoint GetClientAreaOrigin() const; + // menu bar functions // ------------------ @@ -179,6 +195,10 @@ protected: // something changes virtual void PositionStatusBar() { } + // show the help string for this menu item in the given status bar: the + // status bar pointer can be NULL; return TRUE if help was shown + bool ShowMenuHelp(wxStatusBar *statbar, int id); + wxStatusBar *m_frameStatusBar; #endif // wxUSE_STATUSBAR @@ -190,6 +210,11 @@ protected: wxToolBar *m_frameToolBar; #endif // wxUSE_TOOLBAR + // the frame client to screen translation should take account of the + // toolbar which may shift the origin of the client area + virtual void DoClientToScreen(int *x, int *y) const; + virtual void DoScreenToClient(int *x, int *y) const; + // the frame icon wxIcon m_icon;