Logo    
KDWinUtils
Helper library for MFC to Qt migration
Loading...
Searching...
No Matches
KBrush Class Reference

The KBrush class defines a brush to be used during painting. More...

#include <kbrush.h>

Inheritance diagram for KBrush:
[legend]
Collaboration diagram for KBrush:
[legend]

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)
 

Detailed Description

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).

See also
https://learn.microsoft.com/en-us/cpp/mfc/reference/cbrush-class

Member Enumeration Documentation

◆ HatchStyle

Enumerator
Horizontal 

Horizontal hatch.

Vertical 

Vertical hatch.

FDiagonal 

Upward hatch (left to right) at 45 degrees.

BDiagonal 

Downward hatch (left to right) at 45 degrees.

Cross 

Horizontal and vertical crosshatch.

DiagCross 

Crosshatch at 45 degrees.

Constructor & Destructor Documentation

◆ KBrush() [1/2]

KBrush::KBrush ( const QBrush & brush)

Constructs a brush based on QBrush.

◆ KBrush() [2/2]

KBrush::KBrush ( const QRgb & color)

Constructs a brush based on a color.

Member Function Documentation

◆ CreateHatchBrush()

bool KBrush::CreateHatchBrush ( HatchStyle style,
const QRgb & color )

Initializes a brush with the specified hatched pattern and color.


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