]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/frame.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / gtk / frame.h
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
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 = 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 = wxFrameNameStr);
41
42 virtual ~wxFrame();
43
44 #if wxUSE_STATUSBAR
45 void SetStatusBar(wxStatusBar *statbar);
46 #endif // wxUSE_STATUSBAR
47
48 #if wxUSE_TOOLBAR
49 void SetToolBar(wxToolBar *toolbar);
50 #endif // wxUSE_TOOLBAR
51
52 virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
53 wxPoint GetClientAreaOrigin() const { return wxPoint(0, 0); }
54
55 #if wxUSE_LIBHILDON || wxUSE_LIBHILDON2
56 // in Hildon environment all frames are always shown maximized
57 virtual bool IsMaximized() const { return true; }
58 #endif // wxUSE_LIBHILDON || wxUSE_LIBHILDON2
59
60 // implementation from now on
61 // --------------------------
62
63 virtual bool SendIdleEvents(wxIdleEvent& event);
64
65 protected:
66 // override wxWindow methods to take into account tool/menu/statusbars
67 virtual void DoGetClientSize( int *width, int *height ) const;
68
69 #if wxUSE_MENUS_NATIVE
70 virtual void DetachMenuBar();
71 virtual void AttachMenuBar(wxMenuBar *menubar);
72 #endif // wxUSE_MENUS_NATIVE
73
74 private:
75 void Init();
76
77 long m_fsSaveFlag;
78
79 DECLARE_DYNAMIC_CLASS(wxFrame)
80 };
81
82 #endif // _WX_GTK_FRAME_H_