]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mgl/toplevel.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mgl/toplevel.h
3 // Purpose: Top level window, abstraction of wxFrame and wxDialog
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __WX_TOPLEVEL_H__
12 #define __WX_TOPLEVEL_H__
15 #pragma interface "toplevel.h"
19 //-----------------------------------------------------------------------------
20 // wxTopLevelWindowMGL
21 //-----------------------------------------------------------------------------
23 class wxTopLevelWindowMGL
: public wxTopLevelWindowBase
27 wxTopLevelWindowMGL() { Init(); }
28 wxTopLevelWindowMGL(wxWindow
*parent
,
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
)
38 Create(parent
, id
, title
, pos
, size
, style
, name
);
41 bool Create(wxWindow
*parent
,
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
);
49 virtual ~wxTopLevelWindowMGL();
51 // implement base class pure virtuals
52 virtual void Maximize(bool maximize
= TRUE
);
53 virtual bool IsMaximized() const;
54 virtual void Iconize(bool iconize
= TRUE
);
55 virtual bool IsIconized() const;
56 virtual void Restore();
58 virtual bool ShowFullScreen(bool show
, long style
= wxFULLSCREEN_ALL
);
59 virtual bool IsFullScreen() const { return m_fsIsShowing
; }
61 virtual void SetTitle(const wxString
&title
) { m_title
= title
; }
62 virtual wxString
GetTitle() const { return m_title
; }
64 // implementation from now on
65 // --------------------------
68 // common part of all ctors
72 bool m_fsIsShowing
; /* full screen */
77 // is the frame currently iconized?
84 #endif // __WX_TOPLEVEL_H__