]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/toplevel.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/toplevel.h
3 // Purpose: wxTopLevelWindow Motif implementation
4 // Author: Mattia Barbon
8 // Copyright: (c) Mattia Barbon
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __MOTIFTOPLEVELH__
13 #define __MOTIFTOPLEVELH__
15 #if defined(__GNUG__) && !defined(__APPLE__)
16 #pragma interface "toplevel.h"
19 class wxTopLevelWindowMotif
: public wxTopLevelWindowBase
22 wxTopLevelWindowMotif() { Init(); }
23 wxTopLevelWindowMotif( wxWindow
* parent
, wxWindowID id
,
24 const wxString
& title
,
25 const wxPoint
& pos
= wxDefaultPosition
,
26 const wxSize
& size
= wxDefaultSize
,
27 long style
= wxDEFAULT_FRAME_STYLE
,
28 const wxString
& name
= wxFrameNameStr
)
32 Create( parent
, id
, title
, pos
, size
, style
, name
);
35 bool Create( wxWindow
* parent
, wxWindowID id
,
36 const wxString
& title
,
37 const wxPoint
& pos
= wxDefaultPosition
,
38 const wxSize
& size
= wxDefaultSize
,
39 long style
= wxDEFAULT_FRAME_STYLE
,
40 const wxString
& name
= wxFrameNameStr
);
42 virtual ~wxTopLevelWindowMotif();
44 virtual bool ShowFullScreen( bool show
, long style
= wxFULLSCREEN_ALL
);
45 virtual bool IsFullScreen() const;
47 virtual void Maximize(bool maximize
= TRUE
);
48 virtual void Restore();
49 virtual void Iconize(bool iconize
= TRUE
);
50 virtual bool IsMaximized() const;
51 virtual bool IsIconized() const;
56 virtual wxString
GetTitle() const { return m_title
; }
57 virtual void SetTitle( const wxString
& title
) { m_title
= title
; }
59 WXWidget
GetShellWidget() const;
61 // common part of all constructors
65 // both these functions should be pure virtual
66 virtual bool DoCreate( wxWindow
* parent
, wxWindowID id
,
67 const wxString
& title
,
71 const wxString
& name
)
76 virtual void DoDestroy() { }
81 #endif // __MOTIFTOPLEVELH__