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

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

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

import io.qt.*;


/**
 * 

Layout item that represents a widget

*

Java wrapper for Qt class QWidgetItem

*/ public class QWidgetItem extends QtObject implements io.qt.widgets.QLayoutItem { static { QtJambi_LibraryUtilities.initialize(); } @QtPropertyMember(enabled=false) private Object __rcWidget; /** *

See QWidgetItem::QWidgetItem(QWidget*)

* @param w */ public QWidgetItem(io.qt.widgets.@Nullable QWidget w){ super((QPrivateConstructor)null); initialize_native(this, w); if (QtJambi_LibraryUtilities.internal.needsReferenceCounting(w)) { __rcWidget = w; }else{ __rcWidget = null; } } private native static void initialize_native(QWidgetItem instance, io.qt.widgets.QWidget w); /** *

See QLayoutItem::alignment()const

* @return */ @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 QLayoutItem::setAlignment(Qt::Alignment)

* @param a */ @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 QLayoutItem::controlTypes()const

* @return */ @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 QLayoutItem::expandingDirections()const

* @return */ @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

* @return */ @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

* @return */ @QtUninvokable @Override 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

* @param arg__1 * @return */ @QtUninvokable @Override 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 QLayoutItem::invalidate()

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

See QLayoutItem::isEmpty()const

* @return */ @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 QLayoutItem::layout()

* @return */ @QtUninvokable 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

* @return */ @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

* @param arg__1 * @return */ @QtUninvokable @Override 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

* @return */ @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 QLayoutItem::setGeometry(QRect)

* @param arg__1 */ @QtUninvokable @Override 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 QLayoutItem::sizeHint()const

* @return */ @QtUninvokable @Override 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); /** *

See QLayoutItem::spacerItem()

* @return */ @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 QLayoutItem::widget()const

* @return */ @QtUninvokable @Override 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 QWidgetItem::wid

* @param widget */ @QtUninvokable protected final void setWidget(io.qt.widgets.@Nullable QWidget widget){ InternalAccess.NativeIdInfo __widget__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(widget); setWidget_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), __widget__NativeIdInfo.nativeId()); if (__widget__NativeIdInfo.needsReferenceCounting()) { __rcWidget = widget; }else{ __rcWidget = null; } } @QtUninvokable private native void setWidget_native_QWidget_ptr(long __this__nativeId, long widget); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QWidgetItem(QPrivateConstructor p) { super(p); } @QtUninvokable static native boolean hasWidgetItemV2(QWidget widget); /** *

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)); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy