1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/toplevel.h
3 // Purpose: wxTopLevelWindowMac is the Mac implementation of wxTLW
4 // Author: Stefan Csomor
7 // Copyright: (c) 2001 Stefan Csomor
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_MSW_TOPLEVEL_H_
12 #define _WX_MSW_TOPLEVEL_H_
14 // ----------------------------------------------------------------------------
15 // wxTopLevelWindowMac
16 // ----------------------------------------------------------------------------
18 class WXDLLIMPEXP_CORE wxTopLevelWindowMac
: public wxTopLevelWindowBase
21 // constructors and such
22 wxTopLevelWindowMac() { Init(); }
24 wxTopLevelWindowMac(wxWindow
*parent
,
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
)
34 (void)Create(parent
, id
, title
, pos
, size
, style
, name
);
37 virtual ~wxTopLevelWindowMac();
39 bool Create(wxWindow
*parent
,
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
);
47 bool Create(wxWindow
*parent
, WXWindow nativeWindow
);
49 virtual bool Destroy();
51 virtual wxPoint
GetClientAreaOrigin() const;
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
);
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();
64 virtual bool IsActive();
66 virtual void ShowWithoutActivating();
67 virtual bool ShowFullScreen(bool show
, long style
= wxFULLSCREEN_ALL
) ;
68 virtual bool IsFullScreen() const ;
70 // implementation from now on
71 // --------------------------
73 virtual void SetTitle( const wxString
& title
);
74 virtual wxString
GetTitle() const;
76 virtual void SetLabel(const wxString
& label
) { SetTitle( label
); }
77 virtual wxString
GetLabel() const { return GetTitle(); }
79 virtual void OSXSetModified(bool modified
);
80 virtual bool OSXIsModified() const;
82 virtual void SetRepresentedFilename(const wxString
& filename
);
85 // common part of all ctors
88 // is the frame currently iconized?
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
;
98 #endif // _WX_MSW_TOPLEVEL_H_