]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/minifram.h
added macros to avoid code repetition when defining comparison operators; use them...
[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 #include "wx/defs.h"
14
15 #if wxUSE_MINIFRAME
16
17 #include "wx/object.h"
18 #include "wx/bitmap.h"
19 #include "wx/frame.h"
20
21 //-----------------------------------------------------------------------------
22 // classes
23 //-----------------------------------------------------------------------------
24
25 class WXDLLIMPEXP_CORE wxMiniFrame;
26
27 //-----------------------------------------------------------------------------
28 // wxMiniFrame
29 //-----------------------------------------------------------------------------
30
31 class WXDLLIMPEXP_CORE wxMiniFrame: public wxFrame
32 {
33 DECLARE_DYNAMIC_CLASS(wxMiniFrame)
34
35 public:
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 = wxCAPTION | wxRESIZE_BORDER,
43 const wxString& name = wxFrameNameStr)
44 {
45 Create(parent, id, title, pos, size, style, name);
46 }
47
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 = wxCAPTION | wxRESIZE_BORDER,
54 const wxString& name = wxFrameNameStr);
55
56 virtual void SetTitle( const wxString &title );
57 // implementation
58
59 bool m_isDragging;
60 int m_oldX,m_oldY;
61 int m_diffX,m_diffY;
62 wxBitmap m_closeButton;
63 };
64
65 #endif
66
67 #endif
68 // __GTKMINIFRAMEH__