]> git.saurik.com Git - wxWidgets.git/blame - include/wx/qt/dcclient.h
Added fixes for Unicode compilation.
[wxWidgets.git] / include / wx / qt / dcclient.h
CommitLineData
7c78e7c7
RR
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcclient.h
01b2eeec
KB
3// Purpose: wxClientDC, wxPaintDC and wxWindowDC classes
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
7c78e7c7
RR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
01b2eeec
KB
12#ifndef _WX_DCCLIENT_H_
13#define _WX_DCCLIENT_H_
7c78e7c7
RR
14
15#ifdef __GNUG__
01b2eeec 16#pragma interface "dcclient.h"
7c78e7c7
RR
17#endif
18
19#include "wx/dc.h"
7c78e7c7
RR
20
21//-----------------------------------------------------------------------------
22// classes
23//-----------------------------------------------------------------------------
24
01b2eeec
KB
25class WXDLLEXPORT wxPaintDC;
26
27// Under Windows, wxClientDC, wxPaintDC and wxWindowDC are implemented differently.
28// On many platforms, however, they will be the same.
29
7c78e7c7
RR
30typedef wxPaintDC wxClientDC;
31typedef wxPaintDC wxWindowDC;
32
33//-----------------------------------------------------------------------------
34// wxPaintDC
35//-----------------------------------------------------------------------------
36
01b2eeec 37class WXDLLEXPORT wxPaintDC: public wxDC
7c78e7c7
RR
38{
39 DECLARE_DYNAMIC_CLASS(wxPaintDC)
40
41 public:
42
43 wxPaintDC(void);
44 wxPaintDC( wxWindow *win );
45
46 ~wxPaintDC(void);
47
48 virtual void FloodFill( long x1, long y1, wxColour *col, int style=wxFLOOD_SURFACE );
49 virtual bool GetPixel( long x1, long y1, wxColour *col ) const;
50
51 virtual void DrawLine( long x1, long y1, long x2, long y2 );
52 virtual void CrossHair( long x, long y );
53 virtual void DrawArc( long x1, long y1, long x2, long y2, double xc, double yc );
54 virtual void DrawEllipticArc( long x, long y, long width, long height, double sa, double ea );
55 virtual void DrawPoint( long x, long y );
56
57 virtual void DrawLines( int n, wxPoint points[], long xoffset = 0, long yoffset = 0 );
58 virtual void DrawLines( wxList *points, long xoffset = 0, long yoffset = 0 );
59 virtual void DrawPolygon( int n, wxPoint points[], long xoffset = 0, long yoffset = 0,
60 int fillStyle=wxODDEVEN_RULE );
61 virtual void DrawPolygon( wxList *lines, long xoffset = 0, long yoffset = 0,
62 int fillStyle=wxODDEVEN_RULE );
63
64 virtual void DrawRectangle( long x, long y, long width, long height );
65 virtual void DrawRoundedRectangle( long x, long y, long width, long height, double radius = 20.0 );
66 virtual void DrawEllipse( long x, long y, long width, long height );
67
68 virtual bool CanDrawBitmap(void) const;
69 virtual void DrawIcon( const wxIcon &icon, long x, long y, bool useMask=FALSE );
70 virtual bool Blit( long xdest, long ydest, long width, long height,
71 wxDC *source, long xsrc, long ysrc, int logical_func = wxCOPY, bool useMask=FALSE );
72
73 virtual void DrawText( const wxString &text, long x, long y, bool use16 = FALSE );
74 virtual bool CanGetTextExtent(void) const;
75 virtual void GetTextExtent( const wxString &string, long *width, long *height,
76 long *descent = NULL, long *externalLeading = NULL,
77 wxFont *theFont = NULL, bool use16 = FALSE );
78 virtual long GetCharWidth(void);
79 virtual long GetCharHeight(void);
80
81 virtual void Clear(void);
82
83 virtual void SetFont( const wxFont &font );
84 virtual void SetPen( const wxPen &pen );
85 virtual void SetBrush( const wxBrush &brush );
86 virtual void SetBackground( const wxBrush &brush );
87 virtual void SetLogicalFunction( int function );
88 virtual void SetTextForeground( const wxColour &col );
89 virtual void SetTextBackground( const wxColour &col );
90 virtual void SetBackgroundMode( int mode );
91 virtual void SetPalette( const wxPalette& palette );
92
93 virtual void SetClippingRegion( long x, long y, long width, long height );
94 virtual void DestroyClippingRegion(void);
95
96 virtual void DrawOpenSpline( wxList *points );
7c78e7c7
RR
97};
98
01b2eeec
KB
99#endif
100 // _WX_DCCLIENT_H_