lib

#include <KoPen.h>

Inherits TQPen.

Public Member Functions

 KoPen (const TQColor &_color, double _pointWidth, TQt::PenStyle _style)
 
 KoPen (const TQColor &_color)
 
bool operator== (const KoPen &p) const
 
bool operator!= (const KoPen &p) const
 
void setPointWidth (double width)
 
double pointWidth () const
 
TQPen zoomedPen (KoZoomHandler *zoomHandler)
 

Detailed Description

Pen that handles line widths in points.

Definition at line 30 of file KoPen.h.

Constructor & Destructor Documentation

◆ KoPen() [1/3]

KoPen::KoPen ( )

Definition at line 24 of file KoPen.cpp.

◆ KoPen() [2/3]

KoPen::KoPen ( const TQColor &  _color,
double  _pointWidth,
TQt::PenStyle  _style 
)

Definition at line 30 of file KoPen.cpp.

◆ KoPen() [3/3]

KoPen::KoPen ( const TQColor &  _color)

Definition at line 38 of file KoPen.cpp.

◆ ~KoPen()

KoPen::~KoPen ( )

Definition at line 44 of file KoPen.cpp.

Member Function Documentation

◆ operator!=()

bool KoPen::operator!= ( const KoPen &  p) const

Compare pens if they differ.

Two pens are different if they have different styles, widths or colors.

Returns
true if the pens are different, false otherwise

Definition at line 53 of file KoPen.cpp.

◆ operator==()

bool KoPen::operator== ( const KoPen &  p) const

Compare pens if they are equal.

Two pens are equal if they have equal styles, widths and colors.

Returns
true if the pens are equal, false otherwise

Definition at line 48 of file KoPen.cpp.

◆ pointWidth()

double KoPen::pointWidth ( ) const
inline

KoPen width in points.

Definition at line 59 of file KoPen.h.

◆ setPointWidth()

void KoPen::setPointWidth ( double  width)

Set the pen width in points.

Definition at line 58 of file KoPen.cpp.

◆ zoomedPen()

TQPen KoPen::zoomedPen ( KoZoomHandler *  zoomHandler)

Returns a zoomed TQPen.

Definition at line 63 of file KoPen.cpp.


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