]>
Commit | Line | Data |
---|---|---|
b2b3ccc5 RR |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: minifram.h | |
3 | // Purpose: wxMiniFrame class | |
4 | // Author: Robert Roebling | |
5 | // RCS-ID: $Id$ | |
6 | // Copyright: (c) Robert Roebling | |
65571936 | 7 | // Licence: wxWindows licence |
b2b3ccc5 RR |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
cca410b3 PC |
10 | #ifndef _WX_GTK_MINIFRAME_H_ |
11 | #define _WX_GTK_MINIFRAME_H_ | |
b2b3ccc5 | 12 | |
00e4ffbc | 13 | #include "wx/bitmap.h" |
b2b3ccc5 RR |
14 | #include "wx/frame.h" |
15 | ||
b2b3ccc5 RR |
16 | //----------------------------------------------------------------------------- |
17 | // wxMiniFrame | |
18 | //----------------------------------------------------------------------------- | |
19 | ||
20123d49 | 20 | class WXDLLIMPEXP_CORE wxMiniFrame: public wxFrame |
b2b3ccc5 | 21 | { |
2b854a32 | 22 | DECLARE_DYNAMIC_CLASS(wxMiniFrame) |
b2b3ccc5 RR |
23 | |
24 | public: | |
2b854a32 VZ |
25 | wxMiniFrame() {} |
26 | wxMiniFrame(wxWindow *parent, | |
27 | wxWindowID id, | |
28 | const wxString& title, | |
29 | const wxPoint& pos = wxDefaultPosition, | |
30 | const wxSize& size = wxDefaultSize, | |
9a1498b6 | 31 | long style = wxCAPTION | wxRESIZE_BORDER, |
2b854a32 VZ |
32 | const wxString& name = wxFrameNameStr) |
33 | { | |
34 | Create(parent, id, title, pos, size, style, name); | |
35 | } | |
b2b3ccc5 | 36 | |
2b854a32 VZ |
37 | bool Create(wxWindow *parent, |
38 | wxWindowID id, | |
39 | const wxString& title, | |
40 | const wxPoint& pos = wxDefaultPosition, | |
41 | const wxSize& size = wxDefaultSize, | |
9a1498b6 | 42 | long style = wxCAPTION | wxRESIZE_BORDER, |
2b854a32 VZ |
43 | const wxString& name = wxFrameNameStr); |
44 | ||
cd86bf1e | 45 | virtual void SetTitle( const wxString &title ); |
cca410b3 PC |
46 | |
47 | protected: | |
48 | virtual void DoGetClientSize(int* width, int* height) const; | |
49 | ||
32a95f9f | 50 | // implementation |
cca410b3 | 51 | public: |
2b854a32 VZ |
52 | bool m_isDragging; |
53 | int m_oldX,m_oldY; | |
54 | int m_diffX,m_diffY; | |
00e4ffbc | 55 | wxBitmap m_closeButton; |
cca410b3 PC |
56 | int m_miniEdge; |
57 | int m_miniTitle; | |
b2b3ccc5 RR |
58 | }; |
59 | ||
cca410b3 | 60 | #endif // _WX_GTK_MINIFRAME_H_ |