X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a660d684eda27638bca0384b2058911a31c8e845..e79848acfe012f03286bc8bc4de1a7694ee6c516:/docs/latex/wx/dc.tex diff --git a/docs/latex/wx/dc.tex b/docs/latex/wx/dc.tex index e84b28d054..333d6355b7 100644 --- a/docs/latex/wx/dc.tex +++ b/docs/latex/wx/dc.tex @@ -2,7 +2,7 @@ A wxDC is a {\it device context} onto which graphics and text can be drawn. It is intended to represent a number of output devices in a generic way, -so a canvas has a device context and a printer also has a device context. +so a window can have a device context associated with it, and a printer also has a device context. In this way, the same piece of code may write to a number of different devices, if the device context is used as a parameter. @@ -115,7 +115,7 @@ Clears the device context using the current background brush. \func{void}{CrossHair}{\param{long}{ x}, \param{long}{ y}} Displays a cross hair using the current pen. This is a vertical -and horizontal line the height and width of the canvas, centred +and horizontal line the height and width of the window, centred on the given point. \membersection{wxDC::DestroyClippingRegion}\label{wxdcdestroyclippingregion} @@ -157,10 +157,12 @@ mapping mode. Use this function for converting a height, for example. \func{void}{DrawArc}{\param{long}{ x1}, \param{long}{ y1}, \param{long}{ x2}, \param{long}{ y2}, \param{double}{ xc}, \param{double}{ yc}} -Draws an arc, centred on ({\it xc, yc}), with starting point ({\it x1, y1}) +Draws an arc of a circle, centred on ({\it xc, yc}), with starting point ({\it x1, y1}) and ending at ({\it x2, y2}). The current pen is used for the outline and the current brush for filling the shape. +The arc is drawn in an anticlockwise direction from the start point to the end point. + \membersection{wxDC::DrawEllipse}\label{wxdcdrawellipse} \func{void}{DrawEllipse}{\param{long}{ x}, \param{long}{ y}, \param{long}{ width}, \param{long}{ height}} @@ -176,7 +178,7 @@ filling the shape. Draws an arc of an ellipse. The current pen is used for drawing the arc and the current brush is used for drawing the pie. This function is currently only available for -X canvas and PostScript device contexts. +X window and PostScript device contexts. {\it x} and {\it y} specify the x and y coordinates of the upper-left corner of the rectangle that contains the ellipse. @@ -195,7 +197,7 @@ complete ellipse will be drawn. \func{void}{DrawIcon}{\param{const wxIcon\&}{ icon}, \param{long}{ x}, \param{long}{ y}} Draw an icon on the display (does nothing if the device context is PostScript). -This can be the simplest way of drawing bitmaps on a canvas. +This can be the simplest way of drawing bitmaps on a window. \membersection{wxDC::DrawLine}\label{wxdcdrawline} @@ -349,7 +351,7 @@ Gets the character height of the currently set font. Gets the average character width of the currently set font. -\membersection{wxCanvas::GetClippingBox}\label{wxdcgetclippingbox} +\membersection{wxDC::GetClippingBox}\label{wxdcgetclippingbox} \func{void}{GetClippingBox}{\param{long}{ *x}, \param{long}{ *y}, \param{long}{ *width}, \param{long}{ *height}} @@ -533,7 +535,7 @@ whether text will be drawn with a background colour or not. Sets the clipping region for the DC. The clipping region is a rectangular area to which drawing is restricted. Possible uses for the clipping region are for clipping text -or for speeding up canvas redraws when only a known area of the screen is damaged. +or for speeding up window redraws when only a known area of the screen is damaged. See also \helpref{wxDC::DestroyClippingRegion}{wxdcdestroyclippingregion}. @@ -541,7 +543,7 @@ See also \helpref{wxDC::DestroyClippingRegion}{wxdcdestroyclippingregion}. \func{void}{SetPalette}{\param{const wxPalette\& }{palette}} -If this is a canvas DC or memory DC, assigns the given palette to the window +If this is a window DC or memory DC, assigns the given palette to the window or bitmap associated with the DC. If the argument is wxNullPalette, the current palette is selected out of the device context, and the original palette restored. @@ -576,7 +578,7 @@ See also \helpref{wxFont}{wxfont}. \func{void}{SetLogicalFunction}{\param{int}{ function}} -Sets the current logical function for the canvas. This determines how +Sets the current logical function for the device context. This determines how a source pixel (from a pen or brush colour, or source device context if using \helpref{wxDC::Blit}{wxdcblit}) combines with a destination pixel in the current device context.