Stellarium 0.15.2
|
Public Types | |
enum | InsetPlacement { ipFree, ipBorderAligned } |
Public Types inherited from QCPLayoutElement | |
enum | UpdatePhase { upPreparation, upMargins, upLayout } |
Public Member Functions | |
InsetPlacement | insetPlacement (int index) const |
Qt::Alignment | insetAlignment (int index) const |
QRectF | insetRect (int index) const |
void | setInsetPlacement (int index, InsetPlacement placement) |
void | setInsetAlignment (int index, Qt::Alignment alignment) |
void | setInsetRect (int index, const QRectF &rect) |
virtual void | updateLayout () |
virtual int | elementCount () const |
virtual QCPLayoutElement * | elementAt (int index) const |
virtual QCPLayoutElement * | takeAt (int index) |
virtual bool | take (QCPLayoutElement *element) |
virtual void | simplify () |
virtual double | selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const |
void | addElement (QCPLayoutElement *element, Qt::Alignment alignment) |
void | addElement (QCPLayoutElement *element, const QRectF &rect) |
Public Member Functions inherited from QCPLayout | |
virtual void | update (UpdatePhase phase) |
virtual QList< QCPLayoutElement * > | elements (bool recursive) const |
bool | removeAt (int index) |
bool | remove (QCPLayoutElement *element) |
void | clear () |
Public Member Functions inherited from QCPLayoutElement | |
QCPLayoutElement (QCustomPlot *parentPlot=0) | |
QCPLayout * | layout () const |
QRect | rect () const |
QRect | outerRect () const |
QMargins | margins () const |
QMargins | minimumMargins () const |
QCP::MarginSides | autoMargins () const |
QSize | minimumSize () const |
QSize | maximumSize () const |
QCPMarginGroup * | marginGroup (QCP::MarginSide side) const |
QHash< QCP::MarginSide, QCPMarginGroup * > | marginGroups () const |
void | setOuterRect (const QRect &rect) |
void | setMargins (const QMargins &margins) |
void | setMinimumMargins (const QMargins &margins) |
void | setAutoMargins (QCP::MarginSides sides) |
void | setMinimumSize (const QSize &size) |
void | setMinimumSize (int width, int height) |
void | setMaximumSize (const QSize &size) |
void | setMaximumSize (int width, int height) |
void | setMarginGroup (QCP::MarginSides sides, QCPMarginGroup *group) |
virtual QSize | minimumSizeHint () const |
virtual QSize | maximumSizeHint () const |
Public Member Functions inherited from QCPLayerable | |
QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0) | |
bool | visible () const |
QCustomPlot * | parentPlot () const |
QCPLayerable * | parentLayerable () const |
QCPLayer * | layer () const |
bool | antialiased () const |
void | setVisible (bool on) |
Q_SLOT bool | setLayer (QCPLayer *layer) |
bool | setLayer (const QString &layerName) |
void | setAntialiased (bool enabled) |
bool | realVisibility () const |
Protected Attributes | |
QList< QCPLayoutElement * > | mElements |
QList< InsetPlacement > | mInsetPlacement |
QList< Qt::Alignment > | mInsetAlignment |
QList< QRectF > | mInsetRect |
Protected Attributes inherited from QCPLayoutElement | |
QCPLayout * | mParentLayout |
QSize | mMinimumSize |
QSize | mMaximumSize |
QRect | mRect |
QRect | mOuterRect |
QMargins | mMargins |
QMargins | mMinimumMargins |
QCP::MarginSides | mAutoMargins |
QHash< QCP::MarginSide, QCPMarginGroup * > | mMarginGroups |
Protected Attributes inherited from QCPLayerable | |
bool | mVisible |
QCustomPlot * | mParentPlot |
QPointer< QCPLayerable > | mParentLayerable |
QCPLayer * | mLayer |
bool | mAntialiased |
Additional Inherited Members | |
Signals inherited from QCPLayerable | |
void | layerChanged (QCPLayer *newLayer) |
Protected Member Functions inherited from QCPLayout | |
void | sizeConstraintsChanged () const |
void | adoptElement (QCPLayoutElement *el) |
void | releaseElement (QCPLayoutElement *el) |
QVector< int > | getSectionSizes (QVector< int > maxSizes, QVector< int > minSizes, QVector< double > stretchFactors, int totalSize) const |
Protected Member Functions inherited from QCPLayoutElement | |
virtual int | calculateAutoMargin (QCP::MarginSide side) |
virtual void | mousePressEvent (QMouseEvent *event) |
virtual void | mouseMoveEvent (QMouseEvent *event) |
virtual void | mouseReleaseEvent (QMouseEvent *event) |
virtual void | mouseDoubleClickEvent (QMouseEvent *event) |
virtual void | wheelEvent (QWheelEvent *event) |
virtual void | applyDefaultAntialiasingHint (QCPPainter *painter) const |
virtual void | draw (QCPPainter *painter) |
virtual void | parentPlotInitialized (QCustomPlot *parentPlot) |
Protected Member Functions inherited from QCPLayerable | |
virtual QCP::Interaction | selectionCategory () const |
virtual QRect | clipRect () const |
virtual void | selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged) |
virtual void | deselectEvent (bool *selectionStateChanged) |
void | initializeParentPlot (QCustomPlot *parentPlot) |
void | setParentLayerable (QCPLayerable *parentLayerable) |
bool | moveToLayer (QCPLayer *layer, bool prepend) |
void | applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const |
Definition at line 823 of file qcustomplot.h.
Defines how the placement and sizing is handled for a certain element in a QCPLayoutInset.
Enumerator | |
---|---|
ipFree |
The element may be positioned/sized arbitrarily, see setInsetRect. |
ipBorderAligned |
The element is aligned to one of the layout sides, see setInsetAlignment. |
Definition at line 830 of file qcustomplot.h.