1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mac/carbon/toplevel.h
3 // Purpose: wxTopLevelWindowMac is the Mac implementation of wxTLW
4 // Author: Stefan Csomor
8 // Copyright: (c) 2001 Stefan Csomor
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_MSW_TOPLEVEL_H_
13 #define _WX_MSW_TOPLEVEL_H_
15 // ----------------------------------------------------------------------------
16 // wxTopLevelWindowMac
17 // ----------------------------------------------------------------------------
19 class WXDLLIMPEXP_CORE wxTopLevelWindowMac
: public wxTopLevelWindowBase
22 // constructors and such
23 wxTopLevelWindowMac() { Init(); }
25 wxTopLevelWindowMac(wxWindow
*parent
,
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
)
35 (void)Create(parent
, id
, title
, pos
, size
, style
, name
);
38 bool Create(wxWindow
*parent
,
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
);
46 virtual ~wxTopLevelWindowMac();
48 virtual bool Destroy();
50 virtual wxPoint
GetClientAreaOrigin() const;
52 // Attracts the users attention to this window if the application is
53 // inactive (should be called when a background event occurs)
54 virtual void RequestUserAttention(int flags
= wxUSER_ATTENTION_INFO
);
56 // implement base class pure virtuals
57 virtual void Maximize(bool maximize
= true);
58 virtual bool IsMaximized() const;
59 virtual void Iconize(bool iconize
= true);
60 virtual bool IsIconized() const;
61 virtual void Restore();
63 virtual bool ShowFullScreen(bool show
, long style
= wxFULLSCREEN_ALL
) ;
64 virtual bool IsFullScreen() const ;
66 // implementation from now on
67 // --------------------------
69 virtual void SetTitle( const wxString
& title
);
70 virtual wxString
GetTitle() const;
73 // common part of all ctors
76 // is the frame currently iconized?
79 // should the frame be maximized when it will be shown? set by Maximize()
80 // when it is called while the frame is hidden
81 bool m_maximizeOnShow
;
86 #endif // _WX_MSW_TOPLEVEL_H_