]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/minifram.h
fixed refresh problem after adding some items and calling Ensurevisible()
[wxWidgets.git] / include / wx / gtk / 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
19 #if wxUSE_MINIFRAME
20
21 #include "wx/object.h"
22 #include "wx/frame.h"
23
24 //-----------------------------------------------------------------------------
25 // classes
26 //-----------------------------------------------------------------------------
27
28 class wxMiniFrame;
29
30 //-----------------------------------------------------------------------------
31 // wxMiniFrame
32 //-----------------------------------------------------------------------------
33
34 class wxMiniFrame: public wxFrame
35 {
36 DECLARE_DYNAMIC_CLASS(wxMiniFrame)
37
38 public:
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 }
50
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
59 // implementation
60
61 bool m_isDragging;
62 int m_oldX,m_oldY;
63 int m_diffX,m_diffY;
64 };
65
66 #endif
67
68 #endif
69 // __GTKMINIFRAMEH__