]>
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 #if wxUSE_LIBHILDON || wxUSE_LIBHILDON2
57 // in Hildon environment all frames are always shown maximized
58 virtual bool IsMaximized() const { return true; }
59 #endif // wxUSE_LIBHILDON || wxUSE_LIBHILDON2
61 // implementation from now on
62 // --------------------------
64 virtual bool SendIdleEvents(wxIdleEvent
& event
);
67 // common part of all ctors
70 // override wxWindow methods to take into account tool/menu/statusbars
71 virtual void DoGetClientSize( int *width
, int *height
) const;
73 #if wxUSE_MENUS_NATIVE
74 virtual void DetachMenuBar();
75 virtual void AttachMenuBar(wxMenuBar
*menubar
);
76 #endif // wxUSE_MENUS_NATIVE
81 DECLARE_DYNAMIC_CLASS(wxFrame
)
84 #endif // _WX_GTK_FRAME_H_