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

io.qt.core.QItemSelection Maven / Gradle / Ivy

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

import io.qt.*;


/**
 * 

Manages information about selected items in a model

*

Java wrapper for Qt class QItemSelection

*/ public class QItemSelection extends io.qt.core.QList implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QItemSelection::QItemSelection(QModelIndex,QModelIndex)

*/ public QItemSelection(io.qt.core.@NonNull QModelIndex topLeft, io.qt.core.@NonNull QModelIndex bottomRight){ super((QPrivateConstructor)null); initialize_native(this, topLeft, bottomRight); } private native static void initialize_native(QItemSelection instance, io.qt.core.QModelIndex topLeft, io.qt.core.QModelIndex bottomRight); /** *

See QItemSelection::QtJambiItemSelection()

*/ public QItemSelection(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QItemSelection instance); /** *

See QItemSelection::QtJambiItemSelection(std::initializer_list<QItemSelectionRange>)

*/ public QItemSelection(io.qt.core.@NonNull QItemSelectionRange@NonNull ... arg__1){ super((QPrivateConstructor)null); initialize_native(this, arg__1); } private native static void initialize_native(QItemSelection instance, io.qt.core.QItemSelectionRange[] arg__1); /** *

See QItemSelection::contains(QModelIndex)const

*/ @QtUninvokable public final boolean contains(io.qt.core.@NonNull QModelIndex index){ return contains_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index)); } @QtUninvokable private native boolean contains_native_cref_QModelIndex_constfct(long __this__nativeId, long index); /** *

See QItemSelection::indexes()const

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

See QItemSelection::merge(QItemSelection,QItemSelectionModel::SelectionFlags)

*/ @QtUninvokable public final void merge(io.qt.core.@NonNull QItemSelection other, io.qt.core.QItemSelectionModel.@NonNull SelectionFlags command){ merge_native_cref_QItemSelection_QItemSelectionModel_SelectionFlags(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other), command.value()); } @QtUninvokable private native void merge_native_cref_QItemSelection_QItemSelectionModel_SelectionFlags(long __this__nativeId, long other, int command); /** *

See QItemSelection::select(QModelIndex,QModelIndex)

*/ @QtUninvokable public final void select(io.qt.core.@NonNull QModelIndex topLeft, io.qt.core.@NonNull QModelIndex bottomRight){ select_native_cref_QModelIndex_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(topLeft), QtJambi_LibraryUtilities.internal.checkedNativeId(bottomRight)); } @QtUninvokable private native void select_native_cref_QModelIndex_cref_QModelIndex(long __this__nativeId, long topLeft, long bottomRight); /** *

See swap(QItemSelection&,QItemSelection&)

*/ @QtUninvokable public final void swap(io.qt.core.@StrictNonNull QItemSelection value2){ java.util.Objects.requireNonNull(value2, "Argument 'value2': null not expected."); swap_native_ref_QItemSelection(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(value2)); } @QtUninvokable private native void swap_native_ref_QItemSelection(long __this__nativeId, long value2); /** *

See QItemSelection::split(QItemSelectionRange,QItemSelectionRange,QItemSelection*)

*/ public static io.qt.core.@StrictNonNull QItemSelection split(io.qt.core.@NonNull QItemSelectionRange range, io.qt.core.@NonNull QItemSelectionRange other){ return split_native_cref_QItemSelectionRange_cref_QItemSelectionRange_QItemSelection_ptr(QtJambi_LibraryUtilities.internal.checkedNativeId(range), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } private native static io.qt.core.QItemSelection split_native_cref_QItemSelectionRange_cref_QItemSelectionRange_QItemSelection_ptr(long range, long other); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QItemSelection(QPrivateConstructor p) { super(p); } /** * Returns the objects's hash code computed by qHash(QItemSelection). */ @QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native static int hashCode_native(long __this_nativeId); public QItemSelection(java.util.Collection other) { super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QItemSelection instance, java.util.Collection other); /** *

Creates and returns a copy of this object.

See QItemSelection::QItemSelection(QItemSelection)

*/ @QtUninvokable @Override public QItemSelection clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QItemSelection clone_native(long __this_nativeId); /** *

Overloaded function for {@link #merge(io.qt.core.QItemSelection, io.qt.core.QItemSelectionModel.SelectionFlags)}.

*/ @QtUninvokable public final void merge(io.qt.core.@NonNull QItemSelection other, io.qt.core.QItemSelectionModel.@NonNull SelectionFlag @NonNull... command) { merge(other, new io.qt.core.QItemSelectionModel.SelectionFlags(command)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy