Axis decorator primitive. It is shared between gauge and chart objects. Overriden members description see Decorator class documentation.
More...
#include <DecoratorPrimitives.h>
|
| DecoratorAxis (Orientation orientation, uint8_t *font, int length, float minValue, float maxValue, int nTicks) |
| Constructor. More...
|
|
void | SetOffset (int offsetX, int offsetY) |
| Sets decorator offset in the parent window coordinate system.
|
|
void | GetMinMax (float &minVal, float &maxVal) |
| Return min and max label values.
|
|
void | SetMinMax (float minVal, float maxVal) |
| Sets min and max for label values.
|
|
int | GetLength () |
| Returns axis length.
|
|
Orientation | Orientation () |
|
int | EstimateLeft (DC *dc) |
| Estimates decorator left coordinate.
|
|
int | EstimateRight (DC *dc) |
| Estimates decorator right coordinate.
|
|
int | EstimateTop (DC *dc) |
| Estimates decorator top coordinate.
|
|
int | EstimateBottom (DC *dc) |
| Estimates decorator bottom coordinate.
|
|
void | Draw (DC *dc, int left, int top, int width, int height) |
| Drawing code implementation. More...
|
|
Axis decorator primitive. It is shared between gauge and chart objects. Overriden members description see Decorator class documentation.
Enumerator |
---|
HorizontalTop |
Not implemented yet.
|
HorizontalBottom |
Not implemented yet.
|
VerticalLeft |
Vertcal axis with the labels left to the axis.
|
VerticalRight |
Vertcal axis with the labels right to the axis.
|
DecoratorAxis::DecoratorAxis |
( |
Orientation |
orientation, |
|
|
uint8_t * |
font, |
|
|
int |
length, |
|
|
float |
minValue, |
|
|
float |
maxValue, |
|
|
int |
nTicks |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
orientation | axis orientation |
font | labels font |
length | length of axis |
minValue | min value |
maxValue | max value |
nTicks | number of short line perpendicular to the axis |
void DecoratorAxis::Draw |
( |
DC * |
dc, |
|
|
int |
left, |
|
|
int |
top, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
inlinevirtual |
Drawing code implementation.
- Parameters
-
Implements Decorator.
The documentation for this class was generated from the following file: