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