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 class WXDLLIMPEXP_CORE wxTopLevelWindowMotif
: public wxTopLevelWindowBase
18 wxTopLevelWindowMotif() { Init(); }
19 wxTopLevelWindowMotif( wxWindow
* parent
, wxWindowID id
,
20 const wxString
& title
,
21 const wxPoint
& pos
= wxDefaultPosition
,
22 const wxSize
& size
= wxDefaultSize
,
23 long style
= wxDEFAULT_FRAME_STYLE
,
24 const wxString
& name
= wxFrameNameStr
)
28 Create( parent
, id
, title
, pos
, size
, style
, name
);
31 bool Create( wxWindow
* parent
, wxWindowID id
,
32 const wxString
& title
,
33 const wxPoint
& pos
= wxDefaultPosition
,
34 const wxSize
& size
= wxDefaultSize
,
35 long style
= wxDEFAULT_FRAME_STYLE
,
36 const wxString
& name
= wxFrameNameStr
);
38 virtual ~wxTopLevelWindowMotif();
40 virtual bool ShowFullScreen( bool show
, long style
= wxFULLSCREEN_ALL
);
41 virtual bool IsFullScreen() const;
43 virtual void Maximize(bool maximize
= true);
44 virtual void Restore();
45 virtual void Iconize(bool iconize
= true);
46 virtual bool IsMaximized() const;
47 virtual bool IsIconized() const;
52 virtual wxString
GetTitle() const { return m_title
; }
53 virtual void SetTitle( const wxString
& title
) { m_title
= title
; }
55 virtual void DoSetSizeHints( int minW
, int minH
,
56 int maxW
= -1, int maxH
= -1,
57 int incW
= -1, int incH
= -1 );
59 virtual bool SetShape( const wxRegion
& region
);
61 WXWidget
GetShellWidget() const;
63 // common part of all constructors
65 // common part of wxDialog/wxFrame destructors
68 virtual void DoGetPosition(int* x
, int* y
) const;
71 // really create the Motif widget for TLW
72 virtual bool XmDoCreateTLW(wxWindow
* parent
,
74 const wxString
& title
,
78 const wxString
& name
) = 0;
84 #endif // __MOTIFTOPLEVELH__