]>
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 | ||
10 | #ifndef __GTKMINIFRAMEH__ | |
11 | #define __GTKMINIFRAMEH__ | |
12 | ||
12028905 | 13 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
b2b3ccc5 RR |
14 | #pragma interface |
15 | #endif | |
16 | ||
17 | #include "wx/defs.h" | |
dcf924a3 RR |
18 | |
19 | #if wxUSE_MINIFRAME | |
20 | ||
b2b3ccc5 RR |
21 | #include "wx/object.h" |
22 | #include "wx/frame.h" | |
23 | ||
24 | //----------------------------------------------------------------------------- | |
25 | // classes | |
26 | //----------------------------------------------------------------------------- | |
27 | ||
20123d49 | 28 | class WXDLLIMPEXP_CORE wxMiniFrame; |
b2b3ccc5 RR |
29 | |
30 | //----------------------------------------------------------------------------- | |
31 | // wxMiniFrame | |
32 | //----------------------------------------------------------------------------- | |
33 | ||
20123d49 | 34 | class WXDLLIMPEXP_CORE wxMiniFrame: public wxFrame |
b2b3ccc5 | 35 | { |
2b854a32 | 36 | DECLARE_DYNAMIC_CLASS(wxMiniFrame) |
b2b3ccc5 RR |
37 | |
38 | public: | |
2b854a32 VZ |
39 | wxMiniFrame() {} |
40 | wxMiniFrame(wxWindow *parent, | |
41 | wxWindowID id, | |
42 | const wxString& title, | |
43 | const wxPoint& pos = wxDefaultPosition, | |
44 | const wxSize& size = wxDefaultSize, | |
45 | long style = wxDEFAULT_FRAME_STYLE | wxTINY_CAPTION_HORIZ, | |
46 | const wxString& name = wxFrameNameStr) | |
47 | { | |
48 | Create(parent, id, title, pos, size, style, name); | |
49 | } | |
b2b3ccc5 | 50 | |
2b854a32 VZ |
51 | bool Create(wxWindow *parent, |
52 | wxWindowID id, | |
53 | const wxString& title, | |
54 | const wxPoint& pos = wxDefaultPosition, | |
55 | const wxSize& size = wxDefaultSize, | |
56 | long style = wxDEFAULT_FRAME_STYLE | wxTINY_CAPTION_HORIZ, | |
57 | const wxString& name = wxFrameNameStr); | |
58 | ||
cd86bf1e | 59 | virtual void SetTitle( const wxString &title ); |
32a95f9f RR |
60 | // implementation |
61 | ||
2b854a32 VZ |
62 | bool m_isDragging; |
63 | int m_oldX,m_oldY; | |
64 | int m_diffX,m_diffY; | |
b2b3ccc5 RR |
65 | }; |
66 | ||
dcf924a3 RR |
67 | #endif |
68 | ||
b2b3ccc5 RR |
69 | #endif |
70 | // __GTKMINIFRAMEH__ |