Qucs-GUI
0.0.19
|
#include <viewpainter.h>
Public Member Functions | |
ViewPainter (QPainter *p=0) | |
~ViewPainter () | |
void | init (QPainter *, float, int, int, int, int, float FontScale_=0.0, float PrintScale_=1.0) |
void | map (int, int, int &, int &) |
void | drawPoint (int, int) |
void | drawLine (int, int, int, int) |
void | drawRect (int, int, int, int) |
void | drawRectD (int, int, int, int) |
void | drawRoundRect (int, int, int, int) |
void | drawEllipse (int, int, int, int) |
void | drawArc (int, int, int, int, int, int) |
int | drawText (const QString &, int, int, int *Height=0) |
int | drawTextMapped (const QString &, int, int, int *Height=0) |
void | fillRect (int, int, int, int, const QColor &) |
void | eraseRect (int, int, int, int) |
void | drawResizeRect (int, int) |
Data Fields | |
QPainter * | Painter |
float | Scale |
float | FontScale |
float | PrintScale |
float | DX |
float | DY |
int | LineSpacing |
Definition at line 35 of file viewpainter.h.
ViewPainter::ViewPainter | ( | QPainter * | p = 0 | ) |
Definition at line 26 of file viewpainter.cpp.
Definition at line 33 of file viewpainter.cpp.
void ViewPainter::drawArc | ( | int | x1i, |
int | y1i, | ||
int | wi, | ||
int | hi, | ||
int | Angle, | ||
int | ArcLen | ||
) |
void ViewPainter::drawEllipse | ( | int | x1i, |
int | y1i, | ||
int | dxi, | ||
int | dyi | ||
) |
void ViewPainter::drawLine | ( | int | x1i, |
int | y1i, | ||
int | x2i, | ||
int | y2i | ||
) |
void ViewPainter::drawPoint | ( | int | x1i, |
int | y1i | ||
) |
Definition at line 79 of file viewpainter.cpp.
void ViewPainter::drawRect | ( | int | x1i, |
int | y1i, | ||
int | dxi, | ||
int | dyi | ||
) |
void ViewPainter::drawRectD | ( | int | x1i, |
int | y1i, | ||
int | dx, | ||
int | dy | ||
) |
void ViewPainter::drawResizeRect | ( | int | x1i, |
int | y1i | ||
) |
void ViewPainter::drawRoundRect | ( | int | x1i, |
int | y1i, | ||
int | dxi, | ||
int | dyi | ||
) |
int ViewPainter::drawText | ( | const QString & | Text, |
int | x1i, | ||
int | y1i, | ||
int * | Height = 0 |
||
) |
int ViewPainter::drawTextMapped | ( | const QString & | Text, |
int | x1, | ||
int | y1, | ||
int * | Height = 0 |
||
) |
Text[i+len].isNull()
Definition at line 324 of file viewpainter.cpp.
void ViewPainter::eraseRect | ( | int | x1i, |
int | y1i, | ||
int | dx, | ||
int | dy | ||
) |
void ViewPainter::fillRect | ( | int | x1i, |
int | y1i, | ||
int | dxi, | ||
int | dyi, | ||
const QColor & | Color | ||
) |
void ViewPainter::init | ( | QPainter * | p, |
float | Scale_, | ||
int | DX_, | ||
int | DY_, | ||
int | dx_, | ||
int | dy_, | ||
float | FontScale_ = 0.0 , |
||
float | PrintScale_ = 1.0 |
||
) |
void ViewPainter::map | ( | int | x1, |
int | y1, | ||
int & | x, | ||
int & | y | ||
) |
float ViewPainter::DX |
Definition at line 57 of file viewpainter.h.
float ViewPainter::DY |
Definition at line 57 of file viewpainter.h.
float ViewPainter::FontScale |
Definition at line 57 of file viewpainter.h.
Definition at line 58 of file viewpainter.h.
QPainter* ViewPainter::Painter |
Definition at line 56 of file viewpainter.h.
float ViewPainter::PrintScale |
Definition at line 57 of file viewpainter.h.
float ViewPainter::Scale |
Definition at line 57 of file viewpainter.h.