All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.widgets.QGraphicsAnchorLayout Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.widgets;

import io.qt.*;


/**
 * 

Layout where one can anchor widgets together in Graphics View

*

Java wrapper for Qt class QGraphicsAnchorLayout

*/ public class QGraphicsAnchorLayout extends io.qt.widgets.QGraphicsLayout { /** *

See QGraphicsAnchorLayout::QGraphicsAnchorLayout(QGraphicsLayoutItem*)

*/ public QGraphicsAnchorLayout(io.qt.widgets.@Nullable QGraphicsLayoutItem parent){ super((QPrivateConstructor)null); if (parent instanceof QGraphicsWidget) QtJambi_LibraryUtilities.internal.setCppOwnership(this); initialize_native(this, parent); } private native static void initialize_native(QGraphicsAnchorLayout instance, io.qt.widgets.QGraphicsLayoutItem parent); /** *

See QGraphicsAnchorLayout::addAnchor(QGraphicsLayoutItem*,Qt::AnchorPoint,QGraphicsLayoutItem*,Qt::AnchorPoint)

*/ @QtUninvokable public final io.qt.widgets.@Nullable QGraphicsAnchor addAnchor(io.qt.widgets.@Nullable QGraphicsLayoutItem firstItem, io.qt.core.Qt.@NonNull AnchorPoint firstEdge, io.qt.widgets.@Nullable QGraphicsLayoutItem secondItem, io.qt.core.Qt.@NonNull AnchorPoint secondEdge){ io.qt.widgets.@Nullable QGraphicsAnchor __qt_return_value = addAnchor_native_QGraphicsLayoutItem_ptr_Qt_AnchorPoint_QGraphicsLayoutItem_ptr_Qt_AnchorPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(firstItem), firstEdge.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(secondItem), secondEdge.value()); QtJambi_LibraryUtilities.internal.setCppOwnership(firstItem); QtJambi_LibraryUtilities.internal.setCppOwnership(secondItem); return __qt_return_value; } @QtUninvokable private native io.qt.widgets.QGraphicsAnchor addAnchor_native_QGraphicsLayoutItem_ptr_Qt_AnchorPoint_QGraphicsLayoutItem_ptr_Qt_AnchorPoint(long __this__nativeId, long firstItem, int firstEdge, long secondItem, int secondEdge); /** *

See QGraphicsAnchorLayout::addAnchors(QGraphicsLayoutItem*,QGraphicsLayoutItem*,Qt::Orientations)

*/ @QtUninvokable public final void addAnchors(io.qt.widgets.@Nullable QGraphicsLayoutItem firstItem, io.qt.widgets.@Nullable QGraphicsLayoutItem secondItem, io.qt.core.Qt.@NonNull Orientations orientations){ addAnchors_native_QGraphicsLayoutItem_ptr_QGraphicsLayoutItem_ptr_Qt_Orientations(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(firstItem), QtJambi_LibraryUtilities.internal.checkedNativeId(secondItem), orientations.value()); QtJambi_LibraryUtilities.internal.setCppOwnership(firstItem); QtJambi_LibraryUtilities.internal.setCppOwnership(secondItem); } @QtUninvokable private native void addAnchors_native_QGraphicsLayoutItem_ptr_QGraphicsLayoutItem_ptr_Qt_Orientations(long __this__nativeId, long firstItem, long secondItem, int orientations); /** *

See QGraphicsAnchorLayout::addCornerAnchors(QGraphicsLayoutItem*,Qt::Corner,QGraphicsLayoutItem*,Qt::Corner)

*/ @QtUninvokable public final void addCornerAnchors(io.qt.widgets.@Nullable QGraphicsLayoutItem firstItem, io.qt.core.Qt.@NonNull Corner firstCorner, io.qt.widgets.@Nullable QGraphicsLayoutItem secondItem, io.qt.core.Qt.@NonNull Corner secondCorner){ addCornerAnchors_native_QGraphicsLayoutItem_ptr_Qt_Corner_QGraphicsLayoutItem_ptr_Qt_Corner(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(firstItem), firstCorner.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(secondItem), secondCorner.value()); QtJambi_LibraryUtilities.internal.setCppOwnership(firstItem); QtJambi_LibraryUtilities.internal.setCppOwnership(secondItem); } @QtUninvokable private native void addCornerAnchors_native_QGraphicsLayoutItem_ptr_Qt_Corner_QGraphicsLayoutItem_ptr_Qt_Corner(long __this__nativeId, long firstItem, int firstCorner, long secondItem, int secondCorner); /** *

See QGraphicsAnchorLayout::anchor(QGraphicsLayoutItem*,Qt::AnchorPoint,QGraphicsLayoutItem*,Qt::AnchorPoint)

*/ @QtUninvokable public final io.qt.widgets.@Nullable QGraphicsAnchor anchor(io.qt.widgets.@Nullable QGraphicsLayoutItem firstItem, io.qt.core.Qt.@NonNull AnchorPoint firstEdge, io.qt.widgets.@Nullable QGraphicsLayoutItem secondItem, io.qt.core.Qt.@NonNull AnchorPoint secondEdge){ return anchor_native_QGraphicsLayoutItem_ptr_Qt_AnchorPoint_QGraphicsLayoutItem_ptr_Qt_AnchorPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(firstItem), firstEdge.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(secondItem), secondEdge.value()); } @QtUninvokable private native io.qt.widgets.QGraphicsAnchor anchor_native_QGraphicsLayoutItem_ptr_Qt_AnchorPoint_QGraphicsLayoutItem_ptr_Qt_AnchorPoint(long __this__nativeId, long firstItem, int firstEdge, long secondItem, int secondEdge); /** *

See QGraphicsAnchorLayout::horizontalSpacing()const

*/ @QtUninvokable public final double horizontalSpacing(){ return horizontalSpacing_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double horizontalSpacing_native_constfct(long __this__nativeId); /** *

See QGraphicsAnchorLayout::setHorizontalSpacing(qreal)

*/ @QtUninvokable public final void setHorizontalSpacing(double spacing){ setHorizontalSpacing_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), spacing); } @QtUninvokable private native void setHorizontalSpacing_native_qreal(long __this__nativeId, double spacing); /** *

See QGraphicsAnchorLayout::setSpacing(qreal)

*/ @QtUninvokable public final void setSpacing(double spacing){ setSpacing_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), spacing); } @QtUninvokable private native void setSpacing_native_qreal(long __this__nativeId, double spacing); /** *

See QGraphicsAnchorLayout::setVerticalSpacing(qreal)

*/ @QtUninvokable public final void setVerticalSpacing(double spacing){ setVerticalSpacing_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), spacing); } @QtUninvokable private native void setVerticalSpacing_native_qreal(long __this__nativeId, double spacing); /** *

See QGraphicsAnchorLayout::verticalSpacing()const

*/ @QtUninvokable public final double verticalSpacing(){ return verticalSpacing_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double verticalSpacing_native_constfct(long __this__nativeId); /** *

See QGraphicsLayout::count()const

*/ @QtUninvokable @Override public int count(){ return count_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int count_native_constfct(long __this__nativeId); /** *

See QGraphicsLayout::invalidate()

*/ @QtUninvokable @Override public void invalidate(){ invalidate_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void invalidate_native(long __this__nativeId); /** *

See QGraphicsLayout::itemAt(int)const

*/ @QtUninvokable @Override public io.qt.widgets.@Nullable QGraphicsLayoutItem itemAt(int index){ return itemAt_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index); } @QtUninvokable private native io.qt.widgets.QGraphicsLayoutItem itemAt_native_int_constfct(long __this__nativeId, int index); /** *

See QGraphicsLayout::removeAt(int)

*/ @QtUninvokable @Override public void removeAt(int index){ QGraphicsLayoutItem __item = itemAt(index); removeAt_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), index); if(__item != null){ QtJambi_LibraryUtilities.internal.setDefaultOwnership(__item); } } @QtUninvokable private native void removeAt_native_int(long __this__nativeId, int index); /** *

See QGraphicsLayoutItem::setGeometry(QRectF)

*/ @QtUninvokable @Override public void setGeometry(io.qt.core.@NonNull QRectF rect){ setGeometry_native_cref_QRectF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect)); } private native static void setGeometry_native_cref_QRectF(long __this__nativeId, long rect); /** *

See QGraphicsLayoutItem::sizeHint(Qt::SizeHint,QSizeF)const

*/ @QtUninvokable @Override protected io.qt.core.@NonNull QSizeF sizeHint(io.qt.core.Qt.@NonNull SizeHint which, io.qt.core.@NonNull QSizeF constraint){ return sizeHint_native_Qt_SizeHint_cref_QSizeF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), which.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(constraint)); } private native static io.qt.core.QSizeF sizeHint_native_Qt_SizeHint_cref_QSizeF_constfct(long __this__nativeId, int which, long constraint); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QGraphicsAnchorLayout(QPrivateConstructor p) { super(p); } /** *

Overloaded constructor for {@link #QGraphicsAnchorLayout(io.qt.widgets.QGraphicsLayoutItem)} * with parent = null.

*/ public QGraphicsAnchorLayout() { this((io.qt.widgets.QGraphicsLayoutItem)null); } /** *

Overloaded function for {@link #addAnchors(io.qt.widgets.QGraphicsLayoutItem, io.qt.widgets.QGraphicsLayoutItem, io.qt.core.Qt.Orientations)} * with orientations = new io.qt.core.Qt.Orientations(3).

*/ @QtUninvokable public final void addAnchors(io.qt.widgets.@Nullable QGraphicsLayoutItem firstItem, io.qt.widgets.@Nullable QGraphicsLayoutItem secondItem) { addAnchors(firstItem, secondItem, new io.qt.core.Qt.Orientations(3)); } /** *

Overloaded function for {@link #addAnchors(io.qt.widgets.QGraphicsLayoutItem, io.qt.widgets.QGraphicsLayoutItem, io.qt.core.Qt.Orientations)}.

*/ @QtUninvokable public final void addAnchors(io.qt.widgets.@Nullable QGraphicsLayoutItem firstItem, io.qt.widgets.@Nullable QGraphicsLayoutItem secondItem, io.qt.core.Qt.@NonNull Orientation @NonNull... orientations) { addAnchors(firstItem, secondItem, new io.qt.core.Qt.Orientations(orientations)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy