]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mgl/toplevel.h
Include wx/image.h according to precompiled headers of wx/wx.h (with other minor...
[wxWidgets.git] / include / wx / mgl / toplevel.h
CommitLineData
7d9f12f3
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/mgl/toplevel.h
3// Purpose: Top level window, abstraction of wxFrame and wxDialog
4// Author: Vaclav Slavik
5// Id: $Id$
52750c2e 6// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
65571936 7// Licence: wxWindows licence
7d9f12f3
VS
8/////////////////////////////////////////////////////////////////////////////
9
7d9f12f3
VS
10#ifndef __WX_TOPLEVEL_H__
11#define __WX_TOPLEVEL_H__
12
7d9f12f3
VS
13//-----------------------------------------------------------------------------
14// wxTopLevelWindowMGL
15//-----------------------------------------------------------------------------
16
17class wxTopLevelWindowMGL : public wxTopLevelWindowBase
18{
19public:
20 // construction
21 wxTopLevelWindowMGL() { Init(); }
22 wxTopLevelWindowMGL(wxWindow *parent,
23 wxWindowID id,
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)
29 {
30 Init();
31
32 Create(parent, id, title, pos, size, style, name);
33 }
34
35 bool Create(wxWindow *parent,
36 wxWindowID id,
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);
42
43 virtual ~wxTopLevelWindowMGL();
44
45 // implement base class pure virtuals
46ae103b 46 virtual void Maximize(bool maximize = true);
7d9f12f3 47 virtual bool IsMaximized() const;
46ae103b 48 virtual void Iconize(bool iconize = true);
7d9f12f3
VS
49 virtual bool IsIconized() const;
50 virtual void Restore();
51
52 virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
53 virtual bool IsFullScreen() const { return m_fsIsShowing; }
54
46ae103b 55 virtual bool Show(bool show = true);
917afc7b 56
7d9f12f3
VS
57 virtual void SetTitle(const wxString &title) { m_title = title; }
58 virtual wxString GetTitle() const { return m_title; }
59
60 // implementation from now on
61 // --------------------------
62
63protected:
64 // common part of all ctors
65 void Init();
66
67 wxString m_title;
f41ed3c4 68 bool m_fsIsShowing:1; /* full screen */
7d9f12f3
VS
69 long m_fsSaveStyle;
70 long m_fsSaveFlag;
71 wxRect m_fsSaveFrame;
72
73 // is the frame currently iconized?
f41ed3c4 74 bool m_isIconized:1;
7d9f12f3 75 // and maximized?
f41ed3c4 76 bool m_isMaximized:1;
7d9f12f3 77 wxRect m_savedFrame;
f41ed3c4
VS
78
79 // did we sent wxSizeEvent at least once?
80 bool m_sizeSet:1;
7d9f12f3
VS
81};
82
83#endif // __WX_TOPLEVEL_H__