]>
Commit | Line | Data |
---|---|---|
0de6dfa7 MB |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/motif/toplevel.h | |
3 | // Purpose: wxTopLevelWindow Motif implementation | |
4 | // Author: Mattia Barbon | |
5 | // Modified by: | |
6 | // Created: 12/10/2002 | |
0de6dfa7 | 7 | // Copyright: (c) Mattia Barbon |
65571936 | 8 | // Licence: wxWindows licence |
0de6dfa7 MB |
9 | ///////////////////////////////////////////////////////////////////////////// |
10 | ||
11 | #ifndef __MOTIFTOPLEVELH__ | |
12 | #define __MOTIFTOPLEVELH__ | |
13 | ||
94c7b088 | 14 | class WXDLLIMPEXP_CORE wxTopLevelWindowMotif : public wxTopLevelWindowBase |
0de6dfa7 MB |
15 | { |
16 | public: | |
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 ) | |
24 | { | |
25 | Init(); | |
26 | ||
27 | Create( parent, id, title, pos, size, style, name ); | |
28 | } | |
29 | ||
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 ); | |
36 | ||
37 | virtual ~wxTopLevelWindowMotif(); | |
38 | ||
39 | virtual bool ShowFullScreen( bool show, long style = wxFULLSCREEN_ALL ); | |
40 | virtual bool IsFullScreen() const; | |
41 | ||
96be256b | 42 | virtual void Maximize(bool maximize = true); |
0de6dfa7 | 43 | virtual void Restore(); |
96be256b | 44 | virtual void Iconize(bool iconize = true); |
0de6dfa7 MB |
45 | virtual bool IsMaximized() const; |
46 | virtual bool IsIconized() const; | |
47 | ||
48 | virtual void Raise(); | |
49 | virtual void Lower(); | |
50 | ||
51 | virtual wxString GetTitle() const { return m_title; } | |
52 | virtual void SetTitle( const wxString& title ) { m_title = title; } | |
53 | ||
f7f78039 MB |
54 | virtual bool SetShape( const wxRegion& region ); |
55 | ||
0de6dfa7 MB |
56 | WXWidget GetShellWidget() const; |
57 | protected: | |
58 | // common part of all constructors | |
59 | void Init(); | |
2187eef5 MB |
60 | // common part of wxDialog/wxFrame destructors |
61 | void PreDestroy(); | |
0de6dfa7 | 62 | |
dad6a47e | 63 | virtual void DoGetPosition(int* x, int* y) const; |
b2e10dac PC |
64 | virtual void DoSetSizeHints(int minW, int minH, |
65 | int maxW, int maxH, | |
66 | int incW, int incH); | |
f58585c0 | 67 | |
0de6dfa7 | 68 | private: |
f58585c0 | 69 | // really create the Motif widget for TLW |
02bcd285 | 70 | virtual bool XmDoCreateTLW(wxWindow* parent, |
f58585c0 VZ |
71 | wxWindowID id, |
72 | const wxString& title, | |
73 | const wxPoint& pos, | |
74 | const wxSize& size, | |
75 | long style, | |
76 | const wxString& name) = 0; | |
0de6dfa7 | 77 | |
0de6dfa7 MB |
78 | |
79 | wxString m_title; | |
80 | }; | |
81 | ||
82 | #endif // __MOTIFTOPLEVELH__ |