1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/toplevel.h
3 // Purpose: wxTopLevelWindow Motif implementation
4 // Author: Mattia Barbon
7 // Copyright: (c) Mattia Barbon
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __MOTIFTOPLEVELH__
12 #define __MOTIFTOPLEVELH__
14 class WXDLLIMPEXP_CORE wxTopLevelWindowMotif
: public wxTopLevelWindowBase
17 wxTopLevelWindowMotif() { Init(); }
18 wxTopLevelWindowMotif( wxWindow
* parent
, wxWindowID id
,
19 const wxString
& title
,
20 const wxPoint
& pos
= wxDefaultPosition
,
21 const wxSize
& size
= wxDefaultSize
,
22 long style
= wxDEFAULT_FRAME_STYLE
,
23 const wxString
& name
= wxFrameNameStr
)
27 Create( parent
, id
, title
, pos
, size
, style
, name
);
30 bool Create( wxWindow
* parent
, wxWindowID id
,
31 const wxString
& title
,
32 const wxPoint
& pos
= wxDefaultPosition
,
33 const wxSize
& size
= wxDefaultSize
,
34 long style
= wxDEFAULT_FRAME_STYLE
,
35 const wxString
& name
= wxFrameNameStr
);
37 virtual ~wxTopLevelWindowMotif();
39 virtual bool ShowFullScreen( bool show
, long style
= wxFULLSCREEN_ALL
);
40 virtual bool IsFullScreen() const;
42 virtual void Maximize(bool maximize
= true);
43 virtual void Restore();
44 virtual void Iconize(bool iconize
= true);
45 virtual bool IsMaximized() const;
46 virtual bool IsIconized() const;
51 virtual wxString
GetTitle() const { return m_title
; }
52 virtual void SetTitle( const wxString
& title
) { m_title
= title
; }
54 virtual bool SetShape( const wxRegion
& region
);
56 WXWidget
GetShellWidget() const;
58 // common part of all constructors
60 // common part of wxDialog/wxFrame destructors
63 virtual void DoGetPosition(int* x
, int* y
) const;
64 virtual void DoSetSizeHints(int minW
, int minH
,
69 // really create the Motif widget for TLW
70 virtual bool XmDoCreateTLW(wxWindow
* parent
,
72 const wxString
& title
,
76 const wxString
& name
) = 0;
82 #endif // __MOTIFTOPLEVELH__