1 /////////////////////////////////////////////////////////////////////////////
2 // Name:        wx/gtk/frame.h
3 // Purpose:
4 // Author:      Robert Roebling
5 // Copyright:   (c) 1998 Robert Roebling, Julian Smart
6 // Licence:     wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
8 
9 #ifndef _WX_GTK_FRAME_H_
10 #define _WX_GTK_FRAME_H_
11 
12 //-----------------------------------------------------------------------------
13 // wxFrame
14 //-----------------------------------------------------------------------------
15 
16 class WXDLLIMPEXP_CORE wxFrame : public wxFrameBase
17 {
18 public:
19     // construction
wxFrame()20     wxFrame() { Init(); }
21     wxFrame(wxWindow *parent,
22                wxWindowID id,
23                const wxString& title,
24                const wxPoint& pos = wxDefaultPosition,
25                const wxSize& size = wxDefaultSize,
26                long style = wxDEFAULT_FRAME_STYLE,
27                const wxString& name = wxASCII_STR(wxFrameNameStr))
28     {
29         Init();
30 
31         Create(parent, id, title, pos, size, style, name);
32     }
33 
34     bool Create(wxWindow *parent,
35                 wxWindowID id,
36                 const wxString& title,
37                 const wxPoint& pos = wxDefaultPosition,
38                 const wxSize& size = wxDefaultSize,
39                 long style = wxDEFAULT_FRAME_STYLE,
40                 const wxString& name = wxASCII_STR(wxFrameNameStr));
41 
42 #if wxUSE_STATUSBAR
43     void SetStatusBar(wxStatusBar *statbar) wxOVERRIDE;
44 #endif // wxUSE_STATUSBAR
45 
46 #if wxUSE_TOOLBAR
47     void SetToolBar(wxToolBar *toolbar) wxOVERRIDE;
48 #endif // wxUSE_TOOLBAR
49 
50     virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL) wxOVERRIDE;
GetClientAreaOrigin()51     wxPoint GetClientAreaOrigin() const wxOVERRIDE { return wxPoint(0, 0); }
52 
53     // implementation from now on
54     // --------------------------
55 
56     virtual bool SendIdleEvents(wxIdleEvent& event) wxOVERRIDE;
57 
58 protected:
59     // override wxWindow methods to take into account tool/menu/statusbars
60     virtual void DoGetClientSize( int *width, int *height ) const wxOVERRIDE;
61 
62 #if wxUSE_MENUS_NATIVE
63     virtual void DetachMenuBar() wxOVERRIDE;
64     virtual void AttachMenuBar(wxMenuBar *menubar) wxOVERRIDE;
65 #endif // wxUSE_MENUS_NATIVE
66 
67 private:
68     void Init();
69 
70     long m_fsSaveFlag;
71 
72     wxDECLARE_DYNAMIC_CLASS(wxFrame);
73 };
74 
75 #endif // _WX_GTK_FRAME_H_
76