]>
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 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Mattia Barbon | |
65571936 | 9 | // Licence: wxWindows licence |
0de6dfa7 MB |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef __MOTIFTOPLEVELH__ | |
13 | #define __MOTIFTOPLEVELH__ | |
14 | ||
12028905 | 15 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
0de6dfa7 MB |
16 | #pragma interface "toplevel.h" |
17 | #endif | |
18 | ||
94c7b088 | 19 | class WXDLLIMPEXP_CORE wxTopLevelWindowMotif : public wxTopLevelWindowBase |
0de6dfa7 MB |
20 | { |
21 | public: | |
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 ) | |
29 | { | |
30 | Init(); | |
31 | ||
32 | Create( parent, id, title, pos, size, style, name ); | |
33 | } | |
34 | ||
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 ); | |
41 | ||
42 | virtual ~wxTopLevelWindowMotif(); | |
43 | ||
44 | virtual bool ShowFullScreen( bool show, long style = wxFULLSCREEN_ALL ); | |
45 | virtual bool IsFullScreen() const; | |
46 | ||
96be256b | 47 | virtual void Maximize(bool maximize = true); |
0de6dfa7 | 48 | virtual void Restore(); |
96be256b | 49 | virtual void Iconize(bool iconize = true); |
0de6dfa7 MB |
50 | virtual bool IsMaximized() const; |
51 | virtual bool IsIconized() const; | |
52 | ||
53 | virtual void Raise(); | |
54 | virtual void Lower(); | |
55 | ||
56 | virtual wxString GetTitle() const { return m_title; } | |
57 | virtual void SetTitle( const wxString& title ) { m_title = title; } | |
58 | ||
7c9b17c1 | 59 | virtual void DoSetSizeHints( int minW, int minH, |
66f8b9ac MB |
60 | int maxW = -1, int maxH = -1, |
61 | int incW = -1, int incH = -1 ); | |
62 | ||
f7f78039 MB |
63 | virtual bool SetShape( const wxRegion& region ); |
64 | ||
0de6dfa7 MB |
65 | WXWidget GetShellWidget() const; |
66 | protected: | |
67 | // common part of all constructors | |
68 | void Init(); | |
2187eef5 MB |
69 | // common part of wxDialog/wxFrame destructors |
70 | void PreDestroy(); | |
0de6dfa7 | 71 | |
dad6a47e | 72 | virtual void DoGetPosition(int* x, int* y) const; |
f58585c0 | 73 | |
0de6dfa7 | 74 | private: |
f58585c0 VZ |
75 | // really create the Motif widget for TLW |
76 | virtual bool XmDoCreateTLW(wxWindow* parent, | |
77 | wxWindowID id, | |
78 | const wxString& title, | |
79 | const wxPoint& pos, | |
80 | const wxSize& size, | |
81 | long style, | |
82 | const wxString& name) = 0; | |
0de6dfa7 | 83 | |
0de6dfa7 MB |
84 | |
85 | wxString m_title; | |
86 | }; | |
87 | ||
88 | #endif // __MOTIFTOPLEVELH__ |