ReactOS 0.4.16-dev-92-g0c2cdca
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 }
Status lastStatus
Definition: gdiplusbrush.h:65
void SetNativeBrush(GpBrush *brush)
Definition: gdiplusbrush.h:84
#define NULL
Definition: types.h:112

◆ 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)
120
121 ARGB argb;
122 GpHatch *hatch = GetNativeHatch();
123 SetStatus(DllExports::GdipGetHatchBackgroundColor(hatch, &argb));
124
125 color->SetValue(argb);
126 return lastStatus;
127 }
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GpHatch * GetNativeHatch() const
Definition: gdiplusbrush.h:158
DWORD ARGB
@ InvalidParameter
Definition: gdiplustypes.h:28
GLuint color
Definition: glext.h:6243

◆ GetForegroundColor()

Status HatchBrush::GetForegroundColor ( Color color) const
inline

Definition at line 130 of file gdiplusbrush.h.

131 {
132 if (!color)
134
135 ARGB argb;
136 GpHatch *hatch = GetNativeHatch();
137 SetStatus(DllExports::GdipGetHatchForegroundColor(hatch, &argb));
138
139 color->SetValue(argb);
140 return lastStatus;
141 }

◆ 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:390

◆ 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: