added another overloaded DrawCircle() version for completeness and documented it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -259,13 +259,33 @@ of the bitmap (all bits set to 1), and the current text background colour to dra
|
|||||||
|
|
||||||
Draws a check mark inside the given rectangle.
|
Draws a check mark inside the given rectangle.
|
||||||
|
|
||||||
|
\membersection{wxDC::DrawCircle}\label{wxdcdrawcircle}
|
||||||
|
|
||||||
|
\func{void}{DrawCircle}{\param{wxCoord}{ x}, \param{wxCoord}{ y}, \param{wxCoord}{ radius}}
|
||||||
|
|
||||||
|
\func{void}{DrawCircle}{\param{const wxPoint\&}{ pt}, \param{wxCoord}{ radius}}
|
||||||
|
|
||||||
|
Draws a circle with the given centre and radius.
|
||||||
|
|
||||||
|
\wxheading{See also}
|
||||||
|
|
||||||
|
\helpref{DrawEllipse}{wxdcdrawellipse}
|
||||||
|
|
||||||
\membersection{wxDC::DrawEllipse}\label{wxdcdrawellipse}
|
\membersection{wxDC::DrawEllipse}\label{wxdcdrawellipse}
|
||||||
|
|
||||||
\func{void}{DrawEllipse}{\param{wxCoord}{ x}, \param{wxCoord}{ y}, \param{wxCoord}{ width}, \param{wxCoord}{ height}}
|
\func{void}{DrawEllipse}{\param{wxCoord}{ x}, \param{wxCoord}{ y}, \param{wxCoord}{ width}, \param{wxCoord}{ height}}
|
||||||
|
|
||||||
Draws an ellipse contained in the rectangle with the given top left corner, and with the
|
\func{void}{DrawEllipse}{\param{const wxPoint\&}{ pt}, \param{const wxSize\&}{ size}}
|
||||||
given size. The current pen is used for the outline and the current brush for
|
|
||||||
filling the shape.
|
\func{void}{DrawEllipse}{\param{const wxRect\&}{ rect}}
|
||||||
|
|
||||||
|
Draws an ellipse contained in the rectangle specified either with the given top
|
||||||
|
left corner and the given size or directly. The current pen is used for the
|
||||||
|
outline and the current brush for filling the shape.
|
||||||
|
|
||||||
|
\wxheading{See also}
|
||||||
|
|
||||||
|
\helpref{DrawCircle}{wxdcdrawcircle}
|
||||||
|
|
||||||
\membersection{wxDC::DrawEllipticArc}\label{wxdcdrawellipticarc}
|
\membersection{wxDC::DrawEllipticArc}\label{wxdcdrawellipticarc}
|
||||||
|
|
||||||
|
@@ -226,6 +226,9 @@ public:
|
|||||||
|
|
||||||
void DrawCircle(wxCoord x, wxCoord y, wxCoord radius)
|
void DrawCircle(wxCoord x, wxCoord y, wxCoord radius)
|
||||||
{ DoDrawEllipse(x - radius, y - radius, 2*radius, 2*radius); }
|
{ DoDrawEllipse(x - radius, y - radius, 2*radius, 2*radius); }
|
||||||
|
void DrawCircle(const wxPoint& pt, wxCoord radius)
|
||||||
|
{ DoDrawEllipse(pt.x, pt.y, radius); }
|
||||||
|
|
||||||
void DrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
|
void DrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
|
||||||
{ DoDrawEllipse(x, y, width, height); }
|
{ DoDrawEllipse(x, y, width, height); }
|
||||||
void DrawEllipse(const wxPoint& pt, const wxSize& sz)
|
void DrawEllipse(const wxPoint& pt, const wxSize& sz)
|
||||||
|
Reference in New Issue
Block a user