added linear and concentric gradient fill functions (modified/fixed patch from Ryan Norton)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-02-12 01:57:31 +00:00
parent d6bf7254f4
commit 213ad8e72c
7 changed files with 359 additions and 29 deletions

View File

@@ -786,6 +786,35 @@ Gets the current user scale factor (set by \helpref{SetUserScale}{wxdcsetusersca
array {\tt ( x, y )}}
\membersection{wxDC::GradientFillConcentric}\label{wxdcgradientfillconcentric}
\func{void}{GradientFillConcentric}{\param{const wxRect\&}{ rect}, \param{const wxColour\&}{ initialColour}, \param{const wxColour\&}{ destColour}}
\func{void}{GradientFillConcentric}{\param{const wxRect\&}{ rect}, \param{const wxColour\&}{ initialColour}, \param{const wxColour\&}{ destColour}, \param{const wxPoint\& }{circleCenter}}
Fill the area specified by rect with a radial gradient, starting from
\arg{initialColour} at the centre of the circle and fading to \arg{destColour}
on the circle outside.
\arg{circleCenter} are the relative coordinates of centre of the circle in
the specified \arg{rect}. If not specified, the cercle is placed at the
centre of rect.
\textbf{Note: } Currently this function is very slow, don't use it for
real-time drawing.
\membersection{wxDC::GradientFillLinear}\label{wxdcgradientfilllinear}
\func{void}{GradientFillLinear}{\param{const wxRect\&}{ rect}, \param{const wxColour\&}{ initialColour}, \param{const wxColour\&}{ destColour}, \param{wxDirection}{ nDirection = wxEAST}}
Fill the area specified by \arg{rect} with a linear gradient, starting from
\arg{initialColour} and eventually fading to \arg{destColour}. The
\arg{nDirection} specifies the direction of the colour change, default is to
use \arg{initialColour} on the left part of the rectangle and
\arg{destColour} on the right one.
\membersection{wxDC::LogicalToDeviceX}\label{wxdclogicaltodevicex}
\func{wxCoord}{LogicalToDeviceX}{\param{wxCoord}{ x}}