]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/minifram.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / gtk1 / minifram.h
CommitLineData
b2b3ccc5 1/////////////////////////////////////////////////////////////////////////////
8ef94bfc 2// Name: wx/gtk1/minifram.h
b2b3ccc5
RR
3// Purpose: wxMiniFrame class
4// Author: Robert Roebling
b2b3ccc5 5// Copyright: (c) Robert Roebling
65571936 6// Licence: wxWindows licence
b2b3ccc5
RR
7/////////////////////////////////////////////////////////////////////////////
8
9#ifndef __GTKMINIFRAMEH__
10#define __GTKMINIFRAMEH__
11
b2b3ccc5 12#include "wx/defs.h"
dcf924a3
RR
13
14#if wxUSE_MINIFRAME
15
b2b3ccc5
RR
16#include "wx/object.h"
17#include "wx/frame.h"
18
19//-----------------------------------------------------------------------------
20// classes
21//-----------------------------------------------------------------------------
22
b5dbe15d 23class WXDLLIMPEXP_FWD_CORE wxMiniFrame;
b2b3ccc5
RR
24
25//-----------------------------------------------------------------------------
26// wxMiniFrame
27//-----------------------------------------------------------------------------
28
20123d49 29class WXDLLIMPEXP_CORE wxMiniFrame: public wxFrame
b2b3ccc5 30{
2b854a32 31 DECLARE_DYNAMIC_CLASS(wxMiniFrame)
b2b3ccc5
RR
32
33public:
2b854a32
VZ
34 wxMiniFrame() {}
35 wxMiniFrame(wxWindow *parent,
36 wxWindowID id,
37 const wxString& title,
38 const wxPoint& pos = wxDefaultPosition,
39 const wxSize& size = wxDefaultSize,
7282b067 40 long style = wxDEFAULT_FRAME_STYLE | wxTINY_CAPTION,
2b854a32
VZ
41 const wxString& name = wxFrameNameStr)
42 {
43 Create(parent, id, title, pos, size, style, name);
44 }
b2b3ccc5 45
2b854a32
VZ
46 bool Create(wxWindow *parent,
47 wxWindowID id,
48 const wxString& title,
49 const wxPoint& pos = wxDefaultPosition,
50 const wxSize& size = wxDefaultSize,
7282b067 51 long style = wxDEFAULT_FRAME_STYLE | wxTINY_CAPTION,
2b854a32
VZ
52 const wxString& name = wxFrameNameStr);
53
cd86bf1e 54 virtual void SetTitle( const wxString &title );
32a95f9f 55 // implementation
8ef94bfc 56
2b854a32
VZ
57 bool m_isDragging;
58 int m_oldX,m_oldY;
59 int m_diffX,m_diffY;
b2b3ccc5
RR
60};
61
dcf924a3
RR
62#endif
63
b2b3ccc5
RR
64#endif
65 // __GTKMINIFRAMEH__