ReactOS  0.4.15-dev-309-g7c8d563
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  }
void SetNativeBrush(GpBrush *brush)
Definition: gdiplusbrush.h:84
Status lastStatus
Definition: gdiplusbrush.h:65
GLuint color
Definition: glext.h:6243
smooth NULL
Definition: ftsmooth.c:416
GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB color, GpSolidFill **sf)
Definition: brush.c:757

◆ 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)
474  return SetStatus(InvalidParameter);
475 
476  ARGB argb;
479 
480  *color = Color(argb);
481  return lastStatus;
482  }
GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill *sf, ARGB *argb)
Definition: brush.c:1273
Status lastStatus
Definition: gdiplusbrush.h:65
struct Color Color
GLuint color
Definition: glext.h:6243
GpSolidFill * GetNativeFill() const
Definition: gdiplusbrush.h:497
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
_STLP_MOVE_TO_STD_NAMESPACE void fill(_ForwardIter __first, _ForwardIter __last, const _Tp &__val)
Definition: _algobase.h:449
DWORD ARGB

◆ 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  {
489  }
GpStatus WINGDIPAPI GdipSetSolidFillColor(GpSolidFill *sf, ARGB argb)
Definition: brush.c:1925
GLuint color
Definition: glext.h:6243
GpSolidFill * GetNativeFill() const
Definition: gdiplusbrush.h:497
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
_STLP_MOVE_TO_STD_NAMESPACE void fill(_ForwardIter __first, _ForwardIter __last, const _Tp &__val)
Definition: _algobase.h:449

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: