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

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

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

import io.qt.*;


/**
 * 

The base class of geometry managers

*

Java wrapper for Qt class QLayout

*/ public abstract class QLayout extends io.qt.core.QObject implements io.qt.widgets.QLayoutItem { static { QtJambi_LibraryUtilities.initialize(); } @QtPropertyMember(enabled=false) private java.util.Collection __rcLayoutedObjects; @QtPropertyMember(enabled=false) private Object __rcMenuBar = null; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QLayout.class); @NativeAccess private static final class ConcreteWrapper extends QLayout { @NativeAccess private ConcreteWrapper(QPrivateConstructor p) { super(p); } @Override @QtUninvokable public void addItem(io.qt.widgets.@StrictNonNull QLayoutItem arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); QWidget widget = arg__1.widget(); addItem_native_QLayoutItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); QtJambi_LibraryUtilities.internal.setCppOwnership(arg__1); if(widget!=null && widget.parent()==null){ QtJambi_LibraryUtilities.internal.addReferenceCount(this, io.qt.widgets.QLayout.class, "__rcLayoutedObjects", false, false, widget); } } @QtUninvokable private native void addItem_native_QLayoutItem_ptr(long __this__nativeId, long arg__1); @Override @QtUninvokable public int count(){ return count_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int count_native_constfct(long __this__nativeId); @Override @QtUninvokable public io.qt.widgets.@Nullable QLayoutItem itemAt(int index){ return itemAt_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index); } @QtUninvokable private native io.qt.widgets.QLayoutItem itemAt_native_int_constfct(long __this__nativeId, int index); @Override @QtUninvokable public io.qt.core.@NonNull QSize sizeHint(){ return sizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.core.QSize sizeHint_native_constfct(long __this__nativeId); @Override @QtUninvokable public io.qt.widgets.@Nullable QLayoutItem takeAt(int index){ io.qt.widgets.@Nullable QLayoutItem __qt_return_value = takeAt_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), index); if(__qt_return_value != null){ QtJambi_LibraryUtilities.internal.setDefaultOwnership(__qt_return_value); } return __qt_return_value; } @QtUninvokable private native io.qt.widgets.QLayoutItem takeAt_native_int(long __this__nativeId, int index); } /** *

Java wrapper for Qt enum QLayout::SizeConstraint

*/ public enum SizeConstraint implements QtEnumerator { /** *

Representing QLayout::SetDefaultConstraint

*/ SetDefaultConstraint(0), /** *

Representing QLayout::SetNoConstraint

*/ SetNoConstraint(1), /** *

Representing QLayout::SetMinimumSize

*/ SetMinimumSize(2), /** *

Representing QLayout::SetFixedSize

*/ SetFixedSize(3), /** *

Representing QLayout::SetMaximumSize

*/ SetMaximumSize(4), /** *

Representing QLayout::SetMinAndMaxSize

*/ SetMinAndMaxSize(5); static { QtJambi_LibraryUtilities.initialize(); } private SizeConstraint(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull SizeConstraint resolve(int value) { switch (value) { case 0: return SetDefaultConstraint; case 1: return SetNoConstraint; case 2: return SetMinimumSize; case 3: return SetFixedSize; case 4: return SetMaximumSize; case 5: return SetMinAndMaxSize; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QLayout::QLayout(QWidget*)

*/ public QLayout(io.qt.widgets.@Nullable QWidget parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QLayout instance, io.qt.widgets.QWidget parent); /** *

See QLayout::activate()

*/ @QtUninvokable public final boolean activate(){ return activate_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean activate_native(long __this__nativeId); /** *

See QLayout::addChildLayout(QLayout*)

*/ @QtUninvokable protected final void addChildLayout(io.qt.widgets.@Nullable QLayout l){ addChildLayout_native_QLayout_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(l)); } @QtUninvokable private native void addChildLayout_native_QLayout_ptr(long __this__nativeId, long l); /** *

See QLayout::addChildWidget(QWidget*)

*/ @QtUninvokable protected final void addChildWidget(io.qt.widgets.@StrictNonNull QWidget w){ java.util.Objects.requireNonNull(w, "Argument 'w': null not expected."); addChildWidget_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(w)); if (w.parent()==null) { if(__rcLayoutedObjects==null) __rcLayoutedObjects = QtJambi_LibraryUtilities.internal.newRCList(); __rcLayoutedObjects.add(w); } } @QtUninvokable private native void addChildWidget_native_QWidget_ptr(long __this__nativeId, long w); /** *

See QLayout::addWidget(QWidget*)

*/ @QtDeclaredFinal @QtUninvokable void add_widget(io.qt.widgets.@StrictNonNull QWidget w){ if(QWidgetItem.hasWidgetItemV2(w)) throw new IllegalArgumentException("Widget is already a layout member."); java.util.Objects.requireNonNull(w, "Argument 'w': null not expected."); add_widget_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(w)); if (w.parent()==null) { if(__rcLayoutedObjects==null) __rcLayoutedObjects = QtJambi_LibraryUtilities.internal.newRCList(); __rcLayoutedObjects.add(w); } } @QtUninvokable private native void add_widget_native_QWidget_ptr(long __this__nativeId, long w); /** *

See QLayout::adoptLayout(QLayout*)

*/ @QtUninvokable protected final boolean adoptLayout(io.qt.widgets.@Nullable QLayout layout){ return adoptLayout_native_QLayout_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(layout)); } @QtUninvokable private native boolean adoptLayout_native_QLayout_ptr(long __this__nativeId, long layout); /** *

See QLayoutItem::alignment()const

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull Alignment alignment(){ return new io.qt.core.Qt.Alignment(alignment_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } private native static int alignment_native_constfct(long __this__nativeId); /** *

See QLayout::alignmentRect(QRect)const

*/ @QtUninvokable protected final io.qt.core.@NonNull QRect alignmentRect(io.qt.core.@NonNull QRect arg__1){ return alignmentRect_native_cref_QRect_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native io.qt.core.QRect alignmentRect_native_cref_QRect_constfct(long __this__nativeId, long arg__1); /** *

See QLayout::contentsMargins()const

*/ @QtPropertyReader(name="contentsMargins") @QtUninvokable public final io.qt.core.@NonNull QMargins contentsMargins(){ return contentsMargins_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QMargins contentsMargins_native_constfct(long __this__nativeId); /** *

See QLayout::contentsRect()const

*/ @QtUninvokable public final io.qt.core.@NonNull QRect contentsRect(){ return contentsRect_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QRect contentsRect_native_constfct(long __this__nativeId); /** *

See QLayout::getContentsMargins(int*,int*,int*,int*)const

*/ @QtUninvokable public final void getContentsMargins(int @StrictNonNull[] margins){ if(margins.length<4) throw new IllegalArgumentException("An array of length 4 expected."); java.util.Objects.requireNonNull(margins, "Argument 'margins': null not expected."); getContentsMargins_native_int_ptr_int_ptr_int_ptr_int_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), margins); } @QtUninvokable private native void getContentsMargins_native_int_ptr_int_ptr_int_ptr_int_ptr_constfct(long __this__nativeId, int[] margins); /** *

See QLayout::isEnabled()const

*/ @QtUninvokable public final boolean isEnabled(){ return isEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isEnabled_native_constfct(long __this__nativeId); /** *

See QLayout::menuBar()const

*/ @QtUninvokable public final io.qt.widgets.@Nullable QWidget menuBar(){ return menuBar_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.widgets.QWidget menuBar_native_constfct(long __this__nativeId); /** *

See QLayout::parentWidget()const

*/ @QtUninvokable public final io.qt.widgets.@Nullable QWidget parentWidget(){ return parentWidget_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.widgets.QWidget parentWidget_native_constfct(long __this__nativeId); /** *

See QLayout::removeItem(QLayoutItem*)

*/ @QtUninvokable public final void removeItem(io.qt.widgets.@Nullable QLayoutItem arg__1){ QWidget widget = arg__1.widget(); removeItem_native_QLayoutItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); QtJambi_LibraryUtilities.internal.setDefaultOwnership(arg__1); if(widget!=null && __rcLayoutedObjects!=null){ __rcLayoutedObjects.remove(widget); } } @QtUninvokable private native void removeItem_native_QLayoutItem_ptr(long __this__nativeId, long arg__1); /** *

See QLayout::removeWidget(QWidget*)

*/ @QtUninvokable public final void removeWidget(io.qt.widgets.@StrictNonNull QWidget w){ java.util.Objects.requireNonNull(w, "Argument 'w': null not expected."); removeWidget_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(w)); while (__rcLayoutedObjects != null && __rcLayoutedObjects.remove(w)) ; } @QtUninvokable private native void removeWidget_native_QWidget_ptr(long __this__nativeId, long w); /** *

See QLayout::setAlignment(QLayout*,Qt::Alignment)

*/ @QtUninvokable public final boolean setAlignment(io.qt.widgets.@Nullable QLayout l, io.qt.core.Qt.@NonNull Alignment alignment){ return setAlignment_native_QLayout_ptr_Qt_Alignment(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(l), alignment.value()); } @QtUninvokable private native boolean setAlignment_native_QLayout_ptr_Qt_Alignment(long __this__nativeId, long l, int alignment); /** *

See QLayout::setAlignment(QWidget*,Qt::Alignment)

*/ @QtUninvokable public final boolean setAlignment(io.qt.widgets.@Nullable QWidget w, io.qt.core.Qt.@NonNull Alignment alignment){ return setAlignment_native_QWidget_ptr_Qt_Alignment(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(w), alignment.value()); } @QtUninvokable private native boolean setAlignment_native_QWidget_ptr_Qt_Alignment(long __this__nativeId, long w, int alignment); /** *

See QLayoutItem::setAlignment(Qt::Alignment)

*/ @QtUninvokable public final void setAlignment(io.qt.core.Qt.@NonNull Alignment a){ setAlignment_native_Qt_Alignment(QtJambi_LibraryUtilities.internal.nativeId(this), a.value()); } private native static void setAlignment_native_Qt_Alignment(long __this__nativeId, int a); /** *

See QLayout::setContentsMargins(QMargins)

*/ @QtPropertyWriter(name="contentsMargins") @QtUninvokable public final void setContentsMargins(io.qt.core.@NonNull QMargins margins){ setContentsMargins_native_cref_QMargins(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(margins)); } @QtUninvokable private native void setContentsMargins_native_cref_QMargins(long __this__nativeId, long margins); /** *

See QLayout::setContentsMargins(int,int,int,int)

*/ @QtPropertyWriter(name="contentsMargins") @QtUninvokable public final void setContentsMargins(int left, int top, int right, int bottom){ setContentsMargins_native_int_int_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), left, top, right, bottom); } @QtUninvokable private native void setContentsMargins_native_int_int_int_int(long __this__nativeId, int left, int top, int right, int bottom); /** *

See QLayout::setEnabled(bool)

*/ @QtUninvokable public final void setEnabled(boolean arg__1){ setEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native void setEnabled_native_bool(long __this__nativeId, boolean arg__1); /** *

See QLayout::setMenuBar(QWidget*)

*/ @QtUninvokable public final void setMenuBar(io.qt.widgets.@Nullable QWidget w){ setMenuBar_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(w)); __rcMenuBar = w; } @QtUninvokable private native void setMenuBar_native_QWidget_ptr(long __this__nativeId, long w); /** *

See QLayout::setSizeConstraint(QLayout::SizeConstraint)

*/ @QtPropertyWriter(name="sizeConstraint") @QtUninvokable public final void setSizeConstraint(io.qt.widgets.QLayout.@NonNull SizeConstraint arg__1){ setSizeConstraint_native_QLayout_SizeConstraint(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value()); } @QtUninvokable private native void setSizeConstraint_native_QLayout_SizeConstraint(long __this__nativeId, int arg__1); /** *

See QLayout::sizeConstraint()const

*/ @QtPropertyReader(name="sizeConstraint") @QtUninvokable public final io.qt.widgets.QLayout.@NonNull SizeConstraint sizeConstraint(){ return io.qt.widgets.QLayout.SizeConstraint.resolve(sizeConstraint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int sizeConstraint_native_constfct(long __this__nativeId); /** *

See QLayout::totalHeightForWidth(int)const

*/ @QtUninvokable public final int totalHeightForWidth(int w){ return totalHeightForWidth_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), w); } @QtUninvokable private native int totalHeightForWidth_native_int_constfct(long __this__nativeId, int w); /** *

See QLayout::totalMaximumSize()const

*/ @QtUninvokable public final io.qt.core.@NonNull QSize totalMaximumSize(){ return totalMaximumSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QSize totalMaximumSize_native_constfct(long __this__nativeId); /** *

See QLayout::totalMinimumHeightForWidth(int)const

*/ @QtUninvokable public final int totalMinimumHeightForWidth(int w){ return totalMinimumHeightForWidth_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), w); } @QtUninvokable private native int totalMinimumHeightForWidth_native_int_constfct(long __this__nativeId, int w); /** *

See QLayout::totalMinimumSize()const

*/ @QtUninvokable public final io.qt.core.@NonNull QSize totalMinimumSize(){ return totalMinimumSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QSize totalMinimumSize_native_constfct(long __this__nativeId); /** *

See QLayout::totalSizeHint()const

*/ @QtUninvokable public final io.qt.core.@NonNull QSize totalSizeHint(){ return totalSizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QSize totalSizeHint_native_constfct(long __this__nativeId); /** *

See QLayout::unsetContentsMargins()

*/ @QtPropertyResetter(name="contentsMargins") @QtUninvokable public final void unsetContentsMargins(){ unsetContentsMargins_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void unsetContentsMargins_native(long __this__nativeId); /** *

See QLayout::update()

*/ @QtUninvokable public final void update(){ update_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void update_native(long __this__nativeId); /** *

See QLayout::widgetEvent(QEvent*)

*/ @QtUninvokable protected final void widgetEvent(io.qt.core.@Nullable QEvent arg__1){ widgetEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void widgetEvent_native_QEvent_ptr(long __this__nativeId, long arg__1); /** *

See QLayout::addItem(QLayoutItem*)

*/ @QtUninvokable public abstract void addItem(io.qt.widgets.@StrictNonNull QLayoutItem arg__1); @QtUninvokable private native void addItem_native_QLayoutItem_ptr(long __this__nativeId, long arg__1); /** *

See QObject::childEvent(QChildEvent*)

*/ @QtUninvokable @Override protected void childEvent(io.qt.core.@Nullable QChildEvent e){ childEvent_native_QChildEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e)); } @QtUninvokable private native void childEvent_native_QChildEvent_ptr(long __this__nativeId, long e); /** *

See QLayoutItem::controlTypes()const

*/ @QtUninvokable @Override public io.qt.widgets.QSizePolicy.@NonNull ControlTypes controlTypes(){ return new io.qt.widgets.QSizePolicy.ControlTypes(controlTypes_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } private native static int controlTypes_native_constfct(long __this__nativeId); /** *

See QLayout::count()const

*/ @QtUninvokable public abstract int count(); @QtUninvokable private native int count_native_constfct(long __this__nativeId); /** *

See QLayoutItem::expandingDirections()const

*/ @QtUninvokable @Override public io.qt.core.Qt.@NonNull Orientations expandingDirections(){ return new io.qt.core.Qt.Orientations(expandingDirections_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } private native static int expandingDirections_native_constfct(long __this__nativeId); /** *

See QLayoutItem::geometry()const

*/ @QtUninvokable @Override public io.qt.core.@NonNull QRect geometry(){ return geometry_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.core.QRect geometry_native_constfct(long __this__nativeId); /** *

See QLayoutItem::hasHeightForWidth()const

*/ @QtUninvokable public boolean hasHeightForWidth(){ return hasHeightForWidth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static boolean hasHeightForWidth_native_constfct(long __this__nativeId); /** *

See QLayoutItem::heightForWidth(int)const

*/ @QtUninvokable public int heightForWidth(int arg__1){ return heightForWidth_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } private native static int heightForWidth_native_int_constfct(long __this__nativeId, int arg__1); /** *

See QLayout::indexOf(const QLayoutItem*)const

*/ @QtUninvokable public int indexOf(io.qt.widgets.@Nullable QLayoutItem arg__1){ return indexOf_native_const_QLayoutItem_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native int indexOf_native_const_QLayoutItem_ptr_constfct(long __this__nativeId, long arg__1); /** *

See QLayout::indexOf(const QWidget*)const

*/ @QtUninvokable public int indexOf(io.qt.widgets.@Nullable QWidget arg__1){ return indexOf_native_const_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native int indexOf_native_const_QWidget_ptr_constfct(long __this__nativeId, long arg__1); /** *

See QLayoutItem::invalidate()

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

See QLayoutItem::isEmpty()const

*/ @QtUninvokable @Override public boolean isEmpty(){ return isEmpty_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static boolean isEmpty_native_constfct(long __this__nativeId); /** *

See QLayout::itemAt(int)const

*/ @QtUninvokable public abstract io.qt.widgets.@Nullable QLayoutItem itemAt(int index); @QtUninvokable private native io.qt.widgets.QLayoutItem itemAt_native_int_constfct(long __this__nativeId, int index); /** *

See QLayoutItem::layout()

*/ @QtUninvokable @Override public io.qt.widgets.@Nullable QLayout layout(){ return layout_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.widgets.QLayout layout_native(long __this__nativeId); /** *

See QLayoutItem::maximumSize()const

*/ @QtUninvokable @Override public io.qt.core.@NonNull QSize maximumSize(){ return maximumSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.core.QSize maximumSize_native_constfct(long __this__nativeId); /** *

See QLayoutItem::minimumHeightForWidth(int)const

*/ @QtUninvokable public int minimumHeightForWidth(int arg__1){ return minimumHeightForWidth_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } private native static int minimumHeightForWidth_native_int_constfct(long __this__nativeId, int arg__1); /** *

See QLayoutItem::minimumSize()const

*/ @QtUninvokable @Override public io.qt.core.@NonNull QSize minimumSize(){ return minimumSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.core.QSize minimumSize_native_constfct(long __this__nativeId); /** *

See QLayout::replaceWidget(QWidget*,QWidget*,Qt::FindChildOptions)

*/ @QtUninvokable public io.qt.widgets.@Nullable QLayoutItem replaceWidget(io.qt.widgets.@Nullable QWidget from, io.qt.widgets.@Nullable QWidget to, io.qt.core.Qt.@NonNull FindChildOptions options){ return replaceWidget_native_QWidget_ptr_QWidget_ptr_Qt_FindChildOptions(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(from), QtJambi_LibraryUtilities.internal.checkedNativeId(to), options.value()); } @QtUninvokable private native io.qt.widgets.QLayoutItem replaceWidget_native_QWidget_ptr_QWidget_ptr_Qt_FindChildOptions(long __this__nativeId, long from, long to, int options); /** *

See QLayoutItem::setGeometry(QRect)

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

See QLayout::setSpacing(int)

*/ @QtPropertyWriter(name="spacing") @QtUninvokable public void setWidgetSpacing(int arg__1){ setWidgetSpacing_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native void setWidgetSpacing_native_int(long __this__nativeId, int arg__1); /** *

See QLayoutItem::sizeHint()const

*/ @QtUninvokable public abstract io.qt.core.@NonNull QSize sizeHint(); private native static io.qt.core.QSize sizeHint_native_constfct(long __this__nativeId); /** *

See QLayoutItem::spacerItem()

*/ @QtUninvokable public io.qt.widgets.@Nullable QSpacerItem spacerItem(){ return spacerItem_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.widgets.QSpacerItem spacerItem_native(long __this__nativeId); /** *

See QLayout::spacing()const

*/ @QtPropertyReader(name="spacing") @QtUninvokable public int widgetSpacing(){ return widgetSpacing_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int widgetSpacing_native_constfct(long __this__nativeId); /** *

See QLayout::takeAt(int)

*/ @QtUninvokable public abstract io.qt.widgets.@Nullable QLayoutItem takeAt(int index); @QtUninvokable private native io.qt.widgets.QLayoutItem takeAt_native_int(long __this__nativeId, int index); /** *

See QLayoutItem::widget()const

*/ @QtUninvokable public io.qt.widgets.@Nullable QWidget widget(){ return widget_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.widgets.QWidget widget_native_constfct(long __this__nativeId); /** *

See QLayout::closestAcceptableSize(const QWidget*,QSize)

*/ public static io.qt.core.@NonNull QSize closestAcceptableSize(io.qt.widgets.@Nullable QWidget w, io.qt.core.@NonNull QSize s){ return closestAcceptableSize_native_const_QWidget_ptr_cref_QSize(QtJambi_LibraryUtilities.internal.checkedNativeId(w), QtJambi_LibraryUtilities.internal.checkedNativeId(s)); } private native static io.qt.core.QSize closestAcceptableSize_native_const_QWidget_ptr_cref_QSize(long w, long s); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QLayout(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QLayout(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QLayout instance, QDeclarativeConstructor constructor); @QtUninvokable public final void addWidget(io.qt.widgets.@Nullable QWidget w){ add_widget(w); } /** *

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

*/ public QLayout() { this((io.qt.widgets.QWidget)null); } /** * @hidden *

Kotlin property getter. In Java use {@link #contentsMargins()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.@NonNull QMargins getContentsMargins() { return contentsMargins(); } /** *

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

*/ @QtUninvokable public final boolean setAlignment(io.qt.widgets.@Nullable QLayout l, io.qt.core.Qt.@NonNull AlignmentFlag @NonNull... alignment) { return setAlignment(l, new io.qt.core.Qt.Alignment(alignment)); } /** *

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

*/ @QtUninvokable public final boolean setAlignment(io.qt.widgets.@Nullable QWidget w, io.qt.core.Qt.@NonNull AlignmentFlag @NonNull... alignment) { return setAlignment(w, new io.qt.core.Qt.Alignment(alignment)); } /** *

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

*/ @QtUninvokable public final void setAlignment(io.qt.core.Qt.@NonNull AlignmentFlag @NonNull... a) { setAlignment(new io.qt.core.Qt.Alignment(a)); } /** * @hidden *

Kotlin property getter. In Java use {@link #sizeConstraint()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.widgets.QLayout.@NonNull SizeConstraint getSizeConstraint() { return sizeConstraint(); } /** *

Overloaded function for {@link #replaceWidget(io.qt.widgets.QWidget, io.qt.widgets.QWidget, io.qt.core.Qt.FindChildOptions)} * with options = new io.qt.core.Qt.FindChildOptions(1).

*/ @QtUninvokable public final io.qt.widgets.@Nullable QLayoutItem replaceWidget(io.qt.widgets.@Nullable QWidget from, io.qt.widgets.@Nullable QWidget to) { return replaceWidget(from, to, new io.qt.core.Qt.FindChildOptions(1)); } /** *

Overloaded function for {@link #replaceWidget(io.qt.widgets.QWidget, io.qt.widgets.QWidget, io.qt.core.Qt.FindChildOptions)}.

*/ @QtUninvokable public final io.qt.widgets.@Nullable QLayoutItem replaceWidget(io.qt.widgets.@Nullable QWidget from, io.qt.widgets.@Nullable QWidget to, io.qt.core.Qt.@NonNull FindChildOption @NonNull... options) { return replaceWidget(from, to, new io.qt.core.Qt.FindChildOptions(options)); } /** * @hidden *

Kotlin property getter. In Java use {@link #widgetSpacing()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getWidgetSpacing() { return widgetSpacing(); } }