#include <nightcharts.h>

Public Types

enum  type { Histogramm , Pie , Dpie }
 
enum  legend_type { Vertical , Round }
 

Public Member Functions

 Nightcharts ()
 
 ~Nightcharts ()
 
int addPiece (QString name, Qt::GlobalColor, float Percentage)
 
int addPiece (QString name, QColor, float Percentage)
 
int setCords (double x, double y, double w, double h)
 
int setLegendCords (double x, double y)
 
int setType (Nightcharts::type t)
 
int setLegendType (Nightcharts::legend_type t)
 
int setShadows (bool ok=true)
 
int setFont (QFont f)
 
int draw (QPainter *painter)
 
void drawLegend (QPainter *painter)
 
int pieceCount () const
 
void setTextColor (const QColor &color)
 

Public Attributes

double palpha
 

Member Enumeration Documentation

◆ legend_type

Enumerator
Vertical 
Round 

◆ type

Enumerator
Histogramm 
Pie 
Dpie 

Constructor & Destructor Documentation

◆ Nightcharts()

Nightcharts::Nightcharts ( )
explicit

◆ ~Nightcharts()

Nightcharts::~Nightcharts ( )

Member Function Documentation

◆ addPiece() [1/2]

int Nightcharts::addPiece ( QString  name,
QColor  ,
float  Percentage 
)

◆ addPiece() [2/2]

int Nightcharts::addPiece ( QString  name,
Qt::GlobalColor  ,
float  Percentage 
)

◆ draw()

int Nightcharts::draw ( QPainter *  painter)

◆ drawLegend()

void Nightcharts::drawLegend ( QPainter *  painter)

◆ pieceCount()

int Nightcharts::pieceCount ( ) const

◆ setCords()

int Nightcharts::setCords ( double  x,
double  y,
double  w,
double  h 
)

◆ setFont()

int Nightcharts::setFont ( QFont  f)

◆ setLegendCords()

int Nightcharts::setLegendCords ( double  x,
double  y 
)

◆ setLegendType()

int Nightcharts::setLegendType ( Nightcharts::legend_type  t)

◆ setShadows()

int Nightcharts::setShadows ( bool  ok = true)

◆ setTextColor()

void Nightcharts::setTextColor ( const QColor &  color)

◆ setType()

int Nightcharts::setType ( Nightcharts::type  t)

Member Data Documentation

◆ palpha

double Nightcharts::palpha

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