]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/colordlg.h
support retina display
[wxWidgets.git] / include / wx / gtk1 / colordlg.h
CommitLineData
274ad000 1/////////////////////////////////////////////////////////////////////////////
8ef94bfc 2// Name: wx/gtk1/colordlg.h
274ad000
VS
3// Purpose: wxColourDialog
4// Author: Vaclav Slavik
5// Modified by:
6// Created: 2004/06/04
7// RCS-ID: $Id$
8// Copyright: (c) Vaclav Slavik, 2004
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef __COLORDLG_H__
13#define __COLORDLG_H__
14
b73e73f9 15#include "wx/defs.h"
274ad000
VS
16#include "wx/gdicmn.h"
17#include "wx/dialog.h"
274ad000
VS
18
19
53a2db12 20class WXDLLIMPEXP_CORE wxColourDialog : public wxDialog
274ad000
VS
21{
22public:
23 wxColourDialog() {}
24 wxColourDialog(wxWindow *parent,
d3b9f782 25 wxColourData *data = NULL);
274ad000
VS
26 virtual ~wxColourDialog() {}
27
d3b9f782 28 bool Create(wxWindow *parent, wxColourData *data = NULL);
274ad000
VS
29
30 wxColourData &GetColourData() { return m_data; }
31
32 virtual int ShowModal();
33
34protected:
35 // implement some base class methods to do nothing to avoid asserts and
36 // GTK warnings, since this is not a real wxDialog.
3db7220e
VZ
37 virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
38 int WXUNUSED(width), int WXUNUSED(height),
39 int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
40 virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y),
41 int WXUNUSED(width), int WXUNUSED(height)) {}
274ad000
VS
42
43 // copy data between the dialog and m_colourData:
44 void ColourDataToDialog();
45 void DialogToColourData();
8ef94bfc 46
274ad000
VS
47 wxColourData m_data;
48
49 DECLARE_DYNAMIC_CLASS(wxColourDialog)
50};
51
52#endif