Qucs-GUI  0.0.19
Public Member Functions | Data Fields
ViewPainter Class Reference

#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

Detailed Description

Definition at line 35 of file viewpainter.h.


Constructor & Destructor Documentation

ViewPainter::ViewPainter ( QPainter *  p = 0)

Definition at line 26 of file viewpainter.cpp.

Definition at line 33 of file viewpainter.cpp.


Member Function Documentation

void ViewPainter::drawArc ( int  x1i,
int  y1i,
int  wi,
int  hi,
int  Angle,
int  ArcLen 
)

Definition at line 404 of file viewpainter.cpp.

Here is the caller graph for this function:

void ViewPainter::drawEllipse ( int  x1i,
int  y1i,
int  dxi,
int  dyi 
)

Definition at line 295 of file viewpainter.cpp.

Here is the caller graph for this function:

void ViewPainter::drawLine ( int  x1i,
int  y1i,
int  x2i,
int  y2i 
)

Definition at line 89 of file viewpainter.cpp.

Here is the caller graph for this function:

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 
)

Definition at line 261 of file viewpainter.cpp.

Here is the caller graph for this function:

void ViewPainter::drawRectD ( int  x1i,
int  y1i,
int  dx,
int  dy 
)

Definition at line 273 of file viewpainter.cpp.

Here is the caller graph for this function:

void ViewPainter::drawResizeRect ( int  x1i,
int  y1i 
)

Definition at line 441 of file viewpainter.cpp.

Here is the caller graph for this function:

void ViewPainter::drawRoundRect ( int  x1i,
int  y1i,
int  dxi,
int  dyi 
)

Definition at line 283 of file viewpainter.cpp.

Here is the caller graph for this function:

int ViewPainter::drawText ( const QString &  Text,
int  x1i,
int  y1i,
int *  Height = 0 
)

Definition at line 308 of file viewpainter.cpp.

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

void ViewPainter::eraseRect ( int  x1i,
int  y1i,
int  dx,
int  dy 
)

Definition at line 429 of file viewpainter.cpp.

Here is the caller graph for this function:

void ViewPainter::fillRect ( int  x1i,
int  y1i,
int  dxi,
int  dyi,
const QColor &  Color 
)

Definition at line 416 of file viewpainter.cpp.

Here is the caller graph for this function:

void ViewPainter::init ( QPainter *  p,
float  Scale_,
int  DX_,
int  DY_,
int  dx_,
int  dy_,
float  FontScale_ = 0.0,
float  PrintScale_ = 1.0 
)

Definition at line 38 of file viewpainter.cpp.

Here is the caller graph for this function:

void ViewPainter::map ( int  x1,
int  y1,
int &  x,
int &  y 
)

Definition at line 69 of file viewpainter.cpp.

Here is the caller graph for this function:


Field Documentation

Definition at line 57 of file viewpainter.h.

Definition at line 57 of file viewpainter.h.

Definition at line 57 of file viewpainter.h.

Definition at line 58 of file viewpainter.h.

Definition at line 56 of file viewpainter.h.

Definition at line 57 of file viewpainter.h.

Definition at line 57 of file viewpainter.h.


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines