Wraps a brush handle and automatically handles allocation/deallocation.
More...
#include <Brush.h>
List of all members.
Detailed Description
Wraps a brush handle and automatically handles allocation/deallocation.
Definition at line 26 of file Brush.h.
Constructor & Destructor Documentation
aswang::Brush::Brush |
( |
| ) |
[inline] |
aswang::Brush::Brush |
( |
const COLORREF |
r | ) |
[inline] |
Creates a new brush with the given color.
Definition at line 33 of file Brush.h.
aswang::Brush::Brush |
( |
const HBRUSH |
b | ) |
[inline] |
Creates a similar brush.
Definition at line 35 of file Brush.h.
aswang::Brush::Brush |
( |
const Brush & |
b | ) |
[inline] |
Creates a similar brush.
Definition at line 37 of file Brush.h.
virtual aswang::Brush::~Brush |
( |
| ) |
[inline, virtual] |
Member Function Documentation
void Brush::Delete |
( |
| ) |
[virtual] |
Free the brush.
Definition at line 24 of file Brush.cpp.
virtual HBRUSH aswang::Brush::GetBrush |
( |
| ) |
const [inline, virtual] |
COLORREF Brush::GetColor |
( |
| ) |
const [virtual] |
virtual COLORREF aswang::Brush::GetCRef |
( |
| ) |
const [inline, virtual] |
long Brush::GetHatch |
( |
| ) |
const [virtual] |
LOGBRUSH Brush::GetObjectInfo |
( |
| ) |
const [virtual] |
unsigned int Brush::GetStyle |
( |
| ) |
const [virtual] |
virtual aswang::Brush::operator bool const |
( |
| ) |
[inline, virtual] |
Tests whether the brush handle is NULL.
Definition at line 59 of file Brush.h.
virtual aswang::Brush::operator HBRUSH |
( |
| ) |
const [inline, virtual] |
Brush & Brush::operator= |
( |
const Brush & |
b | ) |
[virtual] |
Brush & Brush::operator= |
( |
const COLORREF |
r | ) |
[virtual] |
Brush & Brush::operator= |
( |
const HBRUSH |
b | ) |
[virtual] |
void Brush::SetBrush |
( |
HBRUSH |
b | ) |
[virtual] |
Deletes the existing brush and creates a new one similar to the brush passed to it.
Definition at line 37 of file Brush.cpp.
void Brush::SetCRef |
( |
COLORREF |
r | ) |
[virtual] |
Deletes the existing brush and creates a new one.
Definition at line 31 of file Brush.cpp.
Member Data Documentation
The documentation for this class was generated from the following files: