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