|
| QCPItemPosition (QCustomPlot *parentPlot, QCPAbstractItem *parentItem, const QString name) |
|
PositionType | type () const |
|
PositionType | typeX () const |
|
PositionType | typeY () const |
|
QCPItemAnchor * | parentAnchor () const |
|
QCPItemAnchor * | parentAnchorX () const |
|
QCPItemAnchor * | parentAnchorY () const |
|
double | key () const |
|
double | value () const |
|
QPointF | coords () const |
|
QCPAxis * | keyAxis () const |
|
QCPAxis * | valueAxis () const |
|
QCPAxisRect * | axisRect () const |
|
virtual QPointF | pixelPoint () const |
|
void | setType (PositionType type) |
|
void | setTypeX (PositionType type) |
|
void | setTypeY (PositionType type) |
|
bool | setParentAnchor (QCPItemAnchor *parentAnchor, bool keepPixelPosition=false) |
|
bool | setParentAnchorX (QCPItemAnchor *parentAnchor, bool keepPixelPosition=false) |
|
bool | setParentAnchorY (QCPItemAnchor *parentAnchor, bool keepPixelPosition=false) |
|
void | setCoords (double key, double value) |
|
void | setCoords (const QPointF &coords) |
|
void | setAxes (QCPAxis *keyAxis, QCPAxis *valueAxis) |
|
void | setAxisRect (QCPAxisRect *axisRect) |
|
void | setPixelPoint (const QPointF &pixelPoint) |
|
| QCPItemAnchor (QCustomPlot *parentPlot, QCPAbstractItem *parentItem, const QString name, int anchorId=-1) |
|
QString | name () const |
|
Definition at line 1540 of file qcustomplot.h.
Defines the ways an item position can be specified. Thus it defines what the numbers passed to setCoords actually mean.
- See also
- setType
Enumerator |
---|
ptAbsolute |
Static positioning in pixels, starting from the top left corner of the viewport/widget.
|
ptViewportRatio |
Static positioning given by a fraction of the viewport size.
For example, if you call setCoords(0, 0), the position will be at the top left corner of the viewport/widget. setCoords(1, 1) will be at the bottom right corner, setCoords(0.5, 0) will be horizontally centered and vertically at the top of the viewport/widget, etc.
|
ptAxisRectRatio |
Static positioning given by a fraction of the axis rect size (see setAxisRect).
For example, if you call setCoords(0, 0), the position will be at the top left corner of the axis rect. setCoords(1, 1) will be at the bottom right corner, setCoords(0.5, 0) will be horizontally centered and vertically at the top of the axis rect, etc. You can also go beyond the axis rect by providing negative coordinates or coordinates larger than 1.
|
ptPlotCoords |
Dynamic positioning at a plot coordinate defined by two axes (see setAxes).
|
Definition at line 1549 of file qcustomplot.h.
The documentation for this class was generated from the following file:
- /home/aw/devel/stellarium/0.15/src/external/qcustomplot/qcustomplot.h