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