19#ifndef KIVIO_SCREEN_PAINTER_H
20#define KIVIO_SCREEN_PAINTER_H
22#include "kivio_painter.h"
31class KivioScreenPainter : public KivioPainter
34 TQPainter *m_pPainter;
35 float m_transX, m_transY;
40 KivioScreenPainter(TQPainter* painter);
41 virtual ~KivioScreenPainter();
43 virtual bool start( TQPaintDevice * );
46 TQPainter *painter() { return m_pPainter; }
47 void setPainter(TQPainter* p) { m_pPainter = p; }
55 void drawLine( float, float, float, float );
56 void drawArc( float, float, float, float, float, float );
58 void drawBezier( TQPointArray & );
60 void drawRect( float, float, float, float );
61 void fillRect( float, float, float, float );
63 void drawRoundRect( float, float, float, float, float, float );
64 void fillRoundRect( float, float, float, float, float, float );
66 void drawPie( float, float, float, float, float, float );
67 void fillPie( float, float, float, float, float, float );
69 void drawChord( float, float, float, float, float, float );
70 void fillChord( float, float, float, float, float, float );
72 void drawEllipse( float, float, float, float );
73 void fillEllipse( float, float, float, float );
75 void drawLineArray( TQPtrList<KivioPoint> * );
78 void drawPolyline( TQPtrList<KivioPoint> * );
79 void drawPolygon( TQPtrList<KivioPoint> * );
81 void drawPolyline( TQPointArray & );
82 void drawPolygon( TQPointArray & );
83 void drawLineArray( TQPointArray & );
85 void drawClosedPath( TQPtrList<KivioPoint> * );
86 void drawOpenPath( TQPtrList<KivioPoint> * );
88 void setFont( const TQFont & );
89 void drawText( int x, int y, int w, int h, int tf,
90 const TQString &str );
91 virtual TQRect boundingRect( int, int, int, int, int, const TQString & );
93 void drawPixmap( float, float, const TQPixmap & );
95 void drawHandle( float, float, int );
96 virtual void drawSelectionBox( const TQRect& );
98 virtual void saveState();
99 virtual void restoreState();
100 virtual void setTranslation( float, float);
101 virtual void translateBy( float, float);
102 virtual void setRotation( int);
103 virtual void rotateBy( int);
104 virtual int rotation();
106 virtual void setWorldMatrix(TQWMatrix, bool);
|