ReactOS 0.4.16-dev-112-g52265ae
SolidBrush Class Reference

#include <gdiplusbrush.h>

Inheritance diagram for SolidBrush:
Collaboration diagram for SolidBrush:

Public Member Functions

 SolidBrush (const Color &color)
 
Status GetColor (Color *color) const
 
Status SetColor (const Color &color)
 

Protected Member Functions

 SolidBrush ()
 
GpSolidFillGetNativeFill () const
 

Friends

class Pen
 

Additional Inherited Members

- Private Member Functions inherited from Brush
virtual ~Brush ()
 
BrushClone () const
 
Status GetLastStatus () const
 
BrushType GetType () const
 
 Brush ()
 
 Brush (GpBrush *brush, Status status)
 
Status SetStatus (Status status) const
 
void SetNativeBrush (GpBrush *brush)
 
- Private 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)
 
- Private Attributes inherited from Brush
GpBrushnativeBrush
 
Status lastStatus
 

Detailed Description

Definition at line 458 of file gdiplusbrush.h.

Constructor & Destructor Documentation

◆ SolidBrush() [1/2]

SolidBrush::SolidBrush ( const Color color)
inline

Definition at line 463 of file gdiplusbrush.h.

464 {
465 GpSolidFill *brush = NULL;
466 lastStatus = DllExports::GdipCreateSolidFill(color.GetValue(), &brush);
467 SetNativeBrush(brush);
468 }
Status lastStatus
Definition: gdiplusbrush.h:65
void SetNativeBrush(GpBrush *brush)
Definition: gdiplusbrush.h:84
#define NULL
Definition: types.h:112
GLuint color
Definition: glext.h:6243

◆ SolidBrush() [2/2]

SolidBrush::SolidBrush ( )
inlineprotected

Definition at line 492 of file gdiplusbrush.h.

493 {
494 }

Member Function Documentation

◆ GetColor()

Status SolidBrush::GetColor ( Color color) const
inline

Definition at line 471 of file gdiplusbrush.h.

472 {
473 if (!color)
475
476 ARGB argb;
478 SetStatus(DllExports::GdipGetSolidFillColor(fill, &argb));
479
480 *color = Color(argb);
481 return lastStatus;
482 }
_STLP_MOVE_TO_STD_NAMESPACE void fill(_ForwardIter __first, _ForwardIter __last, const _Tp &__val)
Definition: _algobase.h:449
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GpSolidFill * GetNativeFill() const
Definition: gdiplusbrush.h:497
DWORD ARGB
@ InvalidParameter
Definition: gdiplustypes.h:28

◆ GetNativeFill()

GpSolidFill * SolidBrush::GetNativeFill ( ) const
inlineprotected

Definition at line 497 of file gdiplusbrush.h.

498 {
499 return static_cast<GpSolidFill *>(nativeBrush);
500 }
GpBrush * nativeBrush
Definition: gdiplusbrush.h:64

Referenced by GetColor(), and SetColor().

◆ SetColor()

Status SolidBrush::SetColor ( const Color color)
inline

Definition at line 485 of file gdiplusbrush.h.

486 {
488 return SetStatus(DllExports::GdipSetSolidFillColor(fill, color.GetValue()));
489 }

Friends And Related Function Documentation

◆ Pen

friend class Pen
friend

Definition at line 461 of file gdiplusbrush.h.


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