ReactOS 0.4.15-dev-5666-gc548b97
Brush Class Reference

#include <gdiplusbrush.h>

Inheritance diagram for Brush:
Collaboration diagram for Brush:

Public Member Functions

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

 Brush ()
 
 Brush (GpBrush *brush, Status status)
 
Status SetStatus (Status status) const
 
void SetNativeBrush (GpBrush *brush)
 

Protected Attributes

GpBrushnativeBrush
 
Status lastStatus
 

Private Member Functions

 Brush (const Brush &)
 
Brushoperator= (const Brush &)
 

Friends

class Graphics
 
class Pen
 
GpBrush *& getNat (const Brush *brush)
 

Detailed Description

Definition at line 22 of file gdiplusbrush.h.

Constructor & Destructor Documentation

◆ ~Brush()

virtual Brush::~Brush ( )
inlinevirtual

Definition at line 28 of file gdiplusbrush.h.

29 {
30 DllExports::GdipDeleteBrush(nativeBrush);
31 }
GpBrush * nativeBrush
Definition: gdiplusbrush.h:64

◆ Brush() [1/3]

Brush::Brush ( )
inlineprotected

Definition at line 67 of file gdiplusbrush.h.

68 {
69 }

Referenced by Clone().

◆ Brush() [2/3]

Brush::Brush ( GpBrush brush,
Status  status 
)
inlineprotected

Definition at line 71 of file gdiplusbrush.h.

72 {
73 }
Status lastStatus
Definition: gdiplusbrush.h:65
Definition: ps.c:97

◆ Brush() [3/3]

Brush::Brush ( const Brush )
private

Member Function Documentation

◆ Clone()

Brush * Brush::Clone ( ) const
inline

Definition at line 34 of file gdiplusbrush.h.

35 {
36 GpBrush *brush = NULL;
37 SetStatus(DllExports::GdipCloneBrush(nativeBrush, &brush));
38 if (lastStatus != Ok)
39 return NULL;
40
41 Brush *newBrush = new Brush(brush, lastStatus);
42 if (newBrush == NULL)
43 {
44 DllExports::GdipDeleteBrush(brush);
45 }
46 return newBrush;
47 }
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
#define NULL
Definition: types.h:112
@ Ok
Definition: gdiplustypes.h:26

◆ GetLastStatus()

Status Brush::GetLastStatus ( ) const
inline

Definition at line 50 of file gdiplusbrush.h.

51 {
52 return lastStatus;
53 }

Referenced by PathGradientBrush::GetCenterColor().

◆ GetType()

BrushType Brush::GetType ( ) const
inline

Definition at line 56 of file gdiplusbrush.h.

57 {
59 SetStatus(DllExports::GdipGetBrushType(nativeBrush, &type));
60 return type;
61 }
BrushType
Definition: gdiplusenums.h:37
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545

◆ operator=()

Brush & Brush::operator= ( const Brush )
private

◆ SetNativeBrush()

void Brush::SetNativeBrush ( GpBrush brush)
inlineprotected

◆ SetStatus()

Status Brush::SetStatus ( Status  status) const
inlineprotected

Definition at line 76 of file gdiplusbrush.h.

77 {
78 if (status != Ok)
80 return status;
81 }

Referenced by Clone(), HatchBrush::GetBackgroundColor(), LinearGradientBrush::GetBlend(), PathGradientBrush::GetBlend(), LinearGradientBrush::GetBlendCount(), PathGradientBrush::GetBlendCount(), PathGradientBrush::GetCenterColor(), PathGradientBrush::GetCenterPoint(), SolidBrush::GetColor(), PathGradientBrush::GetFocusScales(), HatchBrush::GetForegroundColor(), LinearGradientBrush::GetGammaCorrection(), PathGradientBrush::GetGammaCorrection(), PathGradientBrush::GetGraphicsPath(), HatchBrush::GetHatchStyle(), TextureBrush::GetImage(), LinearGradientBrush::GetInterpolationColorCount(), PathGradientBrush::GetInterpolationColorCount(), LinearGradientBrush::GetInterpolationColors(), LinearGradientBrush::GetLinearColors(), LinearGradientBrush::GetLinearPoints(), PathGradientBrush::GetPointCount(), LinearGradientBrush::GetRectangle(), PathGradientBrush::GetRectangle(), PathGradientBrush::GetSurroundColorCount(), LinearGradientBrush::GetTransform(), TextureBrush::GetTransform(), PathGradientBrush::GetTransform(), GetType(), LinearGradientBrush::GetWrapMode(), TextureBrush::GetWrapMode(), PathGradientBrush::GetWrapMode(), LinearGradientBrush::MultiplyTransform(), TextureBrush::MultiplyTransform(), PathGradientBrush::MultiplyTransform(), LinearGradientBrush::ResetTransform(), TextureBrush::ResetTransform(), PathGradientBrush::ResetTransform(), LinearGradientBrush::RotateTransform(), TextureBrush::RotateTransform(), PathGradientBrush::RotateTransform(), TextureBrush::ScaleTransform(), LinearGradientBrush::ScaleTransform(), PathGradientBrush::ScaleTransform(), LinearGradientBrush::SetBlend(), PathGradientBrush::SetBlend(), LinearGradientBrush::SetBlendBellShape(), PathGradientBrush::SetBlendBellShape(), LinearGradientBrush::SetBlendTriangularShape(), PathGradientBrush::SetBlendTriangularShape(), PathGradientBrush::SetCenterColor(), PathGradientBrush::SetCenterPoint(), SolidBrush::SetColor(), PathGradientBrush::SetFocusScales(), LinearGradientBrush::SetGammaCorrection(), PathGradientBrush::SetGammaCorrection(), PathGradientBrush::SetGraphicsPath(), LinearGradientBrush::SetInterpolationColors(), LinearGradientBrush::SetLinearColors(), LinearGradientBrush::SetLinearPoints(), LinearGradientBrush::SetTransform(), TextureBrush::SetTransform(), PathGradientBrush::SetTransform(), LinearGradientBrush::SetWrapMode(), TextureBrush::SetWrapMode(), PathGradientBrush::SetWrapMode(), TextureBrush::TranslateTransform(), LinearGradientBrush::TranslateTransform(), and PathGradientBrush::TranslateTransform().

Friends And Related Function Documentation

◆ getNat

◆ Graphics

friend class Graphics
friend

Definition at line 25 of file gdiplusbrush.h.

◆ Pen

friend class Pen
friend

Definition at line 26 of file gdiplusbrush.h.

Member Data Documentation

◆ lastStatus

◆ nativeBrush


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