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

superkaramba

Public Types | Public Slots | Public Member Functions | List of all members
SkPainterAdaptor Class Reference

#include <skappletadaptor.h>

Inheritance diagram for SkPainterAdaptor:
Inheritance graph
[legend]

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

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

Detailed Description

The SkPainterAdaptor class implements an adaptor for QPainter objects.

Definition at line 46 of file skappletadaptor.h.

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 ( )
inlinevirtual

Definition at line 52 of file skappletadaptor.h.

Member Function Documentation

void SkPainterAdaptor::drawEllipse ( const QRectF &  r)
inlineslot

Draw an ellipse.

Definition at line 96 of file skappletadaptor.h.

void SkPainterAdaptor::drawLine ( const QPointF &  p1,
const QPointF &  p2 
)
inlineslot

Draw a line.

Definition at line 98 of file skappletadaptor.h.

void SkPainterAdaptor::drawPie ( const QRectF &  r,
int  startAngle,
int  spanAngle 
)
inlineslot

Draw a pie.

Definition at line 100 of file skappletadaptor.h.

void SkPainterAdaptor::drawPoint ( const QPointF &  p)
inlineslot

Draw a point.

Definition at line 102 of file skappletadaptor.h.

void SkPainterAdaptor::drawRect ( const QRectF &  r)
inlineslot

Draw a rect.

Definition at line 104 of file skappletadaptor.h.

void SkPainterAdaptor::drawText ( const QPointF &  position,
const QString &  text 
)
inlineslot

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 ( )
inlineslot

Restore the painter.

Definition at line 67 of file skappletadaptor.h.

void SkPainterAdaptor::rotate ( double  angle)
inlineslot

Rotate by an defined angle.

Definition at line 87 of file skappletadaptor.h.

void SkPainterAdaptor::save ( )
inlineslot

Save the painter.

Definition at line 65 of file skappletadaptor.h.

void SkPainterAdaptor::scale ( double  x,
double  y 
)
inlineslot

Scale by x and y.

Definition at line 89 of file skappletadaptor.h.

void SkPainterAdaptor::setBackgroundColor ( const QString &  color)
inlineslot

Set the used background-color.

Definition at line 75 of file skappletadaptor.h.

void SkPainterAdaptor::setBackgroundStyle ( int  brushStyle)
inlineslot

Set the used background-BrushStyle.

Definition at line 77 of file skappletadaptor.h.

void SkPainterAdaptor::setColor ( const QString &  color)
inlineslot

Set the used foreground-color.

Definition at line 70 of file skappletadaptor.h.

void SkPainterAdaptor::setOpacity ( double  opacity)
inlineslot

Set the used opacity.

Definition at line 84 of file skappletadaptor.h.

void SkPainterAdaptor::setPenColor ( const QString &  color)
inlineslot

Set the used pen-color.

Definition at line 80 of file skappletadaptor.h.

void SkPainterAdaptor::setStyle ( int  brushStyle)
inlineslot

Set the used foreground-BrushStyle.

Definition at line 72 of file skappletadaptor.h.

void SkPainterAdaptor::shear ( double  x,
double  y 
)
inlineslot

Shear by x and y.

Definition at line 91 of file skappletadaptor.h.

void SkPainterAdaptor::translate ( double  x,
double  y 
)
inlineslot

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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

superkaramba

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

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal