]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/toplevel.h
proper default for iphone
[wxWidgets.git] / include / wx / osx / toplevel.h
CommitLineData
6762286d 1///////////////////////////////////////////////////////////////////////////////
233f5738 2// Name: wx/osx/toplevel.h
6762286d
SC
3// Purpose: wxTopLevelWindowMac is the Mac implementation of wxTLW
4// Author: Stefan Csomor
5// Modified by:
6// Created: 20.09.01
6762286d
SC
7// Copyright: (c) 2001 Stefan Csomor
8// Licence: wxWindows licence
9///////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_MSW_TOPLEVEL_H_
12#define _WX_MSW_TOPLEVEL_H_
13
14// ----------------------------------------------------------------------------
15// wxTopLevelWindowMac
16// ----------------------------------------------------------------------------
17
18class WXDLLIMPEXP_CORE wxTopLevelWindowMac : public wxTopLevelWindowBase
19{
20public:
21 // constructors and such
22 wxTopLevelWindowMac() { Init(); }
23
24 wxTopLevelWindowMac(wxWindow *parent,
25 wxWindowID id,
26 const wxString& title,
27 const wxPoint& pos = wxDefaultPosition,
28 const wxSize& size = wxDefaultSize,
29 long style = wxDEFAULT_FRAME_STYLE,
30 const wxString& name = wxFrameNameStr)
31 {
32 Init();
33
34 (void)Create(parent, id, title, pos, size, style, name);
35 }
36
638b3cd7
SC
37 virtual ~wxTopLevelWindowMac();
38
6762286d
SC
39 bool Create(wxWindow *parent,
40 wxWindowID id,
41 const wxString& title,
42 const wxPoint& pos = wxDefaultPosition,
43 const wxSize& size = wxDefaultSize,
44 long style = wxDEFAULT_FRAME_STYLE,
45 const wxString& name = wxFrameNameStr);
ce00f59b 46
638b3cd7 47 bool Create(wxWindow *parent, WXWindow nativeWindow);
ce00f59b 48
6762286d
SC
49 virtual bool Destroy();
50
51 virtual wxPoint GetClientAreaOrigin() const;
52
53 // Attracts the users attention to this window if the application is
54 // inactive (should be called when a background event occurs)
55 virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO);
56
57 // implement base class pure virtuals
58 virtual void Maximize(bool maximize = true);
59 virtual bool IsMaximized() const;
60 virtual void Iconize(bool iconize = true);
61 virtual bool IsIconized() const;
62 virtual void Restore();
ce00f59b 63
dbc7ceb9 64 virtual bool IsActive();
6762286d 65
dbc7ceb9 66 virtual void ShowWithoutActivating();
6762286d
SC
67 virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL) ;
68 virtual bool IsFullScreen() const ;
69
70 // implementation from now on
71 // --------------------------
72
73 virtual void SetTitle( const wxString& title);
74 virtual wxString GetTitle() const;
03647350 75
033f86db
SC
76 virtual void SetLabel(const wxString& label) { SetTitle( label ); }
77 virtual wxString GetLabel() const { return GetTitle(); }
78
ebf7d5c4
KO
79 virtual void OSXSetModified(bool modified);
80 virtual bool OSXIsModified() const;
efb2fa41 81
6a0e4ead
VZ
82 virtual void SetRepresentedFilename(const wxString& filename);
83
6762286d
SC
84protected:
85 // common part of all ctors
86 void Init();
87
88 // is the frame currently iconized?
89 bool m_iconized;
90
91 // should the frame be maximized when it will be shown? set by Maximize()
92 // when it is called while the frame is hidden
93 bool m_maximizeOnShow;
94private :
95 DECLARE_EVENT_TABLE()
96};
97
98#endif // _WX_MSW_TOPLEVEL_H_