1998-12-04 07:43:56 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2011-03-20 00:14:35 +00:00
|
|
|
// Name: wx/gtk/minifram.h
|
1998-12-04 07:43:56 +00:00
|
|
|
// Purpose: wxMiniFrame class
|
|
|
|
// Author: Robert Roebling
|
|
|
|
// Copyright: (c) Robert Roebling
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-12-04 07:43:56 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2007-10-24 18:07:24 +00:00
|
|
|
#ifndef _WX_GTK_MINIFRAME_H_
|
|
|
|
#define _WX_GTK_MINIFRAME_H_
|
1998-12-04 07:43:56 +00:00
|
|
|
|
2006-08-23 21:07:33 +00:00
|
|
|
#include "wx/bitmap.h"
|
1998-12-04 07:43:56 +00:00
|
|
|
#include "wx/frame.h"
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxMiniFrame
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2005-08-02 22:58:06 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxMiniFrame: public wxFrame
|
1998-12-04 07:43:56 +00:00
|
|
|
{
|
2015-04-23 11:49:01 +00:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxMiniFrame);
|
1998-12-04 07:43:56 +00:00
|
|
|
|
|
|
|
public:
|
1999-02-05 14:26:48 +00:00
|
|
|
wxMiniFrame() {}
|
|
|
|
wxMiniFrame(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString& title,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
2006-10-29 20:15:26 +00:00
|
|
|
long style = wxCAPTION | wxRESIZE_BORDER,
|
1999-02-05 14:26:48 +00:00
|
|
|
const wxString& name = wxFrameNameStr)
|
|
|
|
{
|
|
|
|
Create(parent, id, title, pos, size, style, name);
|
|
|
|
}
|
2012-10-17 16:23:18 +00:00
|
|
|
~wxMiniFrame();
|
1998-12-04 07:43:56 +00:00
|
|
|
|
1999-02-05 14:26:48 +00:00
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString& title,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
2006-10-29 20:15:26 +00:00
|
|
|
long style = wxCAPTION | wxRESIZE_BORDER,
|
1999-02-05 14:26:48 +00:00
|
|
|
const wxString& name = wxFrameNameStr);
|
|
|
|
|
2014-03-30 00:02:23 +00:00
|
|
|
virtual void SetTitle( const wxString &title ) wxOVERRIDE;
|
2007-10-24 18:07:24 +00:00
|
|
|
|
2007-11-22 06:12:56 +00:00
|
|
|
protected:
|
2007-11-22 05:15:13 +00:00
|
|
|
virtual void DoSetSizeHints( int minW, int minH,
|
|
|
|
int maxW, int maxH,
|
2014-03-30 00:02:23 +00:00
|
|
|
int incW, int incH ) wxOVERRIDE;
|
|
|
|
virtual void DoGetClientSize(int* width, int* height) const wxOVERRIDE;
|
2007-10-24 18:07:24 +00:00
|
|
|
|
1999-04-14 14:55:56 +00:00
|
|
|
// implementation
|
2007-10-24 18:07:24 +00:00
|
|
|
public:
|
1999-02-05 14:26:48 +00:00
|
|
|
bool m_isDragging;
|
|
|
|
int m_oldX,m_oldY;
|
|
|
|
int m_diffX,m_diffY;
|
2006-08-23 21:07:33 +00:00
|
|
|
wxBitmap m_closeButton;
|
2007-10-24 18:07:24 +00:00
|
|
|
int m_miniEdge;
|
|
|
|
int m_miniTitle;
|
1998-12-04 07:43:56 +00:00
|
|
|
};
|
|
|
|
|
2007-10-24 18:07:24 +00:00
|
|
|
#endif // _WX_GTK_MINIFRAME_H_
|