]>
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-2002 SciTech Software, Inc. (www.scitechsoft.com)
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __WX_TOPLEVEL_H__
11 #define __WX_TOPLEVEL_H__
13 //-----------------------------------------------------------------------------
14 // wxTopLevelWindowMGL
15 //-----------------------------------------------------------------------------
17 class wxTopLevelWindowMGL
: public wxTopLevelWindowBase
21 wxTopLevelWindowMGL() { Init(); }
22 wxTopLevelWindowMGL(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
);
43 virtual ~wxTopLevelWindowMGL();
45 // implement base class pure virtuals
46 virtual void Maximize(bool maximize
= true);
47 virtual bool IsMaximized() const;
48 virtual void Iconize(bool iconize
= true);
49 virtual bool IsIconized() const;
50 virtual void Restore();
52 virtual bool ShowFullScreen(bool show
, long style
= wxFULLSCREEN_ALL
);
53 virtual bool IsFullScreen() const { return m_fsIsShowing
; }
55 virtual bool Show(bool show
= true);
57 virtual void SetTitle(const wxString
&title
) { m_title
= title
; }
58 virtual wxString
GetTitle() const { return m_title
; }
60 // implementation from now on
61 // --------------------------
64 // common part of all ctors
68 bool m_fsIsShowing
:1; /* full screen */
73 // is the frame currently iconized?
79 // did we sent wxSizeEvent at least once?
83 #endif // __WX_TOPLEVEL_H__