]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/qt/dcclient.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxClientDC, wxPaintDC and wxWindowDC classes
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_DCCLIENT_H_
13 #define _WX_DCCLIENT_H_
16 #pragma interface "dcclient.h"
21 //-----------------------------------------------------------------------------
23 //-----------------------------------------------------------------------------
25 class WXDLLEXPORT wxPaintDC
;
27 // Under Windows, wxClientDC, wxPaintDC and wxWindowDC are implemented differently.
28 // On many platforms, however, they will be the same.
30 typedef wxPaintDC wxClientDC
;
31 typedef wxPaintDC wxWindowDC
;
33 //-----------------------------------------------------------------------------
35 //-----------------------------------------------------------------------------
37 class WXDLLEXPORT wxPaintDC
: public wxDC
39 DECLARE_DYNAMIC_CLASS(wxPaintDC
)
44 wxPaintDC( wxWindow
*win
);
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;
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
);
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
);
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
);
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
);
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);
81 virtual void Clear(void);
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
);
93 virtual void SetClippingRegion( long x
, long y
, long width
, long height
);
94 virtual void DestroyClippingRegion(void);
96 virtual void DrawOpenSpline( wxList
*points
);