]>
Commit | Line | Data |
---|---|---|
8cf73271 | 1 | /////////////////////////////////////////////////////////////////////////////// |
fb5246be | 2 | // Name: wx/mac/carbon/toplevel.h |
8cf73271 SC |
3 | // Purpose: wxTopLevelWindowMac is the Mac implementation of wxTLW |
4 | // Author: Stefan Csomor | |
5 | // Modified by: | |
6 | // Created: 20.09.01 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) 2001 Stefan Csomor | |
65571936 | 9 | // Licence: wxWindows licence |
8cf73271 SC |
10 | /////////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_MSW_TOPLEVEL_H_ | |
13 | #define _WX_MSW_TOPLEVEL_H_ | |
14 | ||
8cf73271 SC |
15 | // ---------------------------------------------------------------------------- |
16 | // wxTopLevelWindowMac | |
17 | // ---------------------------------------------------------------------------- | |
18 | ||
53a2db12 | 19 | class WXDLLIMPEXP_CORE wxTopLevelWindowMac : public wxTopLevelWindowBase |
8cf73271 SC |
20 | { |
21 | public: | |
22 | // constructors and such | |
23 | wxTopLevelWindowMac() { Init(); } | |
24 | ||
25 | wxTopLevelWindowMac(wxWindow *parent, | |
26 | wxWindowID id, | |
27 | const wxString& title, | |
28 | const wxPoint& pos = wxDefaultPosition, | |
29 | const wxSize& size = wxDefaultSize, | |
30 | long style = wxDEFAULT_FRAME_STYLE, | |
31 | const wxString& name = wxFrameNameStr) | |
32 | { | |
33 | Init(); | |
34 | ||
35 | (void)Create(parent, id, title, pos, size, style, name); | |
36 | } | |
37 | ||
38 | bool Create(wxWindow *parent, | |
39 | wxWindowID id, | |
40 | const wxString& title, | |
41 | const wxPoint& pos = wxDefaultPosition, | |
42 | const wxSize& size = wxDefaultSize, | |
43 | long style = wxDEFAULT_FRAME_STYLE, | |
44 | const wxString& name = wxFrameNameStr); | |
45 | ||
46 | virtual ~wxTopLevelWindowMac(); | |
47 | ||
4f305456 SC |
48 | virtual wxPoint GetClientAreaOrigin() const; |
49 | ||
3feeb1e1 SC |
50 | // Attracts the users attention to this window if the application is |
51 | // inactive (should be called when a background event occurs) | |
52 | virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO); | |
53 | ||
8cf73271 | 54 | // implement base class pure virtuals |
fb5246be | 55 | virtual void Maximize(bool maximize = true); |
8cf73271 | 56 | virtual bool IsMaximized() const; |
fb5246be | 57 | virtual void Iconize(bool iconize = true); |
8cf73271 | 58 | virtual bool IsIconized() const; |
8cf73271 SC |
59 | virtual void Restore(); |
60 | ||
2fa2b08e SC |
61 | virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL) ; |
62 | virtual bool IsFullScreen() const ; | |
8cf73271 SC |
63 | |
64 | // implementation from now on | |
65 | // -------------------------- | |
66 | ||
fb5246be WS |
67 | virtual void SetTitle( const wxString& title); |
68 | virtual wxString GetTitle() const; | |
7f801f85 | 69 | |
8cf73271 SC |
70 | protected: |
71 | // common part of all ctors | |
72 | void Init(); | |
73 | ||
74 | // is the frame currently iconized? | |
75 | bool m_iconized; | |
76 | ||
77 | // should the frame be maximized when it will be shown? set by Maximize() | |
78 | // when it is called while the frame is hidden | |
79 | bool m_maximizeOnShow; | |
0d6fba37 | 80 | |
2fa2b08e | 81 | void *m_macFullScreenData ; |
8cf73271 | 82 | private : |
4f305456 | 83 | DECLARE_EVENT_TABLE() |
8cf73271 SC |
84 | }; |
85 | ||
8cf73271 | 86 | #endif // _WX_MSW_TOPLEVEL_H_ |