]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/minifram.h
Typo in docs [ 1693034 ] 2.8.3: wrong docs for wxCHECK_W32API_VERSION
[wxWidgets.git] / include / wx / gtk / minifram.h
CommitLineData
b2b3ccc5
RR
1/////////////////////////////////////////////////////////////////////////////
2// Name: minifram.h
3// Purpose: wxMiniFrame class
4// Author: Robert Roebling
5// RCS-ID: $Id$
6// Copyright: (c) Robert Roebling
65571936 7// Licence: wxWindows licence
b2b3ccc5
RR
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef __GTKMINIFRAMEH__
11#define __GTKMINIFRAMEH__
12
b2b3ccc5 13#include "wx/defs.h"
dcf924a3
RR
14
15#if wxUSE_MINIFRAME
16
b2b3ccc5 17#include "wx/object.h"
00e4ffbc 18#include "wx/bitmap.h"
b2b3ccc5
RR
19#include "wx/frame.h"
20
21//-----------------------------------------------------------------------------
22// classes
23//-----------------------------------------------------------------------------
24
20123d49 25class WXDLLIMPEXP_CORE wxMiniFrame;
b2b3ccc5
RR
26
27//-----------------------------------------------------------------------------
28// wxMiniFrame
29//-----------------------------------------------------------------------------
30
20123d49 31class WXDLLIMPEXP_CORE wxMiniFrame: public wxFrame
b2b3ccc5 32{
2b854a32 33 DECLARE_DYNAMIC_CLASS(wxMiniFrame)
b2b3ccc5
RR
34
35public:
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,
9a1498b6 42 long style = wxCAPTION | wxRESIZE_BORDER,
2b854a32
VZ
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,
9a1498b6 53 long style = wxCAPTION | wxRESIZE_BORDER,
2b854a32
VZ
54 const wxString& name = wxFrameNameStr);
55
cd86bf1e 56 virtual void SetTitle( const wxString &title );
32a95f9f
RR
57 // implementation
58
2b854a32
VZ
59 bool m_isDragging;
60 int m_oldX,m_oldY;
61 int m_diffX,m_diffY;
00e4ffbc 62 wxBitmap m_closeButton;
b2b3ccc5
RR
63};
64
dcf924a3
RR
65#endif
66
b2b3ccc5
RR
67#endif
68 // __GTKMINIFRAMEH__