trikRuntime
trikControl::Arc Class Reference

Presents an arc to draw on display. More...

#include <arc.h>

Inheritance diagram for trikControl::Arc:
Collaboration diagram for trikControl::Arc:

Public Member Functions

 Arc (int x, int y, int width, int height, int startAngle, int spanAngle, QColor color, int penWidth)
 Arc in rectangle defined by (x,y,width,height), with given start and span angles. More...
 
void draw (QPainter *painter) override
 Draws a shape with a given painter. More...
 
bool equals (const Shape *other) const override
 Checks whether to shapes are equal. More...
 
- Public Member Functions inherited from trikControl::Shape
 Shape (const QColor &color, int penWidth)
 
virtual ~Shape ()=default
 

Additional Inherited Members

- Protected Attributes inherited from trikControl::Shape
QColor mColor
 
int mPenWidth
 

Detailed Description

Presents an arc to draw on display.

Constructor & Destructor Documentation

Arc::Arc ( int  x,
int  y,
int  width,
int  height,
int  startAngle,
int  spanAngle,
QColor  color,
int  penWidth 
)

Arc in rectangle defined by (x,y,width,height), with given start and span angles.

Member Function Documentation

void Arc::draw ( QPainter *  painter)
overridevirtual

Draws a shape with a given painter.

Implements trikControl::Shape.

bool Arc::equals ( const Shape other) const
overridevirtual

Checks whether to shapes are equal.

Implements trikControl::Shape.


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