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

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

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

import io.qt.*;


/**
 * 

Can be inherited to allow your custom items to be managed by layouts

*

Java wrapper for Qt class QGraphicsLayoutItem

*

Following functions are protected in the Qt interface, all implementations of this interface may implement these function:

*
* * @QtUninvokable
* protected final void setGraphicsItem(io.qt.widgets.@Nullable QGraphicsItem item){
*     QGraphicsLayoutItem.MemberAccess.of(this).setGraphicsItem(item);
* }
*
* @QtUninvokable
* protected final void setOwnedByLayout(boolean ownedByLayout){
*     QGraphicsLayoutItem.MemberAccess.of(this).setOwnedByLayout(ownedByLayout);
* }
*
* @QtUninvokable
* protected abstract io.qt.core.@NonNull QSizeF sizeHint(io.qt.core.Qt.@NonNull SizeHint which, io.qt.core.@NonNull QSizeF constraint);
*
*
*/ public interface QGraphicsLayoutItem extends QtObjectInterface { /** * @hidden *

Implementor class for interface {@link io.qt.widgets.QGraphicsLayoutItem}

*/ public static abstract class Impl extends QtObject implements io.qt.widgets.QGraphicsLayoutItem { static { QtJambi_LibraryUtilities.initialize(); } @QtPropertyMember(enabled=false) private Object __rcItem = null; @NativeAccess private static final class ConcreteWrapper extends QGraphicsLayoutItem.Impl { @NativeAccess private ConcreteWrapper(QPrivateConstructor p) { super(p); } @Override @QtUninvokable 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); } /** *

See QGraphicsLayoutItem::QGraphicsLayoutItem(QGraphicsLayoutItem*,bool)

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

See QGraphicsLayoutItem::contentsRect()const

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

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

*/ @QtUninvokable public final io.qt.core.@NonNull QSizeF effectiveSizeHint(io.qt.core.Qt.@NonNull SizeHint which, io.qt.core.@NonNull QSizeF constraint){ return effectiveSizeHint_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 effectiveSizeHint_native_Qt_SizeHint_cref_QSizeF_constfct(long __this__nativeId, int which, long constraint); /** *

See QGraphicsLayoutItem::geometry()const

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

See QGraphicsLayoutItem::graphicsItem()const

*/ @QtUninvokable public final io.qt.widgets.@Nullable QGraphicsItem graphicsItem(){ return graphicsItem_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.widgets.QGraphicsItem graphicsItem_native_constfct(long __this__nativeId); /** *

See QGraphicsLayoutItem::isLayout()const

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

See QGraphicsLayoutItem::maximumHeight()const

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

See QGraphicsLayoutItem::maximumSize()const

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

See QGraphicsLayoutItem::maximumWidth()const

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

See QGraphicsLayoutItem::minimumHeight()const

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

See QGraphicsLayoutItem::minimumSize()const

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

See QGraphicsLayoutItem::minimumWidth()const

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

See QGraphicsLayoutItem::ownedByLayout()const

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

See QGraphicsLayoutItem::parentLayoutItem()const

*/ @QtUninvokable public final io.qt.widgets.@Nullable QGraphicsLayoutItem parentLayoutItem(){ return parentLayoutItem_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.widgets.QGraphicsLayoutItem parentLayoutItem_native_constfct(long __this__nativeId); /** *

See QGraphicsLayoutItem::preferredHeight()const

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

See QGraphicsLayoutItem::preferredSize()const

*/ @QtUninvokable public final io.qt.core.@NonNull QSizeF preferredSize(){ return preferredSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.core.QSizeF preferredSize_native_constfct(long __this__nativeId); /** *

See QGraphicsLayoutItem::preferredWidth()const

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

See QGraphicsLayoutItem::setGraphicsItem(QGraphicsItem*)

*/ @QtUninvokable protected final void setGraphicsItem(io.qt.widgets.@Nullable QGraphicsItem item){ setGraphicsItem_native_QGraphicsItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item)); __rcItem = item; } private native static void setGraphicsItem_native_QGraphicsItem_ptr(long __this__nativeId, long item); /** *

See QGraphicsLayoutItem::setMaximumHeight(qreal)

*/ @QtUninvokable public final void setMaximumHeight(double height){ setMaximumHeight_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), height); } private native static void setMaximumHeight_native_qreal(long __this__nativeId, double height); /** *

See QGraphicsLayoutItem::setMaximumSize(QSizeF)

*/ @QtUninvokable public final void setMaximumSize(io.qt.core.@NonNull QSizeF size){ setMaximumSize_native_cref_QSizeF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size)); } private native static void setMaximumSize_native_cref_QSizeF(long __this__nativeId, long size); /** *

See QGraphicsLayoutItem::setMaximumSize(qreal,qreal)

*/ @QtUninvokable public final void setMaximumSize(double w, double h){ setMaximumSize_native_qreal_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), w, h); } private native static void setMaximumSize_native_qreal_qreal(long __this__nativeId, double w, double h); /** *

See QGraphicsLayoutItem::setMaximumWidth(qreal)

*/ @QtUninvokable public final void setMaximumWidth(double width){ setMaximumWidth_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), width); } private native static void setMaximumWidth_native_qreal(long __this__nativeId, double width); /** *

See QGraphicsLayoutItem::setMinimumHeight(qreal)

*/ @QtUninvokable public final void setMinimumHeight(double height){ setMinimumHeight_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), height); } private native static void setMinimumHeight_native_qreal(long __this__nativeId, double height); /** *

See QGraphicsLayoutItem::setMinimumSize(QSizeF)

*/ @QtUninvokable public final void setMinimumSize(io.qt.core.@NonNull QSizeF size){ setMinimumSize_native_cref_QSizeF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size)); } private native static void setMinimumSize_native_cref_QSizeF(long __this__nativeId, long size); /** *

See QGraphicsLayoutItem::setMinimumSize(qreal,qreal)

*/ @QtUninvokable public final void setMinimumSize(double w, double h){ setMinimumSize_native_qreal_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), w, h); } private native static void setMinimumSize_native_qreal_qreal(long __this__nativeId, double w, double h); /** *

See QGraphicsLayoutItem::setMinimumWidth(qreal)

*/ @QtUninvokable public final void setMinimumWidth(double width){ setMinimumWidth_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), width); } private native static void setMinimumWidth_native_qreal(long __this__nativeId, double width); /** *

See QGraphicsLayoutItem::setOwnedByLayout(bool)

*/ @QtUninvokable protected final void setOwnedByLayout(boolean ownedByLayout){ boolean oldValue = this.ownedByLayout(); setOwnedByLayout_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), ownedByLayout); if(oldValue!=ownedByLayout) { if(ownedByLayout) { if(this.parentLayoutItem()!=null && QtJambi_LibraryUtilities.internal.isJavaOwnership(this)) { QtJambi_LibraryUtilities.internal.setCppOwnership(this); } }else { QtJambi_LibraryUtilities.internal.setDefaultOwnership(this); } } } private native static void setOwnedByLayout_native_bool(long __this__nativeId, boolean ownedByLayout); /** *

See QGraphicsLayoutItem::setParentLayoutItem(QGraphicsLayoutItem*)

*/ @QtUninvokable public final void setParentLayoutItem(io.qt.widgets.@Nullable QGraphicsLayoutItem parent){ if (parent instanceof QGraphicsWidget) QtJambi_LibraryUtilities.internal.setCppOwnership(this); else QtJambi_LibraryUtilities.internal.setDefaultOwnership(this); setParentLayoutItem_native_QGraphicsLayoutItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent)); } private native static void setParentLayoutItem_native_QGraphicsLayoutItem_ptr(long __this__nativeId, long parent); /** *

See QGraphicsLayoutItem::setPreferredHeight(qreal)

*/ @QtUninvokable public final void setPreferredHeight(double height){ setPreferredHeight_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), height); } private native static void setPreferredHeight_native_qreal(long __this__nativeId, double height); /** *

See QGraphicsLayoutItem::setPreferredSize(QSizeF)

*/ @QtUninvokable public final void setPreferredSize(io.qt.core.@NonNull QSizeF size){ setPreferredSize_native_cref_QSizeF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size)); } private native static void setPreferredSize_native_cref_QSizeF(long __this__nativeId, long size); /** *

See QGraphicsLayoutItem::setPreferredSize(qreal,qreal)

*/ @QtUninvokable public final void setPreferredSize(double w, double h){ setPreferredSize_native_qreal_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), w, h); } private native static void setPreferredSize_native_qreal_qreal(long __this__nativeId, double w, double h); /** *

See QGraphicsLayoutItem::setPreferredWidth(qreal)

*/ @QtUninvokable public final void setPreferredWidth(double width){ setPreferredWidth_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), width); } private native static void setPreferredWidth_native_qreal(long __this__nativeId, double width); /** *

See QGraphicsLayoutItem::setSizePolicy(QSizePolicy)

*/ @QtUninvokable public final void setSizePolicy(io.qt.widgets.@NonNull QSizePolicy policy){ setSizePolicy_native_cref_QSizePolicy(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(policy)); } private native static void setSizePolicy_native_cref_QSizePolicy(long __this__nativeId, long policy); /** *

See QGraphicsLayoutItem::setSizePolicy(QSizePolicy::Policy,QSizePolicy::Policy,QSizePolicy::ControlType)

*/ @QtUninvokable public final void setSizePolicy(io.qt.widgets.QSizePolicy.@NonNull Policy hPolicy, io.qt.widgets.QSizePolicy.@NonNull Policy vPolicy, io.qt.widgets.QSizePolicy.@NonNull ControlType controlType){ setSizePolicy_native_QSizePolicy_Policy_QSizePolicy_Policy_QSizePolicy_ControlType(QtJambi_LibraryUtilities.internal.nativeId(this), hPolicy.value(), vPolicy.value(), controlType.value()); } private native static void setSizePolicy_native_QSizePolicy_Policy_QSizePolicy_Policy_QSizePolicy_ControlType(long __this__nativeId, int hPolicy, int vPolicy, int controlType); /** *

See QGraphicsLayoutItem::sizePolicy()const

*/ @QtUninvokable public final io.qt.widgets.@NonNull QSizePolicy sizePolicy(){ return sizePolicy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.widgets.QSizePolicy sizePolicy_native_constfct(long __this__nativeId); /** *

See QGraphicsLayoutItem::getContentsMargins(qreal*,qreal*,qreal*,qreal*)const

*/ @QtUninvokable public void getContentsMargins(double @NonNull[] margins){ if(margins.length<4) throw new IllegalArgumentException("An array of length 4 expected."); getContentsMargins_native_qreal_ptr_qreal_ptr_qreal_ptr_qreal_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), margins); } private native static void getContentsMargins_native_qreal_ptr_qreal_ptr_qreal_ptr_qreal_ptr_constfct(long __this__nativeId, double[] margins); /** *

See QGraphicsLayoutItem::isEmpty()const

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

See QGraphicsLayoutItem::setGeometry(QRectF)

*/ @QtUninvokable 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 protected abstract io.qt.core.@NonNull QSizeF sizeHint(io.qt.core.Qt.@NonNull SizeHint which, io.qt.core.@NonNull QSizeF constraint); private native static io.qt.core.QSizeF sizeHint_native_Qt_SizeHint_cref_QSizeF_constfct(long __this__nativeId, int which, long constraint); /** *

See QGraphicsLayoutItem::updateGeometry()

*/ @QtUninvokable public void updateGeometry(){ updateGeometry_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static void updateGeometry_native(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected Impl(QPrivateConstructor p) { super(p); } /** *

Overloaded constructor for {@link #Impl(io.qt.widgets.QGraphicsLayoutItem, boolean)} * with isLayout = false.

*/ public Impl(io.qt.widgets.@Nullable QGraphicsLayoutItem parent) { this(parent, (boolean)false); } /** *

Overloaded constructor for {@link #Impl(io.qt.widgets.QGraphicsLayoutItem, boolean)}

*

with:

    *
  • parent = null
  • *
  • isLayout = false
  • *
*/ public Impl() { this((io.qt.widgets.QGraphicsLayoutItem)null, (boolean)false); } /** *

Overloaded function for {@link #effectiveSizeHint(io.qt.core.Qt.SizeHint, io.qt.core.QSizeF)} * with constraint = new io.qt.core.QSizeF().

*/ @QtUninvokable public final io.qt.core.@NonNull QSizeF effectiveSizeHint(io.qt.core.Qt.@NonNull SizeHint which) { return effectiveSizeHint(which, new io.qt.core.QSizeF()); } /** *

Overloaded function for {@link #effectiveSizeHint(io.qt.core.Qt.SizeHint, io.qt.core.QSizeF)}.

*/ @QtUninvokable public final io.qt.core.@NonNull QSizeF effectiveSizeHint(io.qt.core.Qt.@NonNull SizeHint which, io.qt.core.@NonNull QSize constraint) { return effectiveSizeHint(which, new io.qt.core.QSizeF(constraint)); } /** *

Overloaded function for {@link #setMaximumSize(io.qt.core.QSizeF)}.

*/ @QtUninvokable public final void setMaximumSize(io.qt.core.@NonNull QSize size) { setMaximumSize(new io.qt.core.QSizeF(size)); } /** *

Overloaded function for {@link #setMinimumSize(io.qt.core.QSizeF)}.

*/ @QtUninvokable public final void setMinimumSize(io.qt.core.@NonNull QSize size) { setMinimumSize(new io.qt.core.QSizeF(size)); } /** *

Overloaded function for {@link #setPreferredSize(io.qt.core.QSizeF)}.

*/ @QtUninvokable public final void setPreferredSize(io.qt.core.@NonNull QSize size) { setPreferredSize(new io.qt.core.QSizeF(size)); } /** *

Overloaded function for {@link #setSizePolicy(io.qt.widgets.QSizePolicy.Policy, io.qt.widgets.QSizePolicy.Policy, io.qt.widgets.QSizePolicy.ControlType)} * with controlType = io.qt.widgets.QSizePolicy.ControlType.DefaultType.

*/ @QtUninvokable public final void setSizePolicy(io.qt.widgets.QSizePolicy.@NonNull Policy hPolicy, io.qt.widgets.QSizePolicy.@NonNull Policy vPolicy) { setSizePolicy(hPolicy, vPolicy, io.qt.widgets.QSizePolicy.ControlType.DefaultType); } /** *

Overloaded function for {@link #setGeometry(io.qt.core.QRectF)}.

*/ @QtUninvokable public final void setGeometry(io.qt.core.@NonNull QRect rect) { setGeometry(new io.qt.core.QRectF(rect)); } /** *

Overloaded function for {@link #sizeHint(io.qt.core.Qt.SizeHint, io.qt.core.QSizeF)} * with constraint = new io.qt.core.QSizeF().

*/ @QtUninvokable protected final io.qt.core.@NonNull QSizeF sizeHint(io.qt.core.Qt.@NonNull SizeHint which) { return sizeHint(which, new io.qt.core.QSizeF()); } /** *

Overloaded function for {@link #sizeHint(io.qt.core.Qt.SizeHint, io.qt.core.QSizeF)}.

*/ @QtUninvokable protected final io.qt.core.@NonNull QSizeF sizeHint(io.qt.core.Qt.@NonNull SizeHint which, io.qt.core.@NonNull QSize constraint) { return sizeHint(which, new io.qt.core.QSizeF(constraint)); } } /** *

See QGraphicsLayoutItem::contentsRect()const

*/ @QtDeclaredFinal @QtUninvokable public default io.qt.core.@NonNull QRectF contentsRect(){ return Impl.contentsRect_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

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

*/ @QtDeclaredFinal @QtUninvokable public default io.qt.core.@NonNull QSizeF effectiveSizeHint(io.qt.core.Qt.@NonNull SizeHint which, io.qt.core.@NonNull QSizeF constraint){ return Impl.effectiveSizeHint_native_Qt_SizeHint_cref_QSizeF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), which.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(constraint)); } /** *

See QGraphicsLayoutItem::geometry()const

*/ @QtDeclaredFinal @QtUninvokable public default io.qt.core.@NonNull QRectF geometry(){ return Impl.geometry_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QGraphicsLayoutItem::graphicsItem()const

*/ @QtDeclaredFinal @QtUninvokable public default io.qt.widgets.@Nullable QGraphicsItem graphicsItem(){ return Impl.graphicsItem_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QGraphicsLayoutItem::isLayout()const

*/ @QtDeclaredFinal @QtUninvokable public default boolean isLayout(){ return Impl.isLayout_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QGraphicsLayoutItem::maximumHeight()const

*/ @QtDeclaredFinal @QtUninvokable public default double maximumHeight(){ return Impl.maximumHeight_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QGraphicsLayoutItem::maximumSize()const

*/ @QtDeclaredFinal @QtUninvokable public default io.qt.core.@NonNull QSizeF maximumSize(){ return Impl.maximumSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QGraphicsLayoutItem::maximumWidth()const

*/ @QtDeclaredFinal @QtUninvokable public default double maximumWidth(){ return Impl.maximumWidth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QGraphicsLayoutItem::minimumHeight()const

*/ @QtDeclaredFinal @QtUninvokable public default double minimumHeight(){ return Impl.minimumHeight_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QGraphicsLayoutItem::minimumSize()const

*/ @QtDeclaredFinal @QtUninvokable public default io.qt.core.@NonNull QSizeF minimumSize(){ return Impl.minimumSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QGraphicsLayoutItem::minimumWidth()const

*/ @QtDeclaredFinal @QtUninvokable public default double minimumWidth(){ return Impl.minimumWidth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QGraphicsLayoutItem::ownedByLayout()const

*/ @QtDeclaredFinal @QtUninvokable public default boolean ownedByLayout(){ return Impl.ownedByLayout_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QGraphicsLayoutItem::parentLayoutItem()const

*/ @QtDeclaredFinal @QtUninvokable public default io.qt.widgets.@Nullable QGraphicsLayoutItem parentLayoutItem(){ return Impl.parentLayoutItem_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QGraphicsLayoutItem::preferredHeight()const

*/ @QtDeclaredFinal @QtUninvokable public default double preferredHeight(){ return Impl.preferredHeight_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QGraphicsLayoutItem::preferredSize()const

*/ @QtDeclaredFinal @QtUninvokable public default io.qt.core.@NonNull QSizeF preferredSize(){ return Impl.preferredSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QGraphicsLayoutItem::preferredWidth()const

*/ @QtDeclaredFinal @QtUninvokable public default double preferredWidth(){ return Impl.preferredWidth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QGraphicsLayoutItem::setMaximumHeight(qreal)

*/ @QtDeclaredFinal @QtUninvokable public default void setMaximumHeight(double height){ Impl.setMaximumHeight_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), height); } /** *

See QGraphicsLayoutItem::setMaximumSize(QSizeF)

*/ @QtDeclaredFinal @QtUninvokable public default void setMaximumSize(io.qt.core.@NonNull QSizeF size){ Impl.setMaximumSize_native_cref_QSizeF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size)); } /** *

See QGraphicsLayoutItem::setMaximumSize(qreal,qreal)

*/ @QtDeclaredFinal @QtUninvokable public default void setMaximumSize(double w, double h){ Impl.setMaximumSize_native_qreal_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), w, h); } /** *

See QGraphicsLayoutItem::setMaximumWidth(qreal)

*/ @QtDeclaredFinal @QtUninvokable public default void setMaximumWidth(double width){ Impl.setMaximumWidth_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), width); } /** *

See QGraphicsLayoutItem::setMinimumHeight(qreal)

*/ @QtDeclaredFinal @QtUninvokable public default void setMinimumHeight(double height){ Impl.setMinimumHeight_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), height); } /** *

See QGraphicsLayoutItem::setMinimumSize(QSizeF)

*/ @QtDeclaredFinal @QtUninvokable public default void setMinimumSize(io.qt.core.@NonNull QSizeF size){ Impl.setMinimumSize_native_cref_QSizeF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size)); } /** *

See QGraphicsLayoutItem::setMinimumSize(qreal,qreal)

*/ @QtDeclaredFinal @QtUninvokable public default void setMinimumSize(double w, double h){ Impl.setMinimumSize_native_qreal_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), w, h); } /** *

See QGraphicsLayoutItem::setMinimumWidth(qreal)

*/ @QtDeclaredFinal @QtUninvokable public default void setMinimumWidth(double width){ Impl.setMinimumWidth_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), width); } /** *

See QGraphicsLayoutItem::setParentLayoutItem(QGraphicsLayoutItem*)

*/ @QtDeclaredFinal @QtUninvokable public default void setParentLayoutItem(io.qt.widgets.@Nullable QGraphicsLayoutItem parent){ if (parent instanceof QGraphicsWidget) QtJambi_LibraryUtilities.internal.setCppOwnership(this); else QtJambi_LibraryUtilities.internal.setDefaultOwnership(this); Impl.setParentLayoutItem_native_QGraphicsLayoutItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent)); } /** *

See QGraphicsLayoutItem::setPreferredHeight(qreal)

*/ @QtDeclaredFinal @QtUninvokable public default void setPreferredHeight(double height){ Impl.setPreferredHeight_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), height); } /** *

See QGraphicsLayoutItem::setPreferredSize(QSizeF)

*/ @QtDeclaredFinal @QtUninvokable public default void setPreferredSize(io.qt.core.@NonNull QSizeF size){ Impl.setPreferredSize_native_cref_QSizeF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size)); } /** *

See QGraphicsLayoutItem::setPreferredSize(qreal,qreal)

*/ @QtDeclaredFinal @QtUninvokable public default void setPreferredSize(double w, double h){ Impl.setPreferredSize_native_qreal_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), w, h); } /** *

See QGraphicsLayoutItem::setPreferredWidth(qreal)

*/ @QtDeclaredFinal @QtUninvokable public default void setPreferredWidth(double width){ Impl.setPreferredWidth_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), width); } /** *

See QGraphicsLayoutItem::setSizePolicy(QSizePolicy)

*/ @QtDeclaredFinal @QtUninvokable public default void setSizePolicy(io.qt.widgets.@NonNull QSizePolicy policy){ Impl.setSizePolicy_native_cref_QSizePolicy(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(policy)); } /** *

See QGraphicsLayoutItem::setSizePolicy(QSizePolicy::Policy,QSizePolicy::Policy,QSizePolicy::ControlType)

*/ @QtDeclaredFinal @QtUninvokable public default void setSizePolicy(io.qt.widgets.QSizePolicy.@NonNull Policy hPolicy, io.qt.widgets.QSizePolicy.@NonNull Policy vPolicy, io.qt.widgets.QSizePolicy.@NonNull ControlType controlType){ Impl.setSizePolicy_native_QSizePolicy_Policy_QSizePolicy_Policy_QSizePolicy_ControlType(QtJambi_LibraryUtilities.internal.nativeId(this), hPolicy.value(), vPolicy.value(), controlType.value()); } /** *

See QGraphicsLayoutItem::sizePolicy()const

*/ @QtDeclaredFinal @QtUninvokable public default io.qt.widgets.@NonNull QSizePolicy sizePolicy(){ return Impl.sizePolicy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QGraphicsLayoutItem::getContentsMargins(qreal*,qreal*,qreal*,qreal*)const

*/ @QtUninvokable public default void getContentsMargins(double @NonNull[] margins){ if(margins.length<4) throw new IllegalArgumentException("An array of length 4 expected."); Impl.getContentsMargins_native_qreal_ptr_qreal_ptr_qreal_ptr_qreal_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), margins); } /** *

See QGraphicsLayoutItem::isEmpty()const

*/ @QtUninvokable public default boolean isEmpty(){ return Impl.isEmpty_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** *

See QGraphicsLayoutItem::setGeometry(QRectF)

*/ @QtUninvokable public default void setGeometry(io.qt.core.@NonNull QRectF rect){ Impl.setGeometry_native_cref_QRectF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect)); } /** *

See QGraphicsLayoutItem::updateGeometry()

*/ @QtUninvokable public default void updateGeometry(){ Impl.updateGeometry_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } /** * @see #getContentsMargins(double[]) */ @QtDeclaredFinal @QtUninvokable public default io.qt.core.QMarginsF contentsMargins(){ double[] mrg = {0.0, 0.0, 0.0, 0.0}; getContentsMargins(mrg); return new io.qt.core.QMarginsF(mrg[0], mrg[1], mrg[2], mrg[3]); } /** *

Overloaded function for {@link #effectiveSizeHint(io.qt.core.Qt.SizeHint, io.qt.core.QSizeF)} * with constraint = new io.qt.core.QSizeF().

*/ @QtDeclaredFinal @QtUninvokable public default io.qt.core.@NonNull QSizeF effectiveSizeHint(io.qt.core.Qt.@NonNull SizeHint which) { return effectiveSizeHint(which, new io.qt.core.QSizeF()); } /** *

Overloaded function for {@link #effectiveSizeHint(io.qt.core.Qt.SizeHint, io.qt.core.QSizeF)}.

*/ @QtDeclaredFinal @QtUninvokable public default io.qt.core.@NonNull QSizeF effectiveSizeHint(io.qt.core.Qt.@NonNull SizeHint which, io.qt.core.@NonNull QSize constraint) { return effectiveSizeHint(which, new io.qt.core.QSizeF(constraint)); } /** *

Overloaded function for {@link #setMaximumSize(io.qt.core.QSizeF)}.

*/ @QtDeclaredFinal @QtUninvokable public default void setMaximumSize(io.qt.core.@NonNull QSize size) { setMaximumSize(new io.qt.core.QSizeF(size)); } /** *

Overloaded function for {@link #setMinimumSize(io.qt.core.QSizeF)}.

*/ @QtDeclaredFinal @QtUninvokable public default void setMinimumSize(io.qt.core.@NonNull QSize size) { setMinimumSize(new io.qt.core.QSizeF(size)); } /** *

Overloaded function for {@link #setPreferredSize(io.qt.core.QSizeF)}.

*/ @QtDeclaredFinal @QtUninvokable public default void setPreferredSize(io.qt.core.@NonNull QSize size) { setPreferredSize(new io.qt.core.QSizeF(size)); } /** *

Overloaded function for {@link #setSizePolicy(io.qt.widgets.QSizePolicy.Policy, io.qt.widgets.QSizePolicy.Policy, io.qt.widgets.QSizePolicy.ControlType)} * with controlType = io.qt.widgets.QSizePolicy.ControlType.DefaultType.

*/ @QtDeclaredFinal @QtUninvokable public default void setSizePolicy(io.qt.widgets.QSizePolicy.@NonNull Policy hPolicy, io.qt.widgets.QSizePolicy.@NonNull Policy vPolicy) { setSizePolicy(hPolicy, vPolicy, io.qt.widgets.QSizePolicy.ControlType.DefaultType); } /** *

Overloaded function for {@link #setGeometry(io.qt.core.QRectF)}.

*/ @QtUninvokable public default void setGeometry(io.qt.core.@NonNull QRect rect) { setGeometry(new io.qt.core.QRectF(rect)); } /** * @hidden */ public static class MemberAccess extends io.qt.MemberAccess { private MemberAccess(QGraphicsLayoutItem instance){ super(instance); } @QtUninvokable public final void setGraphicsItem(io.qt.widgets.@Nullable QGraphicsItem item){ QGraphicsLayoutItem instance = instance(); QGraphicsLayoutItem.Impl.setGraphicsItem_native_QGraphicsItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(instance), QtJambi_LibraryUtilities.internal.checkedNativeId(item)); QtJambi_LibraryUtilities.internal.setReferenceCount(instance, io.qt.widgets.QGraphicsLayoutItem.class, "__rcItem", false, false, item); } @QtUninvokable public final void setOwnedByLayout(boolean ownedByLayout){ QGraphicsLayoutItem instance = instance(); boolean oldValue = instance.ownedByLayout(); QGraphicsLayoutItem.Impl.setOwnedByLayout_native_bool(QtJambi_LibraryUtilities.internal.nativeId(instance), ownedByLayout); if(oldValue!=ownedByLayout) { if(ownedByLayout) { if(instance.parentLayoutItem()!=null && QtJambi_LibraryUtilities.internal.isJavaOwnership(instance)) { QtJambi_LibraryUtilities.internal.setCppOwnership(instance); } }else { QtJambi_LibraryUtilities.internal.setDefaultOwnership(instance); } } } public static MemberAccess of(QGraphicsLayoutItem instance){ Class callerClass = QtJambi_LibraryUtilities.internal.callerClassProvider().get(); if(!QGraphicsLayoutItem.class.isAssignableFrom(callerClass) || !callerClass.isInstance(instance)) throw new RuntimeException("Access to restricted functions of class QGraphicsLayoutItem is only granted from inside a user-implemented subclass."); return QtJambi_LibraryUtilities.internal.findMemberAccess(instance, QGraphicsLayoutItem.class, MemberAccess.class); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy