]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/frame.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/frame.h
4 // Author: Robert Roebling
5 // Copyright: (c) 1998 Robert Roebling, Julian Smart
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef _WX_GTK_FRAME_H_
10 #define _WX_GTK_FRAME_H_
12 //-----------------------------------------------------------------------------
14 //-----------------------------------------------------------------------------
16 class WXDLLIMPEXP_CORE wxFrame
: public wxFrameBase
21 wxFrame(wxWindow
*parent
,
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
)
31 Create(parent
, id
, title
, pos
, size
, style
, name
);
34 bool Create(wxWindow
*parent
,
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
);
45 void SetStatusBar(wxStatusBar
*statbar
);
46 #endif // wxUSE_STATUSBAR
49 void SetToolBar(wxToolBar
*toolbar
);
50 #endif // wxUSE_TOOLBAR
52 virtual bool ShowFullScreen(bool show
, long style
= wxFULLSCREEN_ALL
);
53 wxPoint
GetClientAreaOrigin() const { return wxPoint(0, 0); }
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
60 // implementation from now on
61 // --------------------------
63 virtual bool SendIdleEvents(wxIdleEvent
& event
);
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
79 DECLARE_DYNAMIC_CLASS(wxFrame
)
82 #endif // _WX_GTK_FRAME_H_