]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/minifram.h
build fix for wxGTK/Univ build (#9706)
[wxWidgets.git] / include / wx / gtk1 / minifram.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/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 #include "wx/defs.h"
14
15 #if wxUSE_MINIFRAME
16
17 #include "wx/object.h"
18 #include "wx/frame.h"
19
20 //-----------------------------------------------------------------------------
21 // classes
22 //-----------------------------------------------------------------------------
23
24 class WXDLLIMPEXP_FWD_CORE wxMiniFrame;
25
26 //-----------------------------------------------------------------------------
27 // wxMiniFrame
28 //-----------------------------------------------------------------------------
29
30 class WXDLLIMPEXP_CORE wxMiniFrame: public wxFrame
31 {
32 DECLARE_DYNAMIC_CLASS(wxMiniFrame)
33
34 public:
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 }
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_STYLE | wxTINY_CAPTION_HORIZ,
53 const wxString& name = wxFrameNameStr);
54
55 virtual void SetTitle( const wxString &title );
56 // implementation
57
58 bool m_isDragging;
59 int m_oldX,m_oldY;
60 int m_diffX,m_diffY;
61 };
62
63 #endif
64
65 #endif
66 // __GTKMINIFRAMEH__