superkaramba
SkPainterAdaptor Class Reference
#include <skappletadaptor.h>
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
- 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] |
| virtual SkPainterAdaptor::~SkPainterAdaptor |
( |
|
) |
[inline, virtual] |
Member Function Documentation
| void SkPainterAdaptor::drawEllipse |
( |
const QRectF & |
r |
) |
[inline, slot] |
| void SkPainterAdaptor::drawLine |
( |
const QPointF & |
p1, |
|
|
const QPointF & |
p2 | |
|
) |
| | [inline, slot] |
| void SkPainterAdaptor::drawPie |
( |
const QRectF & |
r, |
|
|
int |
startAngle, |
|
|
int |
spanAngle | |
|
) |
| | [inline, slot] |
| void SkPainterAdaptor::drawPoint |
( |
const QPointF & |
p |
) |
[inline, slot] |
| void SkPainterAdaptor::drawRect |
( |
const QRectF & |
r |
) |
[inline, slot] |
| void SkPainterAdaptor::drawText |
( |
const QPointF & |
position, |
|
|
const QString & |
text | |
|
) |
| | [inline, slot] |
| QPainter* SkPainterAdaptor::painter |
( |
|
) |
const [inline] |
| void SkPainterAdaptor::restore |
( |
|
) |
[inline, slot] |
| void SkPainterAdaptor::rotate |
( |
double |
angle |
) |
[inline, slot] |
| void SkPainterAdaptor::save |
( |
|
) |
[inline, slot] |
| void SkPainterAdaptor::scale |
( |
double |
x, |
|
|
double |
y | |
|
) |
| | [inline, slot] |
| void SkPainterAdaptor::setBackgroundColor |
( |
const QString & |
color |
) |
[inline, slot] |
| void SkPainterAdaptor::setBackgroundStyle |
( |
int |
brushStyle |
) |
[inline, slot] |
| void SkPainterAdaptor::setColor |
( |
const QString & |
color |
) |
[inline, slot] |
| void SkPainterAdaptor::setOpacity |
( |
double |
opacity |
) |
[inline, slot] |
| void SkPainterAdaptor::setPenColor |
( |
const QString & |
color |
) |
[inline, slot] |
| void SkPainterAdaptor::setStyle |
( |
int |
brushStyle |
) |
[inline, slot] |
| void SkPainterAdaptor::shear |
( |
double |
x, |
|
|
double |
y | |
|
) |
| | [inline, slot] |
| void SkPainterAdaptor::translate |
( |
double |
x, |
|
|
double |
y | |
|
) |
| | [inline, slot] |
The documentation for this class was generated from the following file: