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

The KPen class defines a font to be used during painting. More...

#include <kpen.h>

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

Public Types

enum  PenStyle {
  Solid = 0 , Dash = 1 , Dot = 2 , DashDot = 3 ,
  DashDotDot = 4 , Null = 5 , InsideFrame = 6 , UserStyle = 7 ,
  Alternate = 8 , StyleMask = 0x0000000F
}
 

Public Member Functions

 KPen (const CPen &pen)
 
 KPen (const QPen &pen)
 
 KPen (PenStyle style, int width, const QColor &color)
 

Detailed Description

The KPen class defines a font to be used during painting.

This class can replace CPen with the same API, and can be used in the same way as QPen (it's inheriting QPen).

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

Member Enumeration Documentation

◆ PenStyle

Enumerator
Solid 

Solid pen.

Dash 

Dashed pen.

Dot 

Dotted pen.

DashDot 

Alternating dashes and dots.

DashDotDot 

Alternating dashes and double dots.

Null 

Null pen.

InsideFrame 

Unsupported in Qt

UserStyle 

User defined style.

Alternate 

Pen that sets every other pixel.

StyleMask 

Constructor & Destructor Documentation

◆ KPen() [1/3]

KPen::KPen ( const QPen & pen)

Constructs a pen based on QPen.

◆ KPen() [2/3]

KPen::KPen ( PenStyle style,
int width,
const QColor & color )

Constructs a pen based on a style, width and color.

◆ KPen() [3/3]

KPen::KPen ( const CPen & pen)

Constructs a pen based on CPen.


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