io.qt.widgets.QFormLayout Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Manages forms of input widgets and their associated labels
* Java wrapper for Qt class QFormLayout
*/
public class QFormLayout extends io.qt.widgets.QLayout
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QFormLayout.class);
/**
* Java wrapper for Qt enum QFormLayout::FieldGrowthPolicy
*/
public enum FieldGrowthPolicy implements QtEnumerator {
/**
* Representing QFormLayout:: FieldsStayAtSizeHint
*/
FieldsStayAtSizeHint(0),
/**
* Representing QFormLayout:: ExpandingFieldsGrow
*/
ExpandingFieldsGrow(1),
/**
* Representing QFormLayout:: AllNonFixedFieldsGrow
*/
AllNonFixedFieldsGrow(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private FieldGrowthPolicy(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 FieldGrowthPolicy resolve(int value) {
switch (value) {
case 0: return FieldsStayAtSizeHint;
case 1: return ExpandingFieldsGrow;
case 2: return AllNonFixedFieldsGrow;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QFormLayout::ItemRole
*/
public enum ItemRole implements QtEnumerator {
/**
* Representing QFormLayout:: LabelRole
*/
LabelRole(0),
/**
* Representing QFormLayout:: FieldRole
*/
FieldRole(1),
/**
* Representing QFormLayout:: SpanningRole
*/
SpanningRole(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private ItemRole(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 ItemRole resolve(int value) {
switch (value) {
case 0: return LabelRole;
case 1: return FieldRole;
case 2: return SpanningRole;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QFormLayout::RowWrapPolicy
*/
public enum RowWrapPolicy implements QtEnumerator {
/**
* Representing QFormLayout:: DontWrapRows
*/
DontWrapRows(0),
/**
* Representing QFormLayout:: WrapLongRows
*/
WrapLongRows(1),
/**
* Representing QFormLayout:: WrapAllRows
*/
WrapAllRows(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private RowWrapPolicy(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 RowWrapPolicy resolve(int value) {
switch (value) {
case 0: return DontWrapRows;
case 1: return WrapLongRows;
case 2: return WrapAllRows;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Contains the result of a QFormLayout::takeRow() call
* Java wrapper for Qt class QFormLayout::TakeRowResult
*/
public static class TakeRowResult extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QFormLayout::TakeRowResult:: TakeRowResult()
*/
public TakeRowResult(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(TakeRowResult instance);
/**
* See QFormLayout::TakeRowResult:: TakeRowResult(QFormLayout::TakeRowResult)
*/
public TakeRowResult(io.qt.widgets.QFormLayout.@NonNull TakeRowResult other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(TakeRowResult instance, io.qt.widgets.QFormLayout.TakeRowResult other);
/**
* See QFormLayout::TakeRowResult:: TakeRowResult{QLayoutItem*, QLayoutItem*}
*/
public TakeRowResult(io.qt.widgets.@Nullable QLayoutItem labelItem, io.qt.widgets.@Nullable QLayoutItem fieldItem){
super((QPrivateConstructor)null);
initialize_native(this, labelItem, fieldItem);
}
private native static void initialize_native(TakeRowResult instance, io.qt.widgets.QLayoutItem labelItem, io.qt.widgets.QLayoutItem fieldItem);
/**
* See QFormLayout::TakeRowResult:: fieldItem
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QLayoutItem fieldItem(){
return fieldItem_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QLayoutItem fieldItem_native(long __this__nativeId);
/**
* See QFormLayout::TakeRowResult:: labelItem
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QLayoutItem labelItem(){
return labelItem_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QLayoutItem labelItem_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected TakeRowResult(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
See QFormLayout::TakeRowResult:: TakeRowResult(QFormLayout::TakeRowResult)
*/
@QtUninvokable
@Override
public TakeRowResult clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native TakeRowResult clone_native(long __this_nativeId);
/**
* @hidden
* Kotlin property getter. In Java use {@link #fieldItem()} instead.
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QLayoutItem getFieldItem() {
return fieldItem();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #labelItem()} instead.
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QLayoutItem getLabelItem() {
return labelItem();
}
}
/**
* See QFormLayout:: QFormLayout(QWidget*)
*/
public QFormLayout(io.qt.widgets.@Nullable QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QFormLayout instance, io.qt.widgets.QWidget parent);
/**
* See QFormLayout:: addRow(QLayout*)
*/
@QtUninvokable
public final void addRow(io.qt.widgets.@StrictNonNull QLayout layout){
java.util.Objects.requireNonNull(layout, "Argument 'layout': null not expected.");
addRow_native_QLayout_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(layout));
}
@QtUninvokable
private native void addRow_native_QLayout_ptr(long __this__nativeId, long layout);
/**
* See QFormLayout:: addRow(QString, QLayout*)
*/
@QtUninvokable
public final void addRow(java.lang.@NonNull String labelText, io.qt.widgets.@StrictNonNull QLayout field){
java.util.Objects.requireNonNull(field, "Argument 'field': null not expected.");
addRow_native_cref_QString_QLayout_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), labelText, QtJambi_LibraryUtilities.internal.checkedNativeId(field));
}
@QtUninvokable
private native void addRow_native_cref_QString_QLayout_ptr(long __this__nativeId, java.lang.String labelText, long field);
/**
* See QFormLayout:: addRow(QString, QWidget*)
*/
@QtUninvokable
public final void addRow(java.lang.@NonNull String labelText, io.qt.widgets.@StrictNonNull QWidget field){
if(QWidgetItem.hasWidgetItemV2(field))
throw new IllegalArgumentException("Widget is already a layout member.");
java.util.Objects.requireNonNull(field, "Argument 'field': null not expected.");
addRow_native_cref_QString_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), labelText, QtJambi_LibraryUtilities.internal.checkedNativeId(field));
if (field.parent()==null) {
QtJambi_LibraryUtilities.internal.addReferenceCount(this, io.qt.widgets.QLayout.class, "__rcLayoutedObjects", false, false, field);
}
}
@QtUninvokable
private native void addRow_native_cref_QString_QWidget_ptr(long __this__nativeId, java.lang.String labelText, long field);
/**
* See QFormLayout:: addRow(QWidget*)
*/
@QtUninvokable
public final void addRow(io.qt.widgets.@StrictNonNull QWidget widget){
if(QWidgetItem.hasWidgetItemV2(widget))
throw new IllegalArgumentException("Widget is already a layout member.");
java.util.Objects.requireNonNull(widget, "Argument 'widget': null not expected.");
addRow_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
if (widget.parent()==null) {
QtJambi_LibraryUtilities.internal.addReferenceCount(this, io.qt.widgets.QLayout.class, "__rcLayoutedObjects", false, false, widget);
}
}
@QtUninvokable
private native void addRow_native_QWidget_ptr(long __this__nativeId, long widget);
/**
* See QFormLayout:: addRow(QWidget*, QLayout*)
*/
@QtUninvokable
public final void addRow(io.qt.widgets.@StrictNonNull QWidget label, io.qt.widgets.@Nullable QLayout field){
if(QWidgetItem.hasWidgetItemV2(label))
throw new IllegalArgumentException("Widget is already a layout member.");
java.util.Objects.requireNonNull(label, "Argument 'label': null not expected.");
addRow_native_QWidget_ptr_QLayout_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(label), QtJambi_LibraryUtilities.internal.checkedNativeId(field));
if (label.parent()==null) {
QtJambi_LibraryUtilities.internal.addReferenceCount(this, io.qt.widgets.QLayout.class, "__rcLayoutedObjects", false, false, label);
}
}
@QtUninvokable
private native void addRow_native_QWidget_ptr_QLayout_ptr(long __this__nativeId, long label, long field);
/**
* See QFormLayout:: addRow(QWidget*, QWidget*)
*/
@QtUninvokable
public final void addRow(io.qt.widgets.@StrictNonNull QWidget label, io.qt.widgets.@StrictNonNull QWidget field){
if(QWidgetItem.hasWidgetItemV2(label))
throw new IllegalArgumentException("Widget is already a layout member.");
if(QWidgetItem.hasWidgetItemV2(field))
throw new IllegalArgumentException("Widget is already a layout member.");
java.util.Objects.requireNonNull(label, "Argument 'label': null not expected.");
java.util.Objects.requireNonNull(field, "Argument 'field': null not expected.");
addRow_native_QWidget_ptr_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(label), QtJambi_LibraryUtilities.internal.checkedNativeId(field));
if (label.parent()==null) {
QtJambi_LibraryUtilities.internal.addReferenceCount(this, io.qt.widgets.QLayout.class, "__rcLayoutedObjects", false, false, label);
}
if (field.parent()==null) {
QtJambi_LibraryUtilities.internal.addReferenceCount(this, io.qt.widgets.QLayout.class, "__rcLayoutedObjects", false, false, field);
}
}
@QtUninvokable
private native void addRow_native_QWidget_ptr_QWidget_ptr(long __this__nativeId, long label, long field);
/**
* See QFormLayout:: fieldGrowthPolicy()const
*/
@QtPropertyReader(name="fieldGrowthPolicy")
@QtUninvokable
public final io.qt.widgets.QFormLayout.@NonNull FieldGrowthPolicy fieldGrowthPolicy(){
return io.qt.widgets.QFormLayout.FieldGrowthPolicy.resolve(fieldGrowthPolicy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int fieldGrowthPolicy_native_constfct(long __this__nativeId);
/**
* See QFormLayout:: formAlignment()const
*/
@QtPropertyReader(name="formAlignment")
@QtUninvokable
public final io.qt.core.Qt.@NonNull Alignment formAlignment(){
return new io.qt.core.Qt.Alignment(formAlignment_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int formAlignment_native_constfct(long __this__nativeId);
/**
* See QFormLayout:: getItemPosition(int, int*, QFormLayout::ItemRole*)const
*/
@QtUninvokable
public final io.qt.widgets.QFormLayout.@StrictNonNull ItemInfo getItemPosition(int index){
return getItemPosition_native_int_int_ptr_QFormLayout_ItemRole_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native io.qt.widgets.QFormLayout.ItemInfo getItemPosition_native_int_int_ptr_QFormLayout_ItemRole_ptr_constfct(long __this__nativeId, int index);
/**
* See QFormLayout:: getLayoutPosition(QLayout*, int*, QFormLayout::ItemRole*)const
*/
@QtUninvokable
public final io.qt.widgets.QFormLayout.@StrictNonNull ItemInfo getLayoutPosition(io.qt.widgets.@Nullable QLayout layout){
return getLayoutPosition_native_QLayout_ptr_int_ptr_QFormLayout_ItemRole_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(layout));
}
@QtUninvokable
private native io.qt.widgets.QFormLayout.ItemInfo getLayoutPosition_native_QLayout_ptr_int_ptr_QFormLayout_ItemRole_ptr_constfct(long __this__nativeId, long layout);
/**
* See QFormLayout:: getWidgetPosition(QWidget*, int*, QFormLayout::ItemRole*)const
*/
@QtUninvokable
public final io.qt.widgets.QFormLayout.@StrictNonNull ItemInfo getWidgetPosition(io.qt.widgets.@Nullable QWidget widget){
return getWidgetPosition_native_QWidget_ptr_int_ptr_QFormLayout_ItemRole_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native io.qt.widgets.QFormLayout.ItemInfo getWidgetPosition_native_QWidget_ptr_int_ptr_QFormLayout_ItemRole_ptr_constfct(long __this__nativeId, long widget);
/**
* See QFormLayout:: horizontalSpacing()const
*/
@QtPropertyReader(name="horizontalSpacing")
@QtUninvokable
public final int horizontalSpacing(){
return horizontalSpacing_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int horizontalSpacing_native_constfct(long __this__nativeId);
/**
* See QFormLayout:: insertRow(int, QLayout*)
*/
@QtUninvokable
public final void insertRow(int row, io.qt.widgets.@StrictNonNull QLayout layout){
java.util.Objects.requireNonNull(layout, "Argument 'layout': null not expected.");
insertRow_native_int_QLayout_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), row, QtJambi_LibraryUtilities.internal.checkedNativeId(layout));
}
@QtUninvokable
private native void insertRow_native_int_QLayout_ptr(long __this__nativeId, int row, long layout);
/**
* See QFormLayout:: insertRow(int, QString, QLayout*)
*/
@QtUninvokable
public final void insertRow(int row, java.lang.@NonNull String labelText, io.qt.widgets.@StrictNonNull QLayout field){
java.util.Objects.requireNonNull(field, "Argument 'field': null not expected.");
insertRow_native_int_cref_QString_QLayout_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), row, labelText, QtJambi_LibraryUtilities.internal.checkedNativeId(field));
}
@QtUninvokable
private native void insertRow_native_int_cref_QString_QLayout_ptr(long __this__nativeId, int row, java.lang.String labelText, long field);
/**
* See QFormLayout:: insertRow(int, QString, QWidget*)
*/
@QtUninvokable
public final void insertRow(int row, java.lang.@NonNull String labelText, io.qt.widgets.@StrictNonNull QWidget field){
if(QWidgetItem.hasWidgetItemV2(field))
throw new IllegalArgumentException("Widget is already a layout member.");
java.util.Objects.requireNonNull(field, "Argument 'field': null not expected.");
insertRow_native_int_cref_QString_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), row, labelText, QtJambi_LibraryUtilities.internal.checkedNativeId(field));
if (field.parent()==null) {
QtJambi_LibraryUtilities.internal.addReferenceCount(this, io.qt.widgets.QLayout.class, "__rcLayoutedObjects", false, false, field);
}
}
@QtUninvokable
private native void insertRow_native_int_cref_QString_QWidget_ptr(long __this__nativeId, int row, java.lang.String labelText, long field);
/**
* See QFormLayout:: insertRow(int, QWidget*)
*/
@QtUninvokable
public final void insertRow(int row, io.qt.widgets.@StrictNonNull QWidget widget){
if(QWidgetItem.hasWidgetItemV2(widget))
throw new IllegalArgumentException("Widget is already a layout member.");
java.util.Objects.requireNonNull(widget, "Argument 'widget': null not expected.");
insertRow_native_int_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), row, QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
if (widget.parent()==null) {
QtJambi_LibraryUtilities.internal.addReferenceCount(this, io.qt.widgets.QLayout.class, "__rcLayoutedObjects", false, false, widget);
}
}
@QtUninvokable
private native void insertRow_native_int_QWidget_ptr(long __this__nativeId, int row, long widget);
/**
* See QFormLayout:: insertRow(int, QWidget*, QLayout*)
*/
@QtUninvokable
public final void insertRow(int row, io.qt.widgets.@StrictNonNull QWidget label, io.qt.widgets.@StrictNonNull QLayout field){
if(QWidgetItem.hasWidgetItemV2(label))
throw new IllegalArgumentException("Widget is already a layout member.");
java.util.Objects.requireNonNull(label, "Argument 'label': null not expected.");
java.util.Objects.requireNonNull(field, "Argument 'field': null not expected.");
insertRow_native_int_QWidget_ptr_QLayout_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), row, QtJambi_LibraryUtilities.internal.checkedNativeId(label), QtJambi_LibraryUtilities.internal.checkedNativeId(field));
if (label.parent()==null) {
QtJambi_LibraryUtilities.internal.addReferenceCount(this, io.qt.widgets.QLayout.class, "__rcLayoutedObjects", false, false, label);
}
}
@QtUninvokable
private native void insertRow_native_int_QWidget_ptr_QLayout_ptr(long __this__nativeId, int row, long label, long field);
/**
* See QFormLayout:: insertRow(int, QWidget*, QWidget*)
*/
@QtUninvokable
public final void insertRow(int row, io.qt.widgets.@StrictNonNull QWidget label, io.qt.widgets.@StrictNonNull QWidget field){
if(QWidgetItem.hasWidgetItemV2(field))
throw new IllegalArgumentException("Widget is already a layout member.");
if(QWidgetItem.hasWidgetItemV2(label))
throw new IllegalArgumentException("Widget is already a layout member.");
java.util.Objects.requireNonNull(label, "Argument 'label': null not expected.");
java.util.Objects.requireNonNull(field, "Argument 'field': null not expected.");
insertRow_native_int_QWidget_ptr_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), row, QtJambi_LibraryUtilities.internal.checkedNativeId(label), QtJambi_LibraryUtilities.internal.checkedNativeId(field));
if (label.parent()==null) {
QtJambi_LibraryUtilities.internal.addReferenceCount(this, io.qt.widgets.QLayout.class, "__rcLayoutedObjects", false, false, label);
}
if (field.parent()==null) {
QtJambi_LibraryUtilities.internal.addReferenceCount(this, io.qt.widgets.QLayout.class, "__rcLayoutedObjects", false, false, field);
}
}
@QtUninvokable
private native void insertRow_native_int_QWidget_ptr_QWidget_ptr(long __this__nativeId, int row, long label, long field);
/**
* See QFormLayout:: isRowVisible(QLayout*)const
*/
@QtUninvokable
public final boolean isRowVisible(io.qt.widgets.@Nullable QLayout layout){
return isRowVisible_native_QLayout_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(layout));
}
@QtUninvokable
private native boolean isRowVisible_native_QLayout_ptr_constfct(long __this__nativeId, long layout);
/**
* See QFormLayout:: isRowVisible(QWidget*)const
*/
@QtUninvokable
public final boolean isRowVisible(io.qt.widgets.@Nullable QWidget widget){
return isRowVisible_native_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native boolean isRowVisible_native_QWidget_ptr_constfct(long __this__nativeId, long widget);
/**
* See QFormLayout:: isRowVisible(int)const
*/
@QtUninvokable
public final boolean isRowVisible(int row){
return isRowVisible_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), row);
}
@QtUninvokable
private native boolean isRowVisible_native_int_constfct(long __this__nativeId, int row);
/**
* See QFormLayout:: itemAt(int, QFormLayout::ItemRole)const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QLayoutItem itemAt(int row, io.qt.widgets.QFormLayout.@NonNull ItemRole role){
return itemAt_native_int_QFormLayout_ItemRole_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), row, role.value());
}
@QtUninvokable
private native io.qt.widgets.QLayoutItem itemAt_native_int_QFormLayout_ItemRole_constfct(long __this__nativeId, int row, int role);
/**
* See QFormLayout:: labelAlignment()const
*/
@QtPropertyReader(name="labelAlignment")
@QtUninvokable
public final io.qt.core.Qt.@NonNull Alignment labelAlignment(){
return new io.qt.core.Qt.Alignment(labelAlignment_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int labelAlignment_native_constfct(long __this__nativeId);
/**
* See QFormLayout:: labelForField(QLayout*)const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QWidget labelForField(io.qt.widgets.@Nullable QLayout field){
return labelForField_native_QLayout_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(field));
}
@QtUninvokable
private native io.qt.widgets.QWidget labelForField_native_QLayout_ptr_constfct(long __this__nativeId, long field);
/**
* See QFormLayout:: labelForField(QWidget*)const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QWidget labelForField(io.qt.widgets.@Nullable QWidget field){
return labelForField_native_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(field));
}
@QtUninvokable
private native io.qt.widgets.QWidget labelForField_native_QWidget_ptr_constfct(long __this__nativeId, long field);
/**
* See QFormLayout:: removeRow(QLayout*)
*/
@QtUninvokable
public final void removeRow(io.qt.widgets.@StrictNonNull QLayout layout){
java.util.Objects.requireNonNull(layout, "Argument 'layout': null not expected.");
removeRow_native_QLayout_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(layout));
}
@QtUninvokable
private native void removeRow_native_QLayout_ptr(long __this__nativeId, long layout);
/**
* See QFormLayout:: removeRow(QWidget*)
*/
@QtUninvokable
public final void removeRow(io.qt.widgets.@StrictNonNull QWidget widget){
java.util.Objects.requireNonNull(widget, "Argument 'widget': null not expected.");
removeRow_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
QtJambi_LibraryUtilities.internal.removeFromCollectionReferenceCount(this, io.qt.widgets.QLayout.class, "__rcLayoutedObjects", false, widget);
}
@QtUninvokable
private native void removeRow_native_QWidget_ptr(long __this__nativeId, long widget);
/**
* See QFormLayout:: removeRow(int)
*/
@QtUninvokable
public final void removeRow(int row){
removeRow_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), row);
}
@QtUninvokable
private native void removeRow_native_int(long __this__nativeId, int row);
/**
* See QFormLayout:: rowCount()const
*/
@QtUninvokable
public final int rowCount(){
return rowCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int rowCount_native_constfct(long __this__nativeId);
/**
* See QFormLayout:: rowWrapPolicy()const
*/
@QtPropertyReader(name="rowWrapPolicy")
@QtUninvokable
public final io.qt.widgets.QFormLayout.@NonNull RowWrapPolicy rowWrapPolicy(){
return io.qt.widgets.QFormLayout.RowWrapPolicy.resolve(rowWrapPolicy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int rowWrapPolicy_native_constfct(long __this__nativeId);
/**
* See QFormLayout:: setFieldGrowthPolicy(QFormLayout::FieldGrowthPolicy)
*/
@QtPropertyWriter(name="fieldGrowthPolicy")
@QtUninvokable
public final void setFieldGrowthPolicy(io.qt.widgets.QFormLayout.@NonNull FieldGrowthPolicy policy){
setFieldGrowthPolicy_native_QFormLayout_FieldGrowthPolicy(QtJambi_LibraryUtilities.internal.nativeId(this), policy.value());
}
@QtUninvokable
private native void setFieldGrowthPolicy_native_QFormLayout_FieldGrowthPolicy(long __this__nativeId, int policy);
/**
* See QFormLayout:: setFormAlignment(Qt::Alignment)
*/
@QtPropertyWriter(name="formAlignment")
@QtUninvokable
public final void setFormAlignment(io.qt.core.Qt.@NonNull Alignment alignment){
setFormAlignment_native_Qt_Alignment(QtJambi_LibraryUtilities.internal.nativeId(this), alignment.value());
}
@QtUninvokable
private native void setFormAlignment_native_Qt_Alignment(long __this__nativeId, int alignment);
/**
* See QFormLayout:: setHorizontalSpacing(int)
*/
@QtPropertyWriter(name="horizontalSpacing")
@QtUninvokable
public final void setHorizontalSpacing(int spacing){
setHorizontalSpacing_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), spacing);
}
@QtUninvokable
private native void setHorizontalSpacing_native_int(long __this__nativeId, int spacing);
/**
* See QFormLayout:: setItem(int, QFormLayout::ItemRole, QLayoutItem*)
*/
@QtUninvokable
public final void setItem(int row, io.qt.widgets.QFormLayout.@NonNull ItemRole role, io.qt.widgets.@StrictNonNull QLayoutItem item){
java.util.Objects.requireNonNull(item, "Argument 'item': null not expected.");
if (itemAt(row, role)!=null)
throw new IllegalArgumentException("Cell in form layout is already occupied");
QWidget widget = item.widget();
setItem_native_int_QFormLayout_ItemRole_QLayoutItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), row, role.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
QtJambi_LibraryUtilities.internal.setCppOwnership(item);
if(widget!=null && widget.parent()==null){
QtJambi_LibraryUtilities.internal.addReferenceCount(this, io.qt.widgets.QLayout.class, "__rcLayoutedObjects", false, false, widget);
}
}
@QtUninvokable
private native void setItem_native_int_QFormLayout_ItemRole_QLayoutItem_ptr(long __this__nativeId, int row, int role, long item);
/**
* See QFormLayout:: setLabelAlignment(Qt::Alignment)
*/
@QtPropertyWriter(name="labelAlignment")
@QtUninvokable
public final void setLabelAlignment(io.qt.core.Qt.@NonNull Alignment alignment){
setLabelAlignment_native_Qt_Alignment(QtJambi_LibraryUtilities.internal.nativeId(this), alignment.value());
}
@QtUninvokable
private native void setLabelAlignment_native_Qt_Alignment(long __this__nativeId, int alignment);
/**
* See QFormLayout:: setLayout(int, QFormLayout::ItemRole, QLayout*)
*/
@QtUninvokable
public final void setLayout(int row, io.qt.widgets.QFormLayout.@NonNull ItemRole role, io.qt.widgets.@StrictNonNull QLayout layout){
java.util.Objects.requireNonNull(layout, "Argument 'layout': null not expected.");
setLayout_native_int_QFormLayout_ItemRole_QLayout_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), row, role.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(layout));
}
@QtUninvokable
private native void setLayout_native_int_QFormLayout_ItemRole_QLayout_ptr(long __this__nativeId, int row, int role, long layout);
/**
* See QFormLayout:: setRowVisible(QLayout*, bool)
*/
@QtUninvokable
public final void setRowVisible(io.qt.widgets.@Nullable QLayout layout, boolean on){
setRowVisible_native_QLayout_ptr_bool(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(layout), on);
}
@QtUninvokable
private native void setRowVisible_native_QLayout_ptr_bool(long __this__nativeId, long layout, boolean on);
/**
* See QFormLayout:: setRowVisible(QWidget*, bool)
*/
@QtUninvokable
public final void setRowVisible(io.qt.widgets.@Nullable QWidget widget, boolean on){
setRowVisible_native_QWidget_ptr_bool(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget), on);
}
@QtUninvokable
private native void setRowVisible_native_QWidget_ptr_bool(long __this__nativeId, long widget, boolean on);
/**
* See QFormLayout:: setRowVisible(int, bool)
*/
@QtUninvokable
public final void setRowVisible(int row, boolean on){
setRowVisible_native_int_bool(QtJambi_LibraryUtilities.internal.nativeId(this), row, on);
}
@QtUninvokable
private native void setRowVisible_native_int_bool(long __this__nativeId, int row, boolean on);
/**
* See QFormLayout:: setRowWrapPolicy(QFormLayout::RowWrapPolicy)
*/
@QtPropertyWriter(name="rowWrapPolicy")
@QtUninvokable
public final void setRowWrapPolicy(io.qt.widgets.QFormLayout.@NonNull RowWrapPolicy policy){
setRowWrapPolicy_native_QFormLayout_RowWrapPolicy(QtJambi_LibraryUtilities.internal.nativeId(this), policy.value());
}
@QtUninvokable
private native void setRowWrapPolicy_native_QFormLayout_RowWrapPolicy(long __this__nativeId, int policy);
/**
* See QFormLayout:: setSpacing(int)
*/
@QtUninvokable
public final void setSpacing(int arg__1){
setSpacing_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native void setSpacing_native_int(long __this__nativeId, int arg__1);
/**
* See QFormLayout:: setVerticalSpacing(int)
*/
@QtPropertyWriter(name="verticalSpacing")
@QtUninvokable
public final void setVerticalSpacing(int spacing){
setVerticalSpacing_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), spacing);
}
@QtUninvokable
private native void setVerticalSpacing_native_int(long __this__nativeId, int spacing);
/**
* See QFormLayout:: setWidget(int, QFormLayout::ItemRole, QWidget*)
*/
@QtUninvokable
public final void setWidget(int row, io.qt.widgets.QFormLayout.@NonNull ItemRole role, io.qt.widgets.@StrictNonNull QWidget widget){
if(QWidgetItem.hasWidgetItemV2(widget))
throw new IllegalArgumentException("Widget is already a layout member.");
java.util.Objects.requireNonNull(widget, "Argument 'widget': null not expected.");
setWidget_native_int_QFormLayout_ItemRole_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), row, role.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
if (widget.parent()==null) {
QtJambi_LibraryUtilities.internal.addReferenceCount(this, io.qt.widgets.QLayout.class, "__rcLayoutedObjects", false, false, widget);
}
}
@QtUninvokable
private native void setWidget_native_int_QFormLayout_ItemRole_QWidget_ptr(long __this__nativeId, int row, int role, long widget);
/**
* See QFormLayout:: spacing()const
*/
@QtUninvokable
public final int spacing(){
return spacing_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int spacing_native_constfct(long __this__nativeId);
/**
* See QFormLayout:: takeRow(QLayout*)
*/
@QtUninvokable
public final io.qt.widgets.QFormLayout.@NonNull TakeRowResult takeRow(io.qt.widgets.@StrictNonNull QLayout layout){
java.util.Objects.requireNonNull(layout, "Argument 'layout': null not expected.");
return takeRow_native_QLayout_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(layout));
}
@QtUninvokable
private native io.qt.widgets.QFormLayout.TakeRowResult takeRow_native_QLayout_ptr(long __this__nativeId, long layout);
/**
* See QFormLayout:: takeRow(QWidget*)
*/
@QtUninvokable
public final io.qt.widgets.QFormLayout.@NonNull TakeRowResult takeRow(io.qt.widgets.@StrictNonNull QWidget widget){
java.util.Objects.requireNonNull(widget, "Argument 'widget': null not expected.");
io.qt.widgets.QFormLayout.@NonNull TakeRowResult __qt_return_value = takeRow_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
QtJambi_LibraryUtilities.internal.removeFromCollectionReferenceCount(this, io.qt.widgets.QLayout.class, "__rcLayoutedObjects", false, widget);
return __qt_return_value;
}
@QtUninvokable
private native io.qt.widgets.QFormLayout.TakeRowResult takeRow_native_QWidget_ptr(long __this__nativeId, long widget);
/**
*
*/
@QtUninvokable
public final io.qt.widgets.QFormLayout.@NonNull TakeRowResult takeRow(int row){
return takeRow_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), row);
}
@QtUninvokable
private native io.qt.widgets.QFormLayout.TakeRowResult takeRow_native_int(long __this__nativeId, int row);
/**
* See QFormLayout:: verticalSpacing()const
*/
@QtPropertyReader(name="verticalSpacing")
@QtUninvokable
public final int verticalSpacing(){
return verticalSpacing_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int verticalSpacing_native_constfct(long __this__nativeId);
/**
* See QLayout:: addItem(QLayoutItem*)
*/
@QtUninvokable
@Override
public void addItem(io.qt.widgets.@StrictNonNull QLayoutItem item){
java.util.Objects.requireNonNull(item, "Argument 'item': null not expected.");
QWidget widget = item.widget();
addItem_native_QLayoutItem_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(item));
QtJambi_LibraryUtilities.internal.setCppOwnership(item);
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 item);
/**
*
*/
@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 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:: hasHeightForWidth()const
*/
@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
*/
@QtUninvokable
@Override
public int heightForWidth(int width){
return heightForWidth_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), width);
}
private native static int heightForWidth_native_int_constfct(long __this__nativeId, int width);
/**
*
*/
@QtUninvokable
@Override
public void invalidate(){
invalidate_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static void invalidate_native(long __this__nativeId);
/**
*
*/
@QtUninvokable
@Override
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);
/**
* 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 QLayoutItem:: setGeometry(QRect)
*/
@QtUninvokable
@Override
public void setGeometry(io.qt.core.@NonNull QRect rect){
setGeometry_native_cref_QRect(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
private native static void setGeometry_native_cref_QRect(long __this__nativeId, long rect);
/**
* See QLayoutItem:: sizeHint()const
*/
@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);
/**
*
*/
@QtUninvokable
@Override
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);
}
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);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QFormLayout(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QFormLayout(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QFormLayout instance, QDeclarativeConstructor constructor);
/**
* Result class for QFormLayout::getItemPosition(int,int*,QFormLayout::ItemRole*)const
,
* QFormLayout::getLayoutPosition(QLayout*,int*,QFormLayout::ItemRole*)const
and
* QFormLayout::getWidgetPosition(QWidget*,int*,QFormLayout::ItemRole*)const
.
*/
public static final class ItemInfo{
private ItemInfo(int row, ItemRole role){
this.row = row;
this.role = role;
}
public final int row;
public final ItemRole role;
}
/**
* Overloaded constructor for {@link #QFormLayout(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QFormLayout() {
this((io.qt.widgets.QWidget)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #fieldGrowthPolicy()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.widgets.QFormLayout.@NonNull FieldGrowthPolicy getFieldGrowthPolicy() {
return fieldGrowthPolicy();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #formAlignment()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.Qt.@NonNull Alignment getFormAlignment() {
return formAlignment();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #horizontalSpacing()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getHorizontalSpacing() {
return horizontalSpacing();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #labelAlignment()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.Qt.@NonNull Alignment getLabelAlignment() {
return labelAlignment();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #rowWrapPolicy()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.widgets.QFormLayout.@NonNull RowWrapPolicy getRowWrapPolicy() {
return rowWrapPolicy();
}
/**
* Overloaded function for {@link #setFormAlignment(io.qt.core.Qt.Alignment)}.
*/
@QtUninvokable
public final void setFormAlignment(io.qt.core.Qt.@NonNull AlignmentFlag @NonNull... alignment) {
setFormAlignment(new io.qt.core.Qt.Alignment(alignment));
}
/**
* Overloaded function for {@link #setLabelAlignment(io.qt.core.Qt.Alignment)}.
*/
@QtUninvokable
public final void setLabelAlignment(io.qt.core.Qt.@NonNull AlignmentFlag @NonNull... alignment) {
setLabelAlignment(new io.qt.core.Qt.Alignment(alignment));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #verticalSpacing()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getVerticalSpacing() {
return verticalSpacing();
}
}