UtiLite
0.3.1
A lite utilities library
|
#include <UPlot.h>
Public Member Functions | |
UPlotAxis (Qt::Orientation orientation=Qt::Horizontal, float min=0, float max=1, QWidget *parent=0) | |
void | setAxis (float &min, float &max) |
int | border () const |
int | step () const |
int | count () const |
void | setReversed (bool reversed) |
The UPlot axis object.
UPlotAxis::UPlotAxis | ( | Qt::Orientation | orientation = Qt::Horizontal , |
float | min = 0 , |
||
float | max = 1 , |
||
QWidget * | parent = 0 |
||
) |
Constructor.
int UPlotAxis::border | ( | ) | const [inline] |
Size of the border between the first line and the beginning of the widget.
int UPlotAxis::count | ( | ) | const [inline] |
Number of intervals.
void UPlotAxis::setAxis | ( | float & | min, |
float & | max | ||
) |
Set axis minimum and maximum values, compute the resulting intervals depending on the size of the axis.
void UPlotAxis::setReversed | ( | bool | reversed | ) |
Reverse the axis (for vertical :bottom->up, for horizontal :right->left)
int UPlotAxis::step | ( | ) | const [inline] |
Interval step value.