]>
Commit | Line | Data |
---|---|---|
b2b3ccc5 | 1 | ///////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: wx/gtk/minifram.h |
b2b3ccc5 RR |
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 | } | |
8ab75332 | 36 | ~wxMiniFrame(); |
b2b3ccc5 | 37 | |
2b854a32 VZ |
38 | bool Create(wxWindow *parent, |
39 | wxWindowID id, | |
40 | const wxString& title, | |
41 | const wxPoint& pos = wxDefaultPosition, | |
42 | const wxSize& size = wxDefaultSize, | |
9a1498b6 | 43 | long style = wxCAPTION | wxRESIZE_BORDER, |
2b854a32 VZ |
44 | const wxString& name = wxFrameNameStr); |
45 | ||
cd86bf1e | 46 | virtual void SetTitle( const wxString &title ); |
cca410b3 | 47 | |
b2e10dac | 48 | protected: |
3f4049ff PC |
49 | virtual void DoSetSizeHints( int minW, int minH, |
50 | int maxW, int maxH, | |
51 | int incW, int incH ); | |
cca410b3 PC |
52 | virtual void DoGetClientSize(int* width, int* height) const; |
53 | ||
32a95f9f | 54 | // implementation |
cca410b3 | 55 | public: |
2b854a32 VZ |
56 | bool m_isDragging; |
57 | int m_oldX,m_oldY; | |
58 | int m_diffX,m_diffY; | |
00e4ffbc | 59 | wxBitmap m_closeButton; |
cca410b3 PC |
60 | int m_miniEdge; |
61 | int m_miniTitle; | |
b2b3ccc5 RR |
62 | }; |
63 | ||
cca410b3 | 64 | #endif // _WX_GTK_MINIFRAME_H_ |