]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/minifram.h
made wxListbook events more consistent with wxNotebook ones (patch 1001271)
[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
12028905 13#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
b2b3ccc5
RR
14#pragma interface
15#endif
16
17#include "wx/defs.h"
dcf924a3
RR
18
19#if wxUSE_MINIFRAME
20
b2b3ccc5
RR
21#include "wx/object.h"
22#include "wx/frame.h"
23
24//-----------------------------------------------------------------------------
25// classes
26//-----------------------------------------------------------------------------
27
28class wxMiniFrame;
29
30//-----------------------------------------------------------------------------
31// wxMiniFrame
32//-----------------------------------------------------------------------------
33
2b854a32 34class wxMiniFrame: public wxFrame
b2b3ccc5 35{
2b854a32 36 DECLARE_DYNAMIC_CLASS(wxMiniFrame)
b2b3ccc5
RR
37
38public:
2b854a32
VZ
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 }
b2b3ccc5 50
2b854a32
VZ
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
32a95f9f
RR
59 // implementation
60
2b854a32
VZ
61 bool m_isDragging;
62 int m_oldX,m_oldY;
63 int m_diffX,m_diffY;
b2b3ccc5
RR
64};
65
dcf924a3
RR
66#endif
67
b2b3ccc5
RR
68#endif
69 // __GTKMINIFRAMEH__