]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/dcclient.h
GTK+ doesn't like slider with min=max values
[wxWidgets.git] / include / wx / mac / carbon / dcclient.h
CommitLineData
8cf73271
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcclient.h
3// Purpose: wxClientDC, wxPaintDC and wxWindowDC classes
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
7// RCS-ID: $Id$
8// Copyright: (c) Stefan Csomor
65571936 9// Licence: wxWindows licence
8cf73271
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_DCCLIENT_H_
13#define _WX_DCCLIENT_H_
14
8cf73271
SC
15#include "wx/dc.h"
16
17//-----------------------------------------------------------------------------
18// classes
19//-----------------------------------------------------------------------------
20
b5dbe15d
VS
21class WXDLLIMPEXP_FWD_CORE wxPaintDC;
22class WXDLLIMPEXP_FWD_CORE wxWindow;
8cf73271
SC
23
24class WXDLLEXPORT wxWindowDC: public wxDC
25{
26 DECLARE_DYNAMIC_CLASS(wxWindowDC)
27
28 public:
29 wxWindowDC(void);
30
31 // Create a DC corresponding to a canvas
32 wxWindowDC(wxWindow *win);
33
d3c7fc99 34 virtual ~wxWindowDC(void);
53bc3863 35 wxWindow *GetWindow() const { return m_window; }
8cf73271 36 protected :
6f02a879 37 virtual void DoGetSize( int *width, int *height ) const;
b2d123f1 38 virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const;
8cf73271 39 wxWindow *m_window;
09b632b2 40
6ff41b16
SC
41 bool m_release;
42 int m_width;
43 int m_height;
09b632b2 44
8cf73271
SC
45};
46
47
48class WXDLLEXPORT wxClientDC: public wxWindowDC
49{
50 DECLARE_DYNAMIC_CLASS(wxClientDC)
51
52 public:
53 wxClientDC(void);
54
55 // Create a DC corresponding to a canvas
56 wxClientDC(wxWindow *win);
57
d3c7fc99 58 virtual ~wxClientDC(void);
6f02a879
VZ
59
60protected:
8cf73271
SC
61};
62
63class WXDLLEXPORT wxPaintDC: public wxWindowDC
64{
65 DECLARE_DYNAMIC_CLASS(wxPaintDC)
66
67 public:
68 wxPaintDC(void);
69
70 // Create a DC corresponding to a canvas
71 wxPaintDC(wxWindow *win);
72
d3c7fc99 73 virtual ~wxPaintDC(void);
6f02a879
VZ
74
75protected:
8cf73271
SC
76};
77
78#endif
79 // _WX_DCCLIENT_H_