ReactOS  0.4.15-dev-309-g7c8d563
HatchBrush Class Reference

#include <gdiplusbrush.h>

Inheritance diagram for HatchBrush:
Collaboration diagram for HatchBrush:

Public Member Functions

 HatchBrush (HatchStyle hatchStyle, const Color &foreColor, const Color &backColor)
 
Status GetBackgroundColor (Color *color) const
 
Status GetForegroundColor (Color *color) const
 
HatchStyle GetHatchStyle () const
 
- 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

 HatchBrush ()
 
GpHatchGetNativeHatch () const
 
- 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 103 of file gdiplusbrush.h.

Constructor & Destructor Documentation

◆ HatchBrush() [1/2]

HatchBrush::HatchBrush ( HatchStyle  hatchStyle,
const Color foreColor,
const Color backColor 
)
inline

Definition at line 108 of file gdiplusbrush.h.

109  {
110  GpHatch *brush = NULL;
111  lastStatus = DllExports::GdipCreateHatchBrush(hatchStyle, foreColor.GetValue(), backColor.GetValue(), &brush);
112  SetNativeBrush(brush);
113  }
void SetNativeBrush(GpBrush *brush)
Definition: gdiplusbrush.h:84
Status lastStatus
Definition: gdiplusbrush.h:65
smooth NULL
Definition: ftsmooth.c:416
GpStatus WINGDIPAPI GdipCreateHatchBrush(GpHatchStyle hatchstyle, ARGB forecol, ARGB backcol, GpHatch **brush)
Definition: brush.c:276

◆ HatchBrush() [2/2]

HatchBrush::HatchBrush ( )
inlineprotected

Definition at line 153 of file gdiplusbrush.h.

154  {
155  }

Member Function Documentation

◆ GetBackgroundColor()

Status HatchBrush::GetBackgroundColor ( Color color) const
inline

Definition at line 116 of file gdiplusbrush.h.

117  {
118  if (!color)
119  return SetStatus(InvalidParameter);
120 
121  ARGB argb;
122  GpHatch *hatch = GetNativeHatch();
124 
125  color->SetValue(argb);
126  return lastStatus;
127  }
Status lastStatus
Definition: gdiplusbrush.h:65
GLuint color
Definition: glext.h:6243
GpHatch * GetNativeHatch() const
Definition: gdiplusbrush.h:158
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GpStatus WINGDIPAPI GdipGetHatchBackgroundColor(GpHatch *brush, ARGB *backcol)
Definition: brush.c:961
DWORD ARGB

◆ GetForegroundColor()

Status HatchBrush::GetForegroundColor ( Color color) const
inline

Definition at line 130 of file gdiplusbrush.h.

131  {
132  if (!color)
133  return SetStatus(InvalidParameter);
134 
135  ARGB argb;
136  GpHatch *hatch = GetNativeHatch();
138 
139  color->SetValue(argb);
140  return lastStatus;
141  }
Status lastStatus
Definition: gdiplusbrush.h:65
GLuint color
Definition: glext.h:6243
GpHatch * GetNativeHatch() const
Definition: gdiplusbrush.h:158
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GpStatus WINGDIPAPI GdipGetHatchForegroundColor(GpHatch *brush, ARGB *forecol)
Definition: brush.c:972
DWORD ARGB

◆ GetHatchStyle()

HatchStyle HatchBrush::GetHatchStyle ( ) const
inline

Definition at line 144 of file gdiplusbrush.h.

145  {
146  HatchStyle hatchStyle;
147  GpHatch *hatch = GetNativeHatch();
148  SetStatus(DllExports::GdipGetHatchStyle(hatch, &hatchStyle));
149  return hatchStyle;
150  }
HatchStyle
Definition: gdiplusenums.h:389
GpHatch * GetNativeHatch() const
Definition: gdiplusbrush.h:158
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GpStatus WINGDIPAPI GdipGetHatchStyle(GpHatch *brush, GpHatchStyle *hatchstyle)
Definition: brush.c:983

◆ GetNativeHatch()

GpHatch* HatchBrush::GetNativeHatch ( ) const
inlineprotected

Definition at line 158 of file gdiplusbrush.h.

159  {
160  return static_cast<GpHatch *>(nativeBrush);
161  }
GpBrush * nativeBrush
Definition: gdiplusbrush.h:64

Referenced by GetBackgroundColor(), GetForegroundColor(), and GetHatchStyle().

Friends And Related Function Documentation

◆ Pen

friend class Pen
friend

Definition at line 106 of file gdiplusbrush.h.


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