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

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

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

import io.qt.*;


/**
 * 

Horizontal or vertical layout for managing widgets in Graphics View

*

Java wrapper for Qt class QGraphicsLinearLayout

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

See QGraphicsLinearLayout::QGraphicsLinearLayout(QGraphicsLayoutItem*)

*/ public QGraphicsLinearLayout(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(QGraphicsLinearLayout instance, io.qt.widgets.QGraphicsLayoutItem parent); /** *

See QGraphicsLinearLayout::QGraphicsLinearLayout(Qt::Orientation,QGraphicsLayoutItem*)

*/ public QGraphicsLinearLayout(io.qt.core.Qt.@NonNull Orientation orientation, io.qt.widgets.@Nullable QGraphicsLayoutItem parent){ super((QPrivateConstructor)null); initialize_native(this, orientation, parent); } private native static void initialize_native(QGraphicsLinearLayout instance, io.qt.core.Qt.Orientation orientation, io.qt.widgets.QGraphicsLayoutItem parent); /** *

See QGraphicsLinearLayout::addItem(QGraphicsLayoutItem*)

*/ @QtUninvokable public final void addItem(io.qt.widgets.@Nullable QGraphicsLayoutItem item){ addItem_native_QGraphicsLayoutItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item)); QtJambi_LibraryUtilities.internal.setCppOwnership(item); } @QtUninvokable private native void addItem_native_QGraphicsLayoutItem_ptr(long __this__nativeId, long item); /** *

See QGraphicsLinearLayout::addStretch(int)

*/ @QtUninvokable public final void addStretch(int stretch){ addStretch_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), stretch); } @QtUninvokable private native void addStretch_native_int(long __this__nativeId, int stretch); /** *

See QGraphicsLinearLayout::alignment(QGraphicsLayoutItem*)const

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull Alignment alignment(io.qt.widgets.@Nullable QGraphicsLayoutItem item){ return new io.qt.core.Qt.Alignment(alignment_native_QGraphicsLayoutItem_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item))); } @QtUninvokable private native int alignment_native_QGraphicsLayoutItem_ptr_constfct(long __this__nativeId, long item); /** *

See QGraphicsLinearLayout::dump(int)const

*/ @QtUninvokable public final void dump(int indent){ dump_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), indent); } @QtUninvokable private native void dump_native_int_constfct(long __this__nativeId, int indent); /** *

See QGraphicsLinearLayout::insertItem(int,QGraphicsLayoutItem*)

*/ @QtUninvokable public final void insertItem(int index, io.qt.widgets.@Nullable QGraphicsLayoutItem item){ insertItem_native_int_QGraphicsLayoutItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), index, QtJambi_LibraryUtilities.internal.checkedNativeId(item)); QtJambi_LibraryUtilities.internal.setCppOwnership(item); } @QtUninvokable private native void insertItem_native_int_QGraphicsLayoutItem_ptr(long __this__nativeId, int index, long item); /** *

See QGraphicsLinearLayout::insertStretch(int,int)

*/ @QtUninvokable public final void insertStretch(int index, int stretch){ insertStretch_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), index, stretch); } @QtUninvokable private native void insertStretch_native_int_int(long __this__nativeId, int index, int stretch); /** *

See QGraphicsLinearLayout::itemSpacing(int)const

*/ @QtUninvokable public final double itemSpacing(int index){ return itemSpacing_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index); } @QtUninvokable private native double itemSpacing_native_int_constfct(long __this__nativeId, int index); /** *

See QGraphicsLinearLayout::orientation()const

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull Orientation orientation(){ return io.qt.core.Qt.Orientation.resolve(orientation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int orientation_native_constfct(long __this__nativeId); /** *

See QGraphicsLinearLayout::removeItem(QGraphicsLayoutItem*)

*/ @QtUninvokable public final void removeItem(io.qt.widgets.@Nullable QGraphicsLayoutItem item){ removeItem_native_QGraphicsLayoutItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item)); QtJambi_LibraryUtilities.internal.setDefaultOwnership(item); } @QtUninvokable private native void removeItem_native_QGraphicsLayoutItem_ptr(long __this__nativeId, long item); /** *

See QGraphicsLinearLayout::setAlignment(QGraphicsLayoutItem*,Qt::Alignment)

*/ @QtUninvokable public final void setAlignment(io.qt.widgets.@Nullable QGraphicsLayoutItem item, io.qt.core.Qt.@NonNull Alignment alignment){ setAlignment_native_QGraphicsLayoutItem_ptr_Qt_Alignment(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), alignment.value()); } @QtUninvokable private native void setAlignment_native_QGraphicsLayoutItem_ptr_Qt_Alignment(long __this__nativeId, long item, int alignment); /** *

See QGraphicsLinearLayout::setItemSpacing(int,qreal)

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

See QGraphicsLinearLayout::setOrientation(Qt::Orientation)

*/ @QtUninvokable public final void setOrientation(io.qt.core.Qt.@NonNull Orientation orientation){ setOrientation_native_Qt_Orientation(QtJambi_LibraryUtilities.internal.nativeId(this), orientation.value()); } @QtUninvokable private native void setOrientation_native_Qt_Orientation(long __this__nativeId, int orientation); /** *

See QGraphicsLinearLayout::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 QGraphicsLinearLayout::setStretchFactor(QGraphicsLayoutItem*,int)

*/ @QtUninvokable public final void setStretchFactor(io.qt.widgets.@Nullable QGraphicsLayoutItem item, int stretch){ setStretchFactor_native_QGraphicsLayoutItem_ptr_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item), stretch); } @QtUninvokable private native void setStretchFactor_native_QGraphicsLayoutItem_ptr_int(long __this__nativeId, long item, int stretch); /** *

See QGraphicsLinearLayout::spacing()const

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

See QGraphicsLinearLayout::stretchFactor(QGraphicsLayoutItem*)const

*/ @QtUninvokable public final int stretchFactor(io.qt.widgets.@Nullable QGraphicsLayoutItem item){ return stretchFactor_native_QGraphicsLayoutItem_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item)); } @QtUninvokable private native int stretchFactor_native_QGraphicsLayoutItem_ptr_constfct(long __this__nativeId, long item); /** *

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 QGraphicsLinearLayout(QPrivateConstructor p) { super(p); } /** *

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

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

Overloaded constructor for {@link #QGraphicsLinearLayout(io.qt.core.Qt.Orientation, io.qt.widgets.QGraphicsLayoutItem)} * with parent = null.

*/ public QGraphicsLinearLayout(io.qt.core.Qt.@NonNull Orientation orientation) { this(orientation, (io.qt.widgets.QGraphicsLayoutItem)null); } /** *

Overloaded function for {@link #addStretch(int)} * with stretch = 1.

*/ @QtUninvokable public final void addStretch() { addStretch((int)1); } /** *

Overloaded function for {@link #dump(int)} * with indent = 0.

*/ @QtUninvokable public final void dump() { dump((int)0); } /** *

Overloaded function for {@link #insertStretch(int, int)} * with stretch = 1.

*/ @QtUninvokable public final void insertStretch(int index) { insertStretch(index, (int)1); } /** *

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

*/ @QtUninvokable public final void setAlignment(io.qt.widgets.@Nullable QGraphicsLayoutItem item, io.qt.core.Qt.@NonNull AlignmentFlag @NonNull... alignment) { setAlignment(item, new io.qt.core.Qt.Alignment(alignment)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy