liblancelot
NodeLayout.cpp
Go to the documentation of this file.
33 NodeLayout::NodeCoordinate::NodeCoordinate(qreal xRelative, qreal yRelative, qreal xAbsolute, qreal yAbsolute)
214 void NodeLayout::addItem(QGraphicsLayoutItem * item, NodeCoordinate topLeft, NodeCoordinate bottomRight)
L_Override QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint=QSizeF()) const
Definition: NodeLayout.cpp:189
void scale(qreal width, qreal height, Qt::AspectRatioMode mode)
void addItem(QGraphicsLayoutItem *item)
Adds item at top-left corner, with automatic sizing (using sizeHint of the item)
Definition: NodeLayout.cpp:209
QRectF geometry() const
void setRight(qreal x)
NodeLayout(QGraphicsLayoutItem *parent=0)
Creates a new Lancelot::NodeLayout.
Definition: NodeLayout.cpp:179
bool isValid() const
qreal top() const
qreal left() const
void setHeight(qreal height)
static NodeCoordinate simple(qreal x, qreal y, CoordinateType xType=Relative, CoordinateType yType=Relative)
Definition: NodeLayout.cpp:36
QSizeF preferredSize() const
L_Override void setGeometry(const QRectF &rect)
Definition: NodeLayout.cpp:260
QSizeF effectiveSizeHint(Qt::SizeHint which, const QSizeF &constraint) const
void moveLeft(qreal x)
QSizeF boundedTo(const QSizeF &otherSize) const
virtual void updateGeometry()
L_Override QGraphicsLayoutItem * itemAt(int i) const
Definition: NodeLayout.cpp:242
void setTopLeft(const QPointF &position)
qreal width() const
void setBottom(qreal y)
void setWidth(qreal width)
qreal height() const
NodeCoordinate(qreal xRelative=0, qreal yRelative=0, qreal xAbsolute=0, qreal yAbsolute=0)
Position is calculated: x = parentLeft + (xRelative * parentWidth) + xAbsolute y = parentTop + (yRela...
Definition: NodeLayout.cpp:33
qreal height() const
void moveTop(qreal y)
qreal width() const
virtual void setGeometry(const QRectF &rect)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:43:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:43:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.