ReactOS  0.4.15-dev-318-g99b52df
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  {
31  }
GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush *brush)
Definition: brush.c:994
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.

71  : nativeBrush(brush), lastStatus(status)
72  {
73  }
Status lastStatus
Definition: gdiplusbrush.h:65
GpBrush * nativeBrush
Definition: gdiplusbrush.h:64
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;
38  if (lastStatus != Ok)
39  return NULL;
40 
41  Brush *newBrush = new Brush(brush, lastStatus);
42  if (newBrush == NULL)
43  {
45  }
46  return newBrush;
47  }
Status lastStatus
Definition: gdiplusbrush.h:65
GpStatus WINGDIPAPI GdipCloneBrush(GpBrush *brush, GpBrush **clone)
Definition: brush.c:70
smooth NULL
Definition: ftsmooth.c:416
GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush *brush)
Definition: brush.c:994
GpBrush * nativeBrush
Definition: gdiplusbrush.h:64
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76

◆ GetLastStatus()

Status Brush::GetLastStatus ( ) const
inline

Definition at line 50 of file gdiplusbrush.h.

51  {
52  return lastStatus;
53  }
Status lastStatus
Definition: gdiplusbrush.h:65

Referenced by PathGradientBrush::GetCenterColor().

◆ GetType()

BrushType Brush::GetType ( ) const
inline

Definition at line 56 of file gdiplusbrush.h.

57  {
60  return type;
61  }
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GpBrush * nativeBrush
Definition: gdiplusbrush.h:64
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GpStatus WINGDIPAPI GdipGetBrushType(GpBrush *brush, GpBrushType *type)
Definition: brush.c:950
BrushType
Definition: gdiplusenums.h:36

◆ 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  }
Status lastStatus
Definition: gdiplusbrush.h:65
static SERVICE_STATUS status
Definition: service.c:31
Definition: ps.c:97

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(), LinearGradientBrush::ScaleTransform(), TextureBrush::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(), LinearGradientBrush::TranslateTransform(), TextureBrush::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: