]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/toplevel.h
Allow custom wxDataViewCtrl renderers to easily use attributes.
[wxWidgets.git] / include / wx / osx / toplevel.h
CommitLineData
6762286d
SC
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/mac/carbon/toplevel.h
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
9// Licence: wxWindows licence
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_MSW_TOPLEVEL_H_
13#define _WX_MSW_TOPLEVEL_H_
14
15// ----------------------------------------------------------------------------
16// wxTopLevelWindowMac
17// ----------------------------------------------------------------------------
18
19class WXDLLIMPEXP_CORE wxTopLevelWindowMac : public wxTopLevelWindowBase
20{
21public:
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();
03647350 47
6762286d
SC
48 virtual bool Destroy();
49
50 virtual wxPoint GetClientAreaOrigin() const;
51
03647350 52 virtual bool SetShape(const wxRegion& region)
8e88e984
SC
53 { return DoSetShape(region); }
54
6762286d
SC
55 // Attracts the users attention to this window if the application is
56 // inactive (should be called when a background event occurs)
57 virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO);
58
59 // implement base class pure virtuals
60 virtual void Maximize(bool maximize = true);
61 virtual bool IsMaximized() const;
62 virtual void Iconize(bool iconize = true);
63 virtual bool IsIconized() const;
64 virtual void Restore();
dbc7ceb9
KO
65
66 virtual bool IsActive();
6762286d 67
dbc7ceb9 68 virtual void ShowWithoutActivating();
6762286d
SC
69 virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL) ;
70 virtual bool IsFullScreen() const ;
71
72 // implementation from now on
73 // --------------------------
74
75 virtual void SetTitle( const wxString& title);
76 virtual wxString GetTitle() const;
03647350 77
6762286d
SC
78protected:
79 // common part of all ctors
80 void Init();
81
82 // is the frame currently iconized?
83 bool m_iconized;
84
85 // should the frame be maximized when it will be shown? set by Maximize()
86 // when it is called while the frame is hidden
87 bool m_maximizeOnShow;
88private :
89 DECLARE_EVENT_TABLE()
90};
91
92#endif // _WX_MSW_TOPLEVEL_H_