java.lang.Object
io.qt.QtObject
io.qt.widgets.QGraphicsLayout
io.qt.widgets.QGraphicsAnchorLayout
- All Implemented Interfaces:
QtObjectInterface
,QGraphicsLayoutItem
Layout where one can anchor widgets together in Graphics View
Java wrapper for Qt class QGraphicsAnchorLayout
-
Constructor Summary
ConstructorDescriptionOverloaded constructor forQGraphicsAnchorLayout(io.qt.widgets.QGraphicsLayoutItem)
withparent = null
. -
Method Summary
Modifier and TypeMethodDescriptionfinal QGraphicsAnchor
addAnchor
(QGraphicsLayoutItem firstItem, Qt.AnchorPoint firstEdge, QGraphicsLayoutItem secondItem, Qt.AnchorPoint secondEdge) final void
addAnchors
(QGraphicsLayoutItem firstItem, QGraphicsLayoutItem secondItem) Overloaded function foraddAnchors(io.qt.widgets.QGraphicsLayoutItem, io.qt.widgets.QGraphicsLayoutItem, io.qt.core.Qt.Orientations)
withorientations = new io.qt.core.Qt.Orientations(3)
.final void
addAnchors
(QGraphicsLayoutItem firstItem, QGraphicsLayoutItem secondItem, Qt.Orientation ... orientations) final void
addAnchors
(QGraphicsLayoutItem firstItem, QGraphicsLayoutItem secondItem, Qt.Orientations orientations) final void
addCornerAnchors
(QGraphicsLayoutItem firstItem, Qt.Corner firstCorner, QGraphicsLayoutItem secondItem, Qt.Corner secondCorner) final QGraphicsAnchor
anchor
(QGraphicsLayoutItem firstItem, Qt.AnchorPoint firstEdge, QGraphicsLayoutItem secondItem, Qt.AnchorPoint secondEdge) int
count()
final double
void
itemAt
(int index) void
removeAt
(int index) void
setGeometry
(QRectF rect) final void
setHorizontalSpacing
(double spacing) final void
setSpacing
(double spacing) final void
setVerticalSpacing
(double spacing) protected QSizeF
sizeHint
(Qt.SizeHint which, QSizeF constraint) final double
Methods inherited from class io.qt.widgets.QGraphicsLayout
activate, addChildLayoutItem, contentsRect, effectiveSizeHint, effectiveSizeHint, effectiveSizeHint, geometry, getContentsMargins, graphicsItem, instantInvalidatePropagation, isActivated, isEmpty, isLayout, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, ownedByLayout, parentLayoutItem, preferredHeight, preferredSize, preferredWidth, setContentsMargins, setGeometry, setGraphicsItem, setInstantInvalidatePropagation, setMaximumHeight, setMaximumSize, setMaximumSize, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumSize, setMinimumSize, setMinimumWidth, setOwnedByLayout, setParentLayoutItem, setPreferredHeight, setPreferredSize, setPreferredSize, setPreferredSize, setPreferredWidth, setSizePolicy, setSizePolicy, setSizePolicy, sizeHint, sizeHint, sizePolicy, updateGeometry, widgetEvent
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.qt.widgets.QGraphicsLayoutItem
contentsMargins
Methods inherited from interface io.qt.QtObjectInterface
dispose, isDisposed
-
Constructor Details
-
QGraphicsAnchorLayout
- Parameters:
parent
-
-
QGraphicsAnchorLayout
public QGraphicsAnchorLayout()Overloaded constructor for
QGraphicsAnchorLayout(io.qt.widgets.QGraphicsLayoutItem)
withparent = null
.
-
-
Method Details
-
addAnchor
@QtUninvokable public final QGraphicsAnchor addAnchor(QGraphicsLayoutItem firstItem, Qt.AnchorPoint firstEdge, QGraphicsLayoutItem secondItem, Qt.AnchorPoint secondEdge) - Parameters:
firstItem
-firstEdge
-secondItem
-secondEdge
-- Returns:
-
addAnchors
@QtUninvokable public final void addAnchors(QGraphicsLayoutItem firstItem, QGraphicsLayoutItem secondItem, Qt.Orientations orientations) - Parameters:
firstItem
-secondItem
-orientations
-
-
addCornerAnchors
@QtUninvokable public final void addCornerAnchors(QGraphicsLayoutItem firstItem, Qt.Corner firstCorner, QGraphicsLayoutItem secondItem, Qt.Corner secondCorner) - Parameters:
firstItem
-firstCorner
-secondItem
-secondCorner
-
-
anchor
@QtUninvokable public final QGraphicsAnchor anchor(QGraphicsLayoutItem firstItem, Qt.AnchorPoint firstEdge, QGraphicsLayoutItem secondItem, Qt.AnchorPoint secondEdge) - Parameters:
firstItem
-firstEdge
-secondItem
-secondEdge
-- Returns:
-
horizontalSpacing
- Returns:
-
setHorizontalSpacing
- Parameters:
spacing
-
-
setSpacing
- Parameters:
spacing
-
-
setVerticalSpacing
- Parameters:
spacing
-
-
verticalSpacing
- Returns:
-
count
- Specified by:
count
in classQGraphicsLayout
- Returns:
-
invalidate
- Overrides:
invalidate
in classQGraphicsLayout
-
itemAt
- Specified by:
itemAt
in classQGraphicsLayout
- Parameters:
index
-- Returns:
-
removeAt
- Specified by:
removeAt
in classQGraphicsLayout
- Parameters:
index
-
-
setGeometry
- Specified by:
setGeometry
in interfaceQGraphicsLayoutItem
- Overrides:
setGeometry
in classQGraphicsLayout
- Parameters:
rect
-
-
sizeHint
- Specified by:
sizeHint
in classQGraphicsLayout
- Parameters:
which
-constraint
-- Returns:
-
addAnchors
@QtUninvokable public final void addAnchors(QGraphicsLayoutItem firstItem, QGraphicsLayoutItem secondItem) Overloaded function for
addAnchors(io.qt.widgets.QGraphicsLayoutItem, io.qt.widgets.QGraphicsLayoutItem, io.qt.core.Qt.Orientations)
withorientations = new io.qt.core.Qt.Orientations(3)
. -
addAnchors
@QtUninvokable public final void addAnchors(QGraphicsLayoutItem firstItem, QGraphicsLayoutItem secondItem, Qt.Orientation ... orientations)
-