]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/minifram.h
A bit more DnD and clipbrd updates
[wxWidgets.git] / include / wx / gtk1 / minifram.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: minifram.h
3 // Purpose: wxMiniFrame class
4 // Author: Robert Roebling
5 // RCS-ID: $Id$
6 // Copyright: (c) Robert Roebling
7 // Licence: wxWindows licence
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
31 class wxMiniFrame: public wxFrame
32 {
33 DECLARE_DYNAMIC_CLASS(wxMiniFrame)
34
35 public:
36 inline wxMiniFrame(void) {}
37 inline 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|wxTINY_CAPTION_HORIZ,
43 const wxString& name = wxFrameNameStr)
44 {
45 Create(parent, id, title, pos, size, style, name);
46 }
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|wxTINY_CAPTION_HORIZ,
53 const wxString& name = wxFrameNameStr);
54
55 // implementation
56
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()
66 };
67
68 #endif
69 // __GTKMINIFRAMEH__