Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 drawLines (int, int, float *)
 
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)
 
void drawStarSymbols (int, int, float *)
 
void drawCircleSymbols (int, int, float *)
 
void drawArrowSymbols (int, int, float *)
 

Data Fields

QPainter * Painter
 
float Scale
 
float FontScale
 
float PrintScale
 
float DX
 
float DY
 
int LineSpacing
 

Detailed Description

Definition at line 33 of file viewpainter.h.

Constructor & Destructor Documentation

ViewPainter::ViewPainter ( QPainter *  p = 0)

Definition at line 24 of file viewpainter.cpp.

ViewPainter::~ViewPainter ( )

Definition at line 31 of file viewpainter.cpp.

Member Function Documentation

void ViewPainter::drawArc ( int  x1,
int  y1,
int  w,
int  h,
int  Angle,
int  ArcLen 
)

Definition at line 380 of file viewpainter.cpp.

void ViewPainter::drawArrowSymbols ( int  x0,
int  y0,
float *  pp 
)

Definition at line 204 of file viewpainter.cpp.

void ViewPainter::drawCircleSymbols ( int  x0,
int  y0,
float *  pp 
)

Definition at line 179 of file viewpainter.cpp.

void ViewPainter::drawEllipse ( int  x1,
int  y1,
int  dx,
int  dy 
)

Definition at line 277 of file viewpainter.cpp.

void ViewPainter::drawLine ( int  x1,
int  y1,
int  x2,
int  y2 
)

Definition at line 85 of file viewpainter.cpp.

void ViewPainter::drawLines ( int  x0,
int  y0,
float *  pp 
)

Definition at line 101 of file viewpainter.cpp.

void ViewPainter::drawPoint ( int  x1,
int  y1 
)

Definition at line 73 of file viewpainter.cpp.

void ViewPainter::drawRect ( int  x1,
int  y1,
int  dx,
int  dy 
)

Definition at line 233 of file viewpainter.cpp.

void ViewPainter::drawRectD ( int  x1,
int  y1,
int  dx,
int  dy 
)

Definition at line 249 of file viewpainter.cpp.

void ViewPainter::drawResizeRect ( int  x1,
int  y1 
)

Definition at line 427 of file viewpainter.cpp.

void ViewPainter::drawRoundRect ( int  x1,
int  y1,
int  dx,
int  dy 
)

Definition at line 261 of file viewpainter.cpp.

void ViewPainter::drawStarSymbols ( int  x0,
int  y0,
float *  pp 
)

Definition at line 149 of file viewpainter.cpp.

int ViewPainter::drawText ( const QString &  Text,
int  x1,
int  y1,
int *  Height = 0 
)

Definition at line 294 of file viewpainter.cpp.

int ViewPainter::drawTextMapped ( const QString &  Text,
int  x1,
int  y1,
int *  Height = 0 
)

Text[i+len].isNull()

Definition at line 311 of file viewpainter.cpp.

void ViewPainter::eraseRect ( int  x1,
int  y1,
int  dx,
int  dy 
)

Definition at line 413 of file viewpainter.cpp.

void ViewPainter::fillRect ( int  x1,
int  y1,
int  dx,
int  dy,
const QColor &  Color 
)

Definition at line 396 of file viewpainter.cpp.

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 36 of file viewpainter.cpp.

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

Definition at line 63 of file viewpainter.cpp.

Field Documentation

float ViewPainter::DX

Definition at line 59 of file viewpainter.h.

float ViewPainter::DY

Definition at line 59 of file viewpainter.h.

float ViewPainter::FontScale

Definition at line 59 of file viewpainter.h.

int ViewPainter::LineSpacing

Definition at line 60 of file viewpainter.h.

QPainter* ViewPainter::Painter

Definition at line 58 of file viewpainter.h.

float ViewPainter::PrintScale

Definition at line 59 of file viewpainter.h.

float ViewPainter::Scale

Definition at line 59 of file viewpainter.h.


The documentation for this class was generated from the following files: