lib

KoPen Class Reference

#include <KoPen.h>

Inherits QPen.

List of all members.


Detailed Description

Pen that handles line widths in points.

Definition at line 30 of file KoPen.h.


Public Member Functions

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

Member Function Documentation

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.

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.

void KoPen::setPointWidth ( double  width  ) 

Set the pen width in points.

Definition at line 58 of file KoPen.cpp.

double KoPen::pointWidth (  )  const [inline]

KoPen width in points.

Definition at line 59 of file KoPen.h.

QPen KoPen::zoomedPen ( KoZoomHandler zoomHandler  ) 

Returns a zoomed QPen.

Definition at line 63 of file KoPen.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys