ReactOS 0.4.17-dev-470-gf9e3448
ToolsModel::VirtualBrush Class Reference

Public Member Functions

 ~VirtualBrush ()
 
HBRUSH GetBrush (PAL_TYPE palette, COLORREF rgbColor)
 

Protected Attributes

COLORREF m_rgbColor = RGB(0, 0, 0)
 
PAL_TYPE m_palette = PAL_MODERN
 
HBRUSH m_hBrush = NULL
 

Detailed Description

Definition at line 70 of file toolsmodel.h.

Constructor & Destructor Documentation

◆ ~VirtualBrush()

ToolsModel::VirtualBrush::~VirtualBrush ( )

Definition at line 14 of file toolsmodel.cpp.

15{
16 if (m_hBrush)
18}
pKey DeleteObject()

Member Function Documentation

◆ GetBrush()

HBRUSH ToolsModel::VirtualBrush::GetBrush ( PAL_TYPE  palette,
COLORREF  rgbColor 
)

Definition at line 20 of file toolsmodel.cpp.

21{
22 if (m_hBrush &&
23 m_palette == palette &&
24 m_rgbColor == rgbColor)
25 {
26 return m_hBrush;
27 }
28
29 if (m_hBrush)
31
34 m_rgbColor = rgbColor;
35 return m_hBrush;
36}
static HBRUSH CreateBrush(PAL_TYPE palette, COLORREF color)
Definition: toolsmodel.cpp:349
static HPALETTE palette
Definition: clipboard.c:1457

Referenced by ToolsModel::GetBgBrush(), and ToolsModel::GetFgBrush().

Member Data Documentation

◆ m_hBrush

HBRUSH ToolsModel::VirtualBrush::m_hBrush = NULL
protected

Definition at line 75 of file toolsmodel.h.

Referenced by ~VirtualBrush().

◆ m_palette

PAL_TYPE ToolsModel::VirtualBrush::m_palette = PAL_MODERN
protected

Definition at line 74 of file toolsmodel.h.

◆ m_rgbColor

COLORREF ToolsModel::VirtualBrush::m_rgbColor = RGB(0, 0, 0)
protected

Definition at line 73 of file toolsmodel.h.


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