ReactOS 0.4.15-dev-5664-g3bf4ef6
PathGradientBrush Class Reference

#include <gdipluspath.h>

Inheritance diagram for PathGradientBrush:
Collaboration diagram for PathGradientBrush:

Public Member Functions

 PathGradientBrush (const Point *points, INT count, WrapMode wrapMode=WrapModeClamp)
 
 PathGradientBrush (const PointF *points, INT count, WrapMode wrapMode=WrapModeClamp)
 
 PathGradientBrush (const GraphicsPath *path)
 
INT GetBlendCount () const
 
Status GetBlend (REAL *blendFactors, REAL *blendPositions, INT count) const
 
Status GetCenterColor (Color *color) const
 
Status GetCenterPoint (Point *point) const
 
Status GetCenterPoint (PointF *point) const
 
Status GetFocusScales (REAL *xScale, REAL *yScale) const
 
BOOL GetGammaCorrection () const
 
Status GetGraphicsPath (GraphicsPath *path) const
 
INT GetInterpolationColorCount () const
 
Status GetInterpolationColors (Color *presetColors, REAL *blendPositions, INT count) const
 
INT GetPointCount () const
 
Status GetRectangle (RectF *rect) const
 
Status GetRectangle (Rect *rect) const
 
INT GetSurroundColorCount () const
 
Status GetSurroundColors (Color *colors, INT *count) const
 
Status GetTransform (Matrix *matrix) const
 
WrapMode GetWrapMode () const
 
Status MultiplyTransform (Matrix *matrix, MatrixOrder order=MatrixOrderPrepend)
 
Status ResetTransform ()
 
Status RotateTransform (REAL angle, MatrixOrder order=MatrixOrderPrepend)
 
Status ScaleTransform (REAL sx, REAL sy, MatrixOrder order=MatrixOrderPrepend)
 
Status SetBlend (REAL *blendFactors, REAL *blendPositions, INT count)
 
Status SetBlendBellShape (REAL focus, REAL scale)
 
Status SetBlendTriangularShape (REAL focus, REAL scale=1.0f)
 
Status SetCenterColor (const Color &color)
 
Status SetCenterPoint (const Point &point)
 
Status SetCenterPoint (const PointF &point)
 
Status SetFocusScales (REAL xScale, REAL yScale)
 
Status SetGammaCorrection (BOOL useGammaCorrection)
 
Status SetGraphicsPath (const GraphicsPath *path)
 
Status SetInterpolationColors (const Color *presetColors, REAL *blendPositions, INT count)
 
Status SetSurroundColors (const Color *colors, INT *count)
 
Status SetTransform (const Matrix *matrix)
 
Status SetWrapMode (WrapMode wrapMode)
 
Status TranslateTransform (REAL dx, REAL dy, MatrixOrder order=MatrixOrderPrepend)
 
- Public Member Functions inherited from Brush
virtual ~Brush ()
 
BrushClone () const
 
Status GetLastStatus () const
 
BrushType GetType () const
 
- Public Member Functions inherited from GdiplusBase
void operator delete (void *in_pVoid)
 
void operator delete[] (void *in_pVoid)
 
voidoperator new (size_t in_size)
 
voidoperator new[] (size_t in_size)
 

Protected Member Functions

GpPathGradientGetNativeGradient () const
 
 PathGradientBrush ()
 
- Protected Member Functions inherited from Brush
 Brush ()
 
 Brush (GpBrush *brush, Status status)
 
Status SetStatus (Status status) const
 
void SetNativeBrush (GpBrush *brush)
 

Friends

class Pen
 

Additional Inherited Members

- Protected Attributes inherited from Brush
GpBrushnativeBrush
 
Status lastStatus
 

Detailed Description

Definition at line 749 of file gdipluspath.h.

Constructor & Destructor Documentation

◆ PathGradientBrush() [1/4]

PathGradientBrush::PathGradientBrush ( const Point points,
INT  count,
WrapMode  wrapMode = WrapModeClamp 
)
inline

Definition at line 754 of file gdipluspath.h.

755 {
756 GpPathGradient *brush = NULL;
757 lastStatus = DllExports::GdipCreatePathGradientI(points, count, wrapMode, &brush);
758 SetNativeBrush(brush);
759 }
Status lastStatus
Definition: gdiplusbrush.h:65
void SetNativeBrush(GpBrush *brush)
Definition: gdiplusbrush.h:84
#define NULL
Definition: types.h:112
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLsizei const GLfloat * points
Definition: glext.h:8112

◆ PathGradientBrush() [2/4]

PathGradientBrush::PathGradientBrush ( const PointF points,
INT  count,
WrapMode  wrapMode = WrapModeClamp 
)
inline

Definition at line 761 of file gdipluspath.h.

762 {
763 GpPathGradient *brush = NULL;
764 lastStatus = DllExports::GdipCreatePathGradient(points, count, wrapMode, &brush);
765 SetNativeBrush(brush);
766 }

◆ PathGradientBrush() [3/4]

PathGradientBrush::PathGradientBrush ( const GraphicsPath path)
inline

Definition at line 768 of file gdipluspath.h.

769 {
770 GpPathGradient *brush = NULL;
771 lastStatus = DllExports::GdipCreatePathGradientFromPath(getNat(path), &brush);
772 SetNativeBrush(brush);
773 }
friend GpBrush *& getNat(const Brush *brush)
Definition: gdiplusbrush.h:97

◆ PathGradientBrush() [4/4]

PathGradientBrush::PathGradientBrush ( )
inlineprotected

Definition at line 1017 of file gdipluspath.h.

1018 {
1019 }

Member Function Documentation

◆ GetBlend()

Status PathGradientBrush::GetBlend ( REAL blendFactors,
REAL blendPositions,
INT  count 
) const
inline

Definition at line 784 of file gdipluspath.h.

785 {
786 return SetStatus(
787 DllExports::GdipGetPathGradientBlend(GetNativeGradient(), blendFactors, blendPositions, count));
788 }
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GpPathGradient * GetNativeGradient() const
Definition: gdipluspath.h:1012

◆ GetBlendCount()

INT PathGradientBrush::GetBlendCount ( ) const
inline

Definition at line 776 of file gdipluspath.h.

777 {
778 INT count = 0;
779 SetStatus(DllExports::GdipGetPathGradientBlendCount(GetNativeGradient(), &count));
780 return count;
781 }
int32_t INT
Definition: typedefs.h:58

◆ GetCenterColor()

Status PathGradientBrush::GetCenterColor ( Color color) const
inline

Definition at line 791 of file gdipluspath.h.

792 {
793 if (color != NULL)
795
796 ARGB argb;
797 SetStatus(DllExports::GdipGetPathGradientCenterColor(GetNativeGradient(), &argb));
798 color->SetValue(argb);
799 return GetLastStatus();
800 }
Status GetLastStatus() const
Definition: gdiplusbrush.h:50
DWORD ARGB
@ InvalidParameter
Definition: gdiplustypes.h:28
GLuint color
Definition: glext.h:6243

◆ GetCenterPoint() [1/2]

Status PathGradientBrush::GetCenterPoint ( Point point) const
inline

Definition at line 803 of file gdipluspath.h.

804 {
805 return SetStatus(DllExports::GdipGetPathGradientCenterPointI(GetNativeGradient(), point));
806 }
POINTL point
Definition: edittest.c:50

◆ GetCenterPoint() [2/2]

Status PathGradientBrush::GetCenterPoint ( PointF point) const
inline

Definition at line 809 of file gdipluspath.h.

810 {
811 return SetStatus(DllExports::GdipGetPathGradientCenterPoint(GetNativeGradient(), point));
812 }

◆ GetFocusScales()

Status PathGradientBrush::GetFocusScales ( REAL xScale,
REAL yScale 
) const
inline

Definition at line 815 of file gdipluspath.h.

816 {
817 return SetStatus(DllExports::GdipGetPathGradientFocusScales(GetNativeGradient(), xScale, yScale));
818 }

◆ GetGammaCorrection()

BOOL PathGradientBrush::GetGammaCorrection ( ) const
inline

Definition at line 821 of file gdipluspath.h.

822 {
823 BOOL useGammaCorrection;
824 SetStatus(DllExports::GdipGetPathGradientGammaCorrection(GetNativeGradient(), &useGammaCorrection));
825 return useGammaCorrection;
826 }
unsigned int BOOL
Definition: ntddk_ex.h:94

◆ GetGraphicsPath()

Status PathGradientBrush::GetGraphicsPath ( GraphicsPath path) const
inline

Definition at line 829 of file gdipluspath.h.

830 {
831 if (!path)
833
834 return SetStatus(DllExports::GdipGetPathGradientPath(GetNativeGradient(), getNat(path)));
835 }

◆ GetInterpolationColorCount()

INT PathGradientBrush::GetInterpolationColorCount ( ) const
inline

Definition at line 838 of file gdipluspath.h.

839 {
840 INT count = 0;
841 SetStatus(DllExports::GdipGetPathGradientPresetBlendCount(GetNativeGradient(), &count));
842 return count;
843 }

◆ GetInterpolationColors()

Status PathGradientBrush::GetInterpolationColors ( Color presetColors,
REAL blendPositions,
INT  count 
) const
inline

Definition at line 846 of file gdipluspath.h.

847 {
848 return NotImplemented;
849 }
@ NotImplemented
Definition: gdiplustypes.h:32

◆ GetNativeGradient()

◆ GetPointCount()

INT PathGradientBrush::GetPointCount ( ) const
inline

Definition at line 852 of file gdipluspath.h.

853 {
854 INT count;
855 SetStatus(DllExports::GdipGetPathGradientPointCount(GetNativeGradient(), &count));
856 return count;
857 }

◆ GetRectangle() [1/2]

Status PathGradientBrush::GetRectangle ( Rect rect) const
inline

Definition at line 866 of file gdipluspath.h.

867 {
868 return SetStatus(DllExports::GdipGetPathGradientRectI(GetNativeGradient(), rect));
869 }
& rect
Definition: startmenu.cpp:1413

◆ GetRectangle() [2/2]

Status PathGradientBrush::GetRectangle ( RectF rect) const
inline

Definition at line 860 of file gdipluspath.h.

861 {
862 return SetStatus(DllExports::GdipGetPathGradientRect(GetNativeGradient(), rect));
863 }

◆ GetSurroundColorCount()

INT PathGradientBrush::GetSurroundColorCount ( ) const
inline

Definition at line 872 of file gdipluspath.h.

873 {
874 INT count;
875 SetStatus(DllExports::GdipGetPathGradientSurroundColorCount(GetNativeGradient(), &count));
876 return count;
877 }

◆ GetSurroundColors()

Status PathGradientBrush::GetSurroundColors ( Color colors,
INT count 
) const
inline

Definition at line 880 of file gdipluspath.h.

881 {
882 return NotImplemented;
883 }

◆ GetTransform()

Status PathGradientBrush::GetTransform ( Matrix matrix) const
inline

Definition at line 886 of file gdipluspath.h.

887 {
888 return SetStatus(DllExports::GdipGetPathGradientTransform(GetNativeGradient(), getNat(matrix)));
889 }
GLuint GLenum matrix
Definition: glext.h:9407

◆ GetWrapMode()

WrapMode PathGradientBrush::GetWrapMode ( ) const
inline

Definition at line 892 of file gdipluspath.h.

893 {
894 WrapMode wrapMode;
895 SetStatus(DllExports::GdipGetPathGradientWrapMode(GetNativeGradient(), &wrapMode));
896 return wrapMode;
897 }
WrapMode
Definition: gdiplusenums.h:206

◆ MultiplyTransform()

Status PathGradientBrush::MultiplyTransform ( Matrix matrix,
MatrixOrder  order = MatrixOrderPrepend 
)
inline

Definition at line 900 of file gdipluspath.h.

901 {
902 return SetStatus(DllExports::GdipMultiplyPathGradientTransform(GetNativeGradient(), getNat(matrix), order));
903 }
GLuint GLdouble GLdouble GLint GLint order
Definition: glext.h:11194

◆ ResetTransform()

Status PathGradientBrush::ResetTransform ( )
inline

Definition at line 906 of file gdipluspath.h.

907 {
908 return SetStatus(DllExports::GdipResetPathGradientTransform(GetNativeGradient()));
909 }

◆ RotateTransform()

Status PathGradientBrush::RotateTransform ( REAL  angle,
MatrixOrder  order = MatrixOrderPrepend 
)
inline

Definition at line 912 of file gdipluspath.h.

913 {
914 return SetStatus(DllExports::GdipRotatePathGradientTransform(GetNativeGradient(), angle, order));
915 }
GLfloat angle
Definition: glext.h:10853

◆ ScaleTransform()

Status PathGradientBrush::ScaleTransform ( REAL  sx,
REAL  sy,
MatrixOrder  order = MatrixOrderPrepend 
)
inline

Definition at line 918 of file gdipluspath.h.

919 {
920 return SetStatus(DllExports::GdipScalePathGradientTransform(GetNativeGradient(), sx, sy, order));
921 }

◆ SetBlend()

Status PathGradientBrush::SetBlend ( REAL blendFactors,
REAL blendPositions,
INT  count 
)
inline

Definition at line 924 of file gdipluspath.h.

925 {
926 return SetStatus(
927 DllExports::GdipSetPathGradientBlend(GetNativeGradient(), blendFactors, blendPositions, count));
928 }

◆ SetBlendBellShape()

Status PathGradientBrush::SetBlendBellShape ( REAL  focus,
REAL  scale 
)
inline

Definition at line 931 of file gdipluspath.h.

932 {
933 return SetStatus(DllExports::GdipSetPathGradientSigmaBlend(GetNativeGradient(), focus, scale));
934 }
GLenum GLenum GLenum GLenum GLenum scale
Definition: glext.h:9032

◆ SetBlendTriangularShape()

Status PathGradientBrush::SetBlendTriangularShape ( REAL  focus,
REAL  scale = 1.0f 
)
inline

Definition at line 937 of file gdipluspath.h.

938 {
939 return SetStatus(DllExports::GdipSetPathGradientLinearBlend(GetNativeGradient(), focus, scale));
940 }

◆ SetCenterColor()

Status PathGradientBrush::SetCenterColor ( const Color color)
inline

Definition at line 943 of file gdipluspath.h.

944 {
945 return SetStatus(DllExports::GdipSetPathGradientCenterColor(GetNativeGradient(), color.GetValue()));
946 }

◆ SetCenterPoint() [1/2]

Status PathGradientBrush::SetCenterPoint ( const Point point)
inline

Definition at line 949 of file gdipluspath.h.

950 {
951 return SetStatus(DllExports::GdipSetPathGradientCenterPointI(GetNativeGradient(), const_cast<Point *>(&point)));
952 }

◆ SetCenterPoint() [2/2]

Status PathGradientBrush::SetCenterPoint ( const PointF point)
inline

Definition at line 955 of file gdipluspath.h.

956 {
957 return SetStatus(DllExports::GdipSetPathGradientCenterPoint(GetNativeGradient(), const_cast<PointF *>(&point)));
958 }

◆ SetFocusScales()

Status PathGradientBrush::SetFocusScales ( REAL  xScale,
REAL  yScale 
)
inline

Definition at line 961 of file gdipluspath.h.

962 {
963 return SetStatus(DllExports::GdipSetPathGradientFocusScales(GetNativeGradient(), xScale, yScale));
964 }

◆ SetGammaCorrection()

Status PathGradientBrush::SetGammaCorrection ( BOOL  useGammaCorrection)
inline

Definition at line 967 of file gdipluspath.h.

968 {
969 return SetStatus(DllExports::GdipSetPathGradientGammaCorrection(GetNativeGradient(), useGammaCorrection));
970 }

◆ SetGraphicsPath()

Status PathGradientBrush::SetGraphicsPath ( const GraphicsPath path)
inline

Definition at line 973 of file gdipluspath.h.

974 {
975 if (!path)
977 return SetStatus(DllExports::GdipSetPathGradientPath(GetNativeGradient(), getNat(path)));
978 }

◆ SetInterpolationColors()

Status PathGradientBrush::SetInterpolationColors ( const Color presetColors,
REAL blendPositions,
INT  count 
)
inline

Definition at line 981 of file gdipluspath.h.

982 {
983 return NotImplemented;
984 }

◆ SetSurroundColors()

Status PathGradientBrush::SetSurroundColors ( const Color colors,
INT count 
)
inline

Definition at line 987 of file gdipluspath.h.

988 {
989 return NotImplemented;
990 }

◆ SetTransform()

Status PathGradientBrush::SetTransform ( const Matrix matrix)
inline

Definition at line 993 of file gdipluspath.h.

994 {
995 return SetStatus(DllExports::GdipSetPathGradientTransform(GetNativeGradient(), getNat(matrix)));
996 }

◆ SetWrapMode()

Status PathGradientBrush::SetWrapMode ( WrapMode  wrapMode)
inline

Definition at line 999 of file gdipluspath.h.

1000 {
1001 return SetStatus(DllExports::GdipSetPathGradientWrapMode(GetNativeGradient(), wrapMode));
1002 }

◆ TranslateTransform()

Status PathGradientBrush::TranslateTransform ( REAL  dx,
REAL  dy,
MatrixOrder  order = MatrixOrderPrepend 
)
inline

Definition at line 1005 of file gdipluspath.h.

1006 {
1007 return SetStatus(DllExports::GdipTranslatePathGradientTransform(GetNativeGradient(), dx, dy, order));
1008 }
GLint dy
Definition: linetemp.h:97
GLint dx
Definition: linetemp.h:97

Friends And Related Function Documentation

◆ Pen

friend class Pen
friend

Definition at line 752 of file gdipluspath.h.


The documentation for this class was generated from the following file: