]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk1/minifram.h
create greyed image for wxBitmapButton in MSW automatically, as in wxGTK (replaces...
[wxWidgets.git] / include / wx / gtk1 / minifram.h
... / ...
CommitLineData
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
24class WXDLLIMPEXP_FWD_CORE wxMiniFrame;
25
26//-----------------------------------------------------------------------------
27// wxMiniFrame
28//-----------------------------------------------------------------------------
29
30class WXDLLIMPEXP_CORE wxMiniFrame: public wxFrame
31{
32 DECLARE_DYNAMIC_CLASS(wxMiniFrame)
33
34public:
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__