]>
Commit | Line | Data |
---|---|---|
0f1bf77d VS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/toplevel.h | |
3 | // Purpose: Top level window, abstraction of wxFrame and wxDialog | |
4 | // Author: Vaclav Slavik | |
5 | // Id: $Id$ | |
6 | // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com) | |
7 | // Licence: wxWindows licence | |
8 | ///////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | ||
11 | #ifndef __WX_UNIV_TOPLEVEL_H__ | |
12 | #define __WX_UNIV_TOPLEVEL_H__ | |
13 | ||
14 | #ifdef __GNUG__ | |
15 | #pragma interface "univtoplevel.h" | |
16 | #endif | |
17 | ||
18 | ||
19 | //----------------------------------------------------------------------------- | |
20 | // wxTopLevelWindow | |
21 | //----------------------------------------------------------------------------- | |
22 | ||
23 | class wxTopLevelWindow : public wxTopLevelWindowNative | |
24 | { | |
25 | public: | |
26 | // construction | |
27 | wxTopLevelWindow() { Init(); } | |
28 | wxTopLevelWindow(wxWindow *parent, | |
29 | wxWindowID id, | |
30 | const wxString& title, | |
31 | const wxPoint& pos = wxDefaultPosition, | |
32 | const wxSize& size = wxDefaultSize, | |
33 | long style = wxDEFAULT_FRAME_STYLE, | |
34 | const wxString& name = wxFrameNameStr) | |
35 | { | |
36 | Init(); | |
37 | ||
38 | Create(parent, id, title, pos, size, style, name); | |
39 | } | |
40 | ||
41 | bool Create(wxWindow *parent, | |
42 | wxWindowID id, | |
43 | const wxString& title, | |
44 | const wxPoint& pos = wxDefaultPosition, | |
45 | const wxSize& size = wxDefaultSize, | |
46 | long style = wxDEFAULT_FRAME_STYLE, | |
47 | const wxString& name = wxFrameNameStr); | |
48 | ||
49 | // implement base class pure virtuals | |
50 | virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL); | |
51 | ||
52 | // implementation from now on | |
53 | // -------------------------- | |
54 | ||
55 | DECLARE_DYNAMIC_CLASS(wxTopLevelWindow) | |
56 | ||
57 | protected: | |
58 | // common part of all ctors | |
59 | void Init(); | |
60 | }; | |
61 | ||
62 | #endif // __WX_UNIV_TOPLEVEL_H__ |