ifw
0.0.1-dev
|
A layout that places child elements aligned to the border or arbitrarily positioned. More...
#include <qcustomplot.h>
Protected Attributes | |
QList< QCPLayoutElement * > | mElements |
QList< InsetPlacement > | mInsetPlacement |
QList< Qt::Alignment > | mInsetAlignment |
QList< QRectF > | mInsetRect |
![]() | |
QCPLayout * | mParentLayout |
QSize | mMinimumSize |
QSize | mMaximumSize |
SizeConstraintRect | mSizeConstraintRect |
QRect | mRect |
QRect | mOuterRect |
QMargins | mMargins |
QMargins | mMinimumMargins |
QCP::MarginSides | mAutoMargins |
QHash< QCP::MarginSide, QCPMarginGroup * > | mMarginGroups |
![]() | |
bool | mVisible |
QCustomPlot * | mParentPlot |
QPointer< QCPLayerable > | mParentLayerable |
QCPLayer * | mLayer |
bool | mAntialiased |
Additional Inherited Members | |
![]() | |
void | layerChanged (QCPLayer *newLayer) |
void | layerChanged (QCPLayer *newLayer) |
void | layerChanged (QCPLayer *newLayer) |
void | layerChanged (QCPLayer *newLayer) |
void | layerChanged (QCPLayer *newLayer) |
![]() | |
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 |
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 |
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 |
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 |
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 |
![]() | |
virtual int | calculateAutoMargin (QCP::MarginSide side) |
virtual void | layoutChanged () |
virtual void | applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE |
virtual void | draw (QCPPainter *painter) Q_DECL_OVERRIDE |
virtual void | parentPlotInitialized (QCustomPlot *parentPlot) Q_DECL_OVERRIDE |
virtual int | calculateAutoMargin (QCP::MarginSide side) |
virtual void | layoutChanged () |
virtual void | applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE |
virtual void | draw (QCPPainter *painter) Q_DECL_OVERRIDE |
virtual void | parentPlotInitialized (QCustomPlot *parentPlot) Q_DECL_OVERRIDE |
virtual int | calculateAutoMargin (QCP::MarginSide side) |
virtual void | layoutChanged () |
virtual void | applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE |
virtual void | draw (QCPPainter *painter) Q_DECL_OVERRIDE |
virtual void | parentPlotInitialized (QCustomPlot *parentPlot) Q_DECL_OVERRIDE |
virtual int | calculateAutoMargin (QCP::MarginSide side) |
virtual void | layoutChanged () |
virtual void | applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE |
virtual void | draw (QCPPainter *painter) Q_DECL_OVERRIDE |
virtual void | parentPlotInitialized (QCustomPlot *parentPlot) Q_DECL_OVERRIDE |
virtual int | calculateAutoMargin (QCP::MarginSide side) |
virtual void | layoutChanged () |
virtual void | applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE |
virtual void | draw (QCPPainter *painter) Q_DECL_OVERRIDE |
virtual void | parentPlotInitialized (QCustomPlot *parentPlot) Q_DECL_OVERRIDE |
![]() | |
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) |
virtual void | mousePressEvent (QMouseEvent *event, const QVariant &details) |
virtual void | mouseMoveEvent (QMouseEvent *event, const QPointF &startPos) |
virtual void | mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos) |
virtual void | mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details) |
virtual void | wheelEvent (QWheelEvent *event) |
void | initializeParentPlot (QCustomPlot *parentPlot) |
void | setParentLayerable (QCPLayerable *parentLayerable) |
bool | moveToLayer (QCPLayer *layer, bool prepend) |
void | applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const |
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) |
virtual void | mousePressEvent (QMouseEvent *event, const QVariant &details) |
virtual void | mouseMoveEvent (QMouseEvent *event, const QPointF &startPos) |
virtual void | mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos) |
virtual void | mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details) |
virtual void | wheelEvent (QWheelEvent *event) |
void | initializeParentPlot (QCustomPlot *parentPlot) |
void | setParentLayerable (QCPLayerable *parentLayerable) |
bool | moveToLayer (QCPLayer *layer, bool prepend) |
void | applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const |
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) |
virtual void | mousePressEvent (QMouseEvent *event, const QVariant &details) |
virtual void | mouseMoveEvent (QMouseEvent *event, const QPointF &startPos) |
virtual void | mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos) |
virtual void | mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details) |
virtual void | wheelEvent (QWheelEvent *event) |
void | initializeParentPlot (QCustomPlot *parentPlot) |
void | setParentLayerable (QCPLayerable *parentLayerable) |
bool | moveToLayer (QCPLayer *layer, bool prepend) |
void | applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const |
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) |
virtual void | mousePressEvent (QMouseEvent *event, const QVariant &details) |
virtual void | mouseMoveEvent (QMouseEvent *event, const QPointF &startPos) |
virtual void | mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos) |
virtual void | mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details) |
virtual void | wheelEvent (QWheelEvent *event) |
void | initializeParentPlot (QCustomPlot *parentPlot) |
void | setParentLayerable (QCPLayerable *parentLayerable) |
bool | moveToLayer (QCPLayer *layer, bool prepend) |
void | applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const |
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) |
virtual void | mousePressEvent (QMouseEvent *event, const QVariant &details) |
virtual void | mouseMoveEvent (QMouseEvent *event, const QPointF &startPos) |
virtual void | mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos) |
virtual void | mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details) |
virtual void | wheelEvent (QWheelEvent *event) |
void | initializeParentPlot (QCustomPlot *parentPlot) |
void | setParentLayerable (QCPLayerable *parentLayerable) |
bool | moveToLayer (QCPLayer *layer, bool prepend) |
void | applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const |
![]() | |
static QSize | getFinalMinimumOuterSize (const QCPLayoutElement *el) |
static QSize | getFinalMaximumOuterSize (const QCPLayoutElement *el) |
static QSize | getFinalMinimumOuterSize (const QCPLayoutElement *el) |
static QSize | getFinalMaximumOuterSize (const QCPLayoutElement *el) |
static QSize | getFinalMinimumOuterSize (const QCPLayoutElement *el) |
static QSize | getFinalMaximumOuterSize (const QCPLayoutElement *el) |
static QSize | getFinalMinimumOuterSize (const QCPLayoutElement *el) |
static QSize | getFinalMaximumOuterSize (const QCPLayoutElement *el) |
static QSize | getFinalMinimumOuterSize (const QCPLayoutElement *el) |
static QSize | getFinalMaximumOuterSize (const QCPLayoutElement *el) |
A layout that places child elements aligned to the border or arbitrarily positioned.
Elements are placed either aligned to the border or at arbitrary position in the area of the layout. Which placement applies is controlled with the InsetPlacement (setInsetPlacement).
Elements are added via addElement(QCPLayoutElement *element, Qt::Alignment alignment) or addElement(QCPLayoutElement *element, const QRectF &rect). If the first method is used, the inset placement will default to ipBorderAligned and the element will be aligned according to the alignment parameter. The second method defaults to ipFree and allows placing elements at arbitrary position and size, defined by rect.
The alignment or rect can be set via setInsetAlignment or setInsetRect, respectively.
This is the layout that every QCPAxisRect has as QCPAxisRect::insetLayout.
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. |
ipFree |
The element may be positioned/sized arbitrarily, see setInsetRect. |
ipBorderAligned |
The element is aligned to one of the layout sides, see setInsetAlignment. |
ipFree |
The element may be positioned/sized arbitrarily, see setInsetRect. |
ipBorderAligned |
The element is aligned to one of the layout sides, see setInsetAlignment. |
ipFree |
The element may be positioned/sized arbitrarily, see setInsetRect. |
ipBorderAligned |
The element is aligned to one of the layout sides, see setInsetAlignment. |
ipFree |
The element may be positioned/sized arbitrarily, see setInsetRect. |
ipBorderAligned |
The element is aligned to one of the layout sides, see setInsetAlignment. |
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. |
ipFree |
The element may be positioned/sized arbitrarily, see setInsetRect. |
ipBorderAligned |
The element is aligned to one of the layout sides, see setInsetAlignment. |
ipFree |
The element may be positioned/sized arbitrarily, see setInsetRect. |
ipBorderAligned |
The element is aligned to one of the layout sides, see setInsetAlignment. |
ipFree |
The element may be positioned/sized arbitrarily, see setInsetRect. |
ipBorderAligned |
The element is aligned to one of the layout sides, see setInsetAlignment. |
ipFree |
The element may be positioned/sized arbitrarily, see setInsetRect. |
ipBorderAligned |
The element is aligned to one of the layout sides, see setInsetAlignment. |
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. |
ipFree |
The element may be positioned/sized arbitrarily, see setInsetRect. |
ipBorderAligned |
The element is aligned to one of the layout sides, see setInsetAlignment. |
ipFree |
The element may be positioned/sized arbitrarily, see setInsetRect. |
ipBorderAligned |
The element is aligned to one of the layout sides, see setInsetAlignment. |
ipFree |
The element may be positioned/sized arbitrarily, see setInsetRect. |
ipBorderAligned |
The element is aligned to one of the layout sides, see setInsetAlignment. |
ipFree |
The element may be positioned/sized arbitrarily, see setInsetRect. |
ipBorderAligned |
The element is aligned to one of the layout sides, see setInsetAlignment. |
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. |
ipFree |
The element may be positioned/sized arbitrarily, see setInsetRect. |
ipBorderAligned |
The element is aligned to one of the layout sides, see setInsetAlignment. |
ipFree |
The element may be positioned/sized arbitrarily, see setInsetRect. |
ipBorderAligned |
The element is aligned to one of the layout sides, see setInsetAlignment. |
ipFree |
The element may be positioned/sized arbitrarily, see setInsetRect. |
ipBorderAligned |
The element is aligned to one of the layout sides, see setInsetAlignment. |
ipFree |
The element may be positioned/sized arbitrarily, see setInsetRect. |
ipBorderAligned |
The element is aligned to one of the layout sides, see setInsetAlignment. |
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. |
ipFree |
The element may be positioned/sized arbitrarily, see setInsetRect. |
ipBorderAligned |
The element is aligned to one of the layout sides, see setInsetAlignment. |
ipFree |
The element may be positioned/sized arbitrarily, see setInsetRect. |
ipBorderAligned |
The element is aligned to one of the layout sides, see setInsetAlignment. |
ipFree |
The element may be positioned/sized arbitrarily, see setInsetRect. |
ipBorderAligned |
The element is aligned to one of the layout sides, see setInsetAlignment. |
ipFree |
The element may be positioned/sized arbitrarily, see setInsetRect. |
ipBorderAligned |
The element is aligned to one of the layout sides, see setInsetAlignment. |
|
explicit |
Creates an instance of QCPLayoutInset and sets default values.
|
virtual |
|
explicit |
|
virtual |
|
explicit |
|
virtual |
|
explicit |
|
virtual |
|
explicit |
|
virtual |
void QCPLayoutInset::addElement | ( | QCPLayoutElement * | element, |
Qt::Alignment | alignment | ||
) |
Adds the specified element to the layout as an inset aligned at the border (setInsetAlignment is initialized with ipBorderAligned). The alignment is set to alignment.
alignment is an or combination of the following alignment flags: Qt::AlignLeft, Qt::AlignHCenter, Qt::AlighRight, Qt::AlignTop, Qt::AlignVCenter, Qt::AlignBottom. Any other alignment flags will be ignored.
void QCPLayoutInset::addElement | ( | QCPLayoutElement * | element, |
Qt::Alignment | alignment | ||
) |
void QCPLayoutInset::addElement | ( | QCPLayoutElement * | element, |
Qt::Alignment | alignment | ||
) |
void QCPLayoutInset::addElement | ( | QCPLayoutElement * | element, |
Qt::Alignment | alignment | ||
) |
void QCPLayoutInset::addElement | ( | QCPLayoutElement * | element, |
Qt::Alignment | alignment | ||
) |
void QCPLayoutInset::addElement | ( | QCPLayoutElement * | element, |
const QRectF & | rect | ||
) |
void QCPLayoutInset::addElement | ( | QCPLayoutElement * | element, |
const QRectF & | rect | ||
) |
void QCPLayoutInset::addElement | ( | QCPLayoutElement * | element, |
const QRectF & | rect | ||
) |
Adds the specified element to the layout as an inset with free positioning/sizing (setInsetAlignment is initialized with ipFree). The position and size is set to rect.
rect is given in fractions of the whole inset layout rect. So an inset with rect (0, 0, 1, 1) will span the entire layout. An inset with rect (0.6, 0.1, 0.35, 0.35) will be in the top right corner of the layout, with 35% width and height of the parent layout.
void QCPLayoutInset::addElement | ( | QCPLayoutElement * | element, |
const QRectF & | rect | ||
) |
void QCPLayoutInset::addElement | ( | QCPLayoutElement * | element, |
const QRectF & | rect | ||
) |
|
virtual |
Returns the element in the cell with the given index. If index is invalid, returns 0.
Note that even if index is valid, the respective cell may be empty in some layouts (e.g. QCPLayoutGrid), so this function may return 0 in those cases. You may use this function to check whether a cell is empty or not.
Implements QCPLayout.
|
virtual |
Returns the element in the cell with the given index. If index is invalid, returns 0.
Note that even if index is valid, the respective cell may be empty in some layouts (e.g. QCPLayoutGrid), so this function may return 0 in those cases. You may use this function to check whether a cell is empty or not.
Implements QCPLayout.
|
virtual |
Returns the element in the cell with the given index. If index is invalid, returns 0.
Note that even if index is valid, the respective cell may be empty in some layouts (e.g. QCPLayoutGrid), so this function may return 0 in those cases. You may use this function to check whether a cell is empty or not.
Implements QCPLayout.
|
virtual |
Returns the element in the cell with the given index. If index is invalid, returns 0.
Note that even if index is valid, the respective cell may be empty in some layouts (e.g. QCPLayoutGrid), so this function may return 0 in those cases. You may use this function to check whether a cell is empty or not.
Implements QCPLayout.
|
virtual |
Returns the element in the cell with the given index. If index is invalid, returns 0.
Note that even if index is valid, the respective cell may be empty in some layouts (e.g. QCPLayoutGrid), so this function may return 0 in those cases. You may use this function to check whether a cell is empty or not.
Implements QCPLayout.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Qt::Alignment QCPLayoutInset::insetAlignment | ( | int | index | ) | const |
Qt::Alignment QCPLayoutInset::insetAlignment | ( | int | index | ) | const |
Qt::Alignment QCPLayoutInset::insetAlignment | ( | int | index | ) | const |
Returns the alignment of the element with the specified index. The alignment only has a meaning, if the inset placement (setInsetPlacement) is ipBorderAligned.
Qt::Alignment QCPLayoutInset::insetAlignment | ( | int | index | ) | const |
Qt::Alignment QCPLayoutInset::insetAlignment | ( | int | index | ) | const |
InsetPlacement QCPLayoutInset::insetPlacement | ( | int | index | ) | const |
QCPLayoutInset::InsetPlacement QCPLayoutInset::insetPlacement | ( | int | index | ) | const |
Returns the placement type of the element with the specified index.
InsetPlacement QCPLayoutInset::insetPlacement | ( | int | index | ) | const |
InsetPlacement QCPLayoutInset::insetPlacement | ( | int | index | ) | const |
InsetPlacement QCPLayoutInset::insetPlacement | ( | int | index | ) | const |
QRectF QCPLayoutInset::insetRect | ( | int | index | ) | const |
QRectF QCPLayoutInset::insetRect | ( | int | index | ) | const |
Returns the rect of the element with the specified index. The rect only has a meaning, if the inset placement (setInsetPlacement) is ipFree.
QRectF QCPLayoutInset::insetRect | ( | int | index | ) | const |
QRectF QCPLayoutInset::insetRect | ( | int | index | ) | const |
QRectF QCPLayoutInset::insetRect | ( | int | index | ) | const |
|
virtual |
Layout elements are sensitive to events inside their outer rect. If pos is within the outer rect, this method returns a value corresponding to 0.99 times the parent plot's selection tolerance. However, layout elements are not selectable by default. So if onlySelectable is true, -1.0 is returned.
See QCPLayerable::selectTest for a general explanation of this virtual method.
QCPLayoutElement subclasses may reimplement this method to provide more specific selection test behaviour.
Reimplemented from QCPLayoutElement.
|
virtual |
Layout elements are sensitive to events inside their outer rect. If pos is within the outer rect, this method returns a value corresponding to 0.99 times the parent plot's selection tolerance. However, layout elements are not selectable by default. So if onlySelectable is true, -1.0 is returned.
See QCPLayerable::selectTest for a general explanation of this virtual method.
QCPLayoutElement subclasses may reimplement this method to provide more specific selection test behaviour.
Reimplemented from QCPLayoutElement.
|
virtual |
The inset layout is sensitive to events only at areas where its (visible) child elements are sensitive. If the selectTest method of any of the child elements returns a positive number for pos, this method returns a value corresponding to 0.99 times the parent plot's selection tolerance. The inset layout is not selectable itself by default. So if onlySelectable is true, -1.0 is returned.
See QCPLayerable::selectTest for a general explanation of this virtual method.
Reimplemented from QCPLayoutElement.
|
virtual |
Layout elements are sensitive to events inside their outer rect. If pos is within the outer rect, this method returns a value corresponding to 0.99 times the parent plot's selection tolerance. However, layout elements are not selectable by default. So if onlySelectable is true, -1.0 is returned.
See QCPLayerable::selectTest for a general explanation of this virtual method.
QCPLayoutElement subclasses may reimplement this method to provide more specific selection test behaviour.
Reimplemented from QCPLayoutElement.
|
virtual |
Layout elements are sensitive to events inside their outer rect. If pos is within the outer rect, this method returns a value corresponding to 0.99 times the parent plot's selection tolerance. However, layout elements are not selectable by default. So if onlySelectable is true, -1.0 is returned.
See QCPLayerable::selectTest for a general explanation of this virtual method.
QCPLayoutElement subclasses may reimplement this method to provide more specific selection test behaviour.
Reimplemented from QCPLayoutElement.
void QCPLayoutInset::setInsetAlignment | ( | int | index, |
Qt::Alignment | alignment | ||
) |
void QCPLayoutInset::setInsetAlignment | ( | int | index, |
Qt::Alignment | alignment | ||
) |
void QCPLayoutInset::setInsetAlignment | ( | int | index, |
Qt::Alignment | alignment | ||
) |
void QCPLayoutInset::setInsetAlignment | ( | int | index, |
Qt::Alignment | alignment | ||
) |
If the inset placement (setInsetPlacement) is ipBorderAligned, this function is used to set the alignment of the element with the specified index to alignment.
alignment is an or combination of the following alignment flags: Qt::AlignLeft, Qt::AlignHCenter, Qt::AlighRight, Qt::AlignTop, Qt::AlignVCenter, Qt::AlignBottom. Any other alignment flags will be ignored.
void QCPLayoutInset::setInsetAlignment | ( | int | index, |
Qt::Alignment | alignment | ||
) |
void QCPLayoutInset::setInsetPlacement | ( | int | index, |
QCPLayoutInset::InsetPlacement | placement | ||
) |
Sets the inset placement type of the element with the specified index to placement.
void QCPLayoutInset::setInsetPlacement | ( | int | index, |
InsetPlacement | placement | ||
) |
void QCPLayoutInset::setInsetPlacement | ( | int | index, |
InsetPlacement | placement | ||
) |
void QCPLayoutInset::setInsetPlacement | ( | int | index, |
InsetPlacement | placement | ||
) |
void QCPLayoutInset::setInsetPlacement | ( | int | index, |
InsetPlacement | placement | ||
) |
void QCPLayoutInset::setInsetRect | ( | int | index, |
const QRectF & | rect | ||
) |
void QCPLayoutInset::setInsetRect | ( | int | index, |
const QRectF & | rect | ||
) |
void QCPLayoutInset::setInsetRect | ( | int | index, |
const QRectF & | rect | ||
) |
void QCPLayoutInset::setInsetRect | ( | int | index, |
const QRectF & | rect | ||
) |
void QCPLayoutInset::setInsetRect | ( | int | index, |
const QRectF & | rect | ||
) |
If the inset placement (setInsetPlacement) is ipFree, this function is used to set the position and size of the element with the specified index to rect.
rect is given in fractions of the whole inset layout rect. So an inset with rect (0, 0, 1, 1) will span the entire layout. An inset with rect (0.6, 0.1, 0.35, 0.35) will be in the top right corner of the layout, with 35% width and height of the parent layout.
Note that the minimum and maximum sizes of the embedded element (QCPLayoutElement::setMinimumSize, QCPLayoutElement::setMaximumSize) are enforced.
|
inlinevirtual |
Simplifies the layout by collapsing empty cells. The exact behavior depends on subclasses, the default implementation does nothing.
Not all layouts need simplification. For example, QCPLayoutInset doesn't use explicit simplification while QCPLayoutGrid does.
Reimplemented from QCPLayout.
|
inlinevirtual |
Simplifies the layout by collapsing empty cells. The exact behavior depends on subclasses, the default implementation does nothing.
Not all layouts need simplification. For example, QCPLayoutInset doesn't use explicit simplification while QCPLayoutGrid does.
Reimplemented from QCPLayout.
|
inlinevirtual |
Simplifies the layout by collapsing empty cells. The exact behavior depends on subclasses, the default implementation does nothing.
Not all layouts need simplification. For example, QCPLayoutInset doesn't use explicit simplification while QCPLayoutGrid does.
Reimplemented from QCPLayout.
|
inlinevirtual |
Simplifies the layout by collapsing empty cells. The exact behavior depends on subclasses, the default implementation does nothing.
Not all layouts need simplification. For example, QCPLayoutInset doesn't use explicit simplification while QCPLayoutGrid does.
Reimplemented from QCPLayout.
|
inlinevirtual |
The QCPInsetLayout does not need simplification since it can never have empty cells due to its linear index structure. This method does nothing.
Reimplemented from QCPLayout.
|
virtual |
Removes the specified element from the layout and returns true on success.
If the element isn't in this layout, returns false.
Note that some layouts don't remove the respective cell right away but leave an empty cell after successful removal of the layout element. To collapse empty cells, use simplify.
Implements QCPLayout.
|
virtual |
Removes the specified element from the layout and returns true on success.
If the element isn't in this layout, returns false.
Note that some layouts don't remove the respective cell right away but leave an empty cell after successful removal of the layout element. To collapse empty cells, use simplify.
Implements QCPLayout.
|
virtual |
Removes the specified element from the layout and returns true on success.
If the element isn't in this layout, returns false.
Note that some layouts don't remove the respective cell right away but leave an empty cell after successful removal of the layout element. To collapse empty cells, use simplify.
Implements QCPLayout.
|
virtual |
Removes the specified element from the layout and returns true on success.
If the element isn't in this layout, returns false.
Note that some layouts don't remove the respective cell right away but leave an empty cell after successful removal of the layout element. To collapse empty cells, use simplify.
Implements QCPLayout.
|
virtual |
Removes the specified element from the layout and returns true on success.
If the element isn't in this layout, returns false.
Note that some layouts don't remove the respective cell right away but leave an empty cell after successful removal of the layout element. To collapse empty cells, use simplify.
Implements QCPLayout.
|
virtual |
Removes the element with the given index from the layout and returns it.
If the index is invalid or the cell with that index is empty, returns 0.
Note that some layouts don't remove the respective cell right away but leave an empty cell after successful removal of the layout element. To collapse empty cells, use simplify.
Implements QCPLayout.
|
virtual |
Removes the element with the given index from the layout and returns it.
If the index is invalid or the cell with that index is empty, returns 0.
Note that some layouts don't remove the respective cell right away but leave an empty cell after successful removal of the layout element. To collapse empty cells, use simplify.
Implements QCPLayout.
|
virtual |
Removes the element with the given index from the layout and returns it.
If the index is invalid or the cell with that index is empty, returns 0.
Note that some layouts don't remove the respective cell right away but leave an empty cell after successful removal of the layout element. To collapse empty cells, use simplify.
Implements QCPLayout.
|
virtual |
Removes the element with the given index from the layout and returns it.
If the index is invalid or the cell with that index is empty, returns 0.
Note that some layouts don't remove the respective cell right away but leave an empty cell after successful removal of the layout element. To collapse empty cells, use simplify.
Implements QCPLayout.
|
virtual |
Removes the element with the given index from the layout and returns it.
If the index is invalid or the cell with that index is empty, returns 0.
Note that some layouts don't remove the respective cell right away but leave an empty cell after successful removal of the layout element. To collapse empty cells, use simplify.
Implements QCPLayout.
|
virtual |
Reimplemented from QCPLayout.
|
virtual |
Reimplemented from QCPLayout.
|
virtual |
Reimplemented from QCPLayout.
|
virtual |
Reimplemented from QCPLayout.
|
virtual |
Reimplemented from QCPLayout.
|
protected |
|
protected |
|
protected |
|
protected |