]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/frame.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/frame.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling, Julian Smart
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GTK_FRAME_H_
11 #define _WX_GTK_FRAME_H_
13 //-----------------------------------------------------------------------------
15 //-----------------------------------------------------------------------------
17 class WXDLLIMPEXP_CORE wxFrame
: public wxFrameBase
22 wxFrame(wxWindow
*parent
,
24 const wxString
& title
,
25 const wxPoint
& pos
= wxDefaultPosition
,
26 const wxSize
& size
= wxDefaultSize
,
27 long style
= wxDEFAULT_FRAME_STYLE
,
28 const wxString
& name
= wxFrameNameStr
)
32 Create(parent
, id
, title
, pos
, size
, style
, name
);
35 bool Create(wxWindow
*parent
,
37 const wxString
& title
,
38 const wxPoint
& pos
= wxDefaultPosition
,
39 const wxSize
& size
= wxDefaultSize
,
40 long style
= wxDEFAULT_FRAME_STYLE
,
41 const wxString
& name
= wxFrameNameStr
);
46 void SetStatusBar(wxStatusBar
*statbar
);
47 #endif // wxUSE_STATUSBAR
50 void SetToolBar(wxToolBar
*toolbar
);
51 #endif // wxUSE_TOOLBAR
53 virtual bool ShowFullScreen(bool show
, long style
= wxFULLSCREEN_ALL
);
54 wxPoint
GetClientAreaOrigin() const { return wxPoint(0, 0); }
56 // implementation from now on
57 // --------------------------
60 virtual void OnInternalIdle();
63 // common part of all ctors
66 // override wxWindow methods to take into account tool/menu/statusbars
67 virtual void DoGetClientSize( int *width
, int *height
) const;
69 #if wxUSE_MENUS_NATIVE
70 virtual void DetachMenuBar();
71 virtual void AttachMenuBar(wxMenuBar
*menubar
);
72 #endif // wxUSE_MENUS_NATIVE
77 DECLARE_DYNAMIC_CLASS(wxFrame
)
80 #endif // _WX_GTK_FRAME_H_