• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

superkaramba

SkPainterAdaptor Class Reference

#include <skappletadaptor.h>

Inheritance diagram for SkPainterAdaptor:

Inheritance graph
[legend]

List of all members.


Detailed Description

The SkPainterAdaptor class implements an adaptor for QPainter objects.

Definition at line 46 of file skappletadaptor.h.


Public Types

enum  BrushStyle {
  NoBrush = Qt::NoBrush, SolidBrush = Qt::SolidPattern, DenseBrush = Qt::Dense7Pattern, LinearGradientBrush = Qt::LinearGradientPattern,
  ConicalGradientBrush = Qt::ConicalGradientPattern, RadialGradientBrush = Qt::RadialGradientPattern
}

Public Slots

void drawEllipse (const QRectF &r)
void drawLine (const QPointF &p1, const QPointF &p2)
void drawPie (const QRectF &r, int startAngle, int spanAngle)
void drawPoint (const QPointF &p)
void drawRect (const QRectF &r)
void drawText (const QPointF &position, const QString &text)
void restore ()
void rotate (double angle)
void save ()
void scale (double x, double y)
void setBackgroundColor (const QString &color)
void setBackgroundStyle (int brushStyle)
void setColor (const QString &color)
void setOpacity (double opacity)
void setPenColor (const QString &color)
void setStyle (int brushStyle)
void shear (double x, double y)
void translate (double x, double y)

Public Member Functions

QPainter * painter () const
 SkPainterAdaptor (QObject *parent, QPainter *painter)
virtual ~SkPainterAdaptor ()

Member Enumeration Documentation

enum SkPainterAdaptor::BrushStyle

Enumerator:
NoBrush 
SolidBrush 
DenseBrush 
LinearGradientBrush 
ConicalGradientBrush 
RadialGradientBrush 

Definition at line 54 of file skappletadaptor.h.


Constructor & Destructor Documentation

SkPainterAdaptor::SkPainterAdaptor ( QObject *  parent,
QPainter *  painter 
) [inline]

Definition at line 51 of file skappletadaptor.h.

virtual SkPainterAdaptor::~SkPainterAdaptor (  )  [inline, virtual]

Definition at line 52 of file skappletadaptor.h.


Member Function Documentation

void SkPainterAdaptor::drawEllipse ( const QRectF &  r  )  [inline, slot]

Draw an ellipse.

Definition at line 96 of file skappletadaptor.h.

void SkPainterAdaptor::drawLine ( const QPointF &  p1,
const QPointF &  p2 
) [inline, slot]

Draw a line.

Definition at line 98 of file skappletadaptor.h.

void SkPainterAdaptor::drawPie ( const QRectF &  r,
int  startAngle,
int  spanAngle 
) [inline, slot]

Draw a pie.

Definition at line 100 of file skappletadaptor.h.

void SkPainterAdaptor::drawPoint ( const QPointF &  p  )  [inline, slot]

Draw a point.

Definition at line 102 of file skappletadaptor.h.

void SkPainterAdaptor::drawRect ( const QRectF &  r  )  [inline, slot]

Draw a rect.

Definition at line 104 of file skappletadaptor.h.

void SkPainterAdaptor::drawText ( const QPointF &  position,
const QString &  text 
) [inline, slot]

Draw some text.

Definition at line 106 of file skappletadaptor.h.

QPainter* SkPainterAdaptor::painter (  )  const [inline]

Definition at line 53 of file skappletadaptor.h.

void SkPainterAdaptor::restore (  )  [inline, slot]

Restore the painter.

Definition at line 67 of file skappletadaptor.h.

void SkPainterAdaptor::rotate ( double  angle  )  [inline, slot]

Rotate by an defined angle.

Definition at line 87 of file skappletadaptor.h.

void SkPainterAdaptor::save (  )  [inline, slot]

Save the painter.

Definition at line 65 of file skappletadaptor.h.

void SkPainterAdaptor::scale ( double  x,
double  y 
) [inline, slot]

Scale by x and y.

Definition at line 89 of file skappletadaptor.h.

void SkPainterAdaptor::setBackgroundColor ( const QString &  color  )  [inline, slot]

Set the used background-color.

Definition at line 75 of file skappletadaptor.h.

void SkPainterAdaptor::setBackgroundStyle ( int  brushStyle  )  [inline, slot]

Set the used background-BrushStyle.

Definition at line 77 of file skappletadaptor.h.

void SkPainterAdaptor::setColor ( const QString &  color  )  [inline, slot]

Set the used foreground-color.

Definition at line 70 of file skappletadaptor.h.

void SkPainterAdaptor::setOpacity ( double  opacity  )  [inline, slot]

Set the used opacity.

Definition at line 84 of file skappletadaptor.h.

void SkPainterAdaptor::setPenColor ( const QString &  color  )  [inline, slot]

Set the used pen-color.

Definition at line 80 of file skappletadaptor.h.

void SkPainterAdaptor::setStyle ( int  brushStyle  )  [inline, slot]

Set the used foreground-BrushStyle.

Definition at line 72 of file skappletadaptor.h.

void SkPainterAdaptor::shear ( double  x,
double  y 
) [inline, slot]

Shear by x and y.

Definition at line 91 of file skappletadaptor.h.

void SkPainterAdaptor::translate ( double  x,
double  y 
) [inline, slot]

Translate to x and y.

Definition at line 93 of file skappletadaptor.h.


The documentation for this class was generated from the following file:
  • skappletadaptor.h

superkaramba

Skip menu "superkaramba"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • okteta
  • printer-applet
  • superkaramba
  • sweeper
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal