KDWinUtils
Helper library for MFC to Qt migration
|
The KBrush class defines a brush to be used during painting. More...
#include <kbrush.h>
Public Types | |
enum | HatchStyle { Horizontal = 0 , Vertical , FDiagonal , BDiagonal , Cross , DiagCross } |
Public Member Functions | |
bool | CreateHatchBrush (HatchStyle style, const QRgb &color) |
Initializes a brush with the specified hatched pattern and color. | |
KBrush (const QBrush &brush) | |
KBrush (const QRgb &color) | |
The KBrush class defines a brush to be used during painting.
This class can replace CBrush with the same API, and can be used in the same way as QBrush (it's inheriting QBrush).
enum KBrush::HatchStyle |
KBrush::KBrush | ( | const QBrush & | brush | ) |
Constructs a brush based on QBrush.
KBrush::KBrush | ( | const QRgb & | color | ) |
Constructs a brush based on a color.
bool KBrush::CreateHatchBrush | ( | HatchStyle | style, |
const QRgb & | color ) |
Initializes a brush with the specified hatched pattern and color.