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

io.qt.gui.QPageRanges Maven / Gradle / Ivy

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

import io.qt.*;


/**
 * 

Represents a collection of page ranges

*

Java wrapper for Qt class QPageRanges

*/ public class QPageRanges extends QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

QPageRanges::Range struct holds the from and to endpoints of a range

*

Java wrapper for Qt class QPageRanges::Range

*/ public static class Range extends QtObject implements java.lang.Comparable, java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QPageRanges::Range::Range()

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

See QPageRanges::Range::Range(QPageRanges::Range)

*/ public Range(io.qt.gui.QPageRanges.@NonNull Range other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(Range instance, io.qt.gui.QPageRanges.Range other); /** *

See QPageRanges::Range::Range{int,int}

*/ public Range(int from, int to){ super((QPrivateConstructor)null); initialize_native(this, from, to); } private native static void initialize_native(Range instance, int from, int to); /** *

See QPageRanges::Range::contains(int)const

*/ @QtUninvokable public final boolean contains(int pageNumber){ return contains_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), pageNumber); } @QtUninvokable private native boolean contains_native_int_constfct(long __this__nativeId, int pageNumber); /** *

See operator<(QPageRanges::Range,QPageRanges::Range)

*/ @QtUninvokable private final boolean operator_less(io.qt.gui.QPageRanges.@NonNull Range rhs){ return operator_less_native_QPageRanges_Range(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs)); } @QtUninvokable private native boolean operator_less_native_QPageRanges_Range(long __this__nativeId, long rhs); /** *

See operator==(QPageRanges::Range,QPageRanges::Range)

*/ @QtUninvokable public final boolean equals(io.qt.gui.QPageRanges.@NonNull Range rhs){ return equals_native_QPageRanges_Range(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs)); } @QtUninvokable private native boolean equals_native_QPageRanges_Range(long __this__nativeId, long rhs); /** *

The lower endpoint of the range

*

See QPageRanges::Range::from

*/ @QtUninvokable public final void setFrom(int from){ setFrom_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), from); } @QtUninvokable private native void setFrom_native_int(long __this__nativeId, int from); /** *

The lower endpoint of the range

*

See QPageRanges::Range::from

*/ @QtUninvokable public final int from(){ return from_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int from_native(long __this__nativeId); /** *

The upper endpoint of the range

*

See QPageRanges::Range::to

*/ @QtUninvokable public final void setTo(int to){ setTo_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), to); } @QtUninvokable private native void setTo_native_int(long __this__nativeId, int to); /** *

The upper endpoint of the range

*

See QPageRanges::Range::to

*/ @QtUninvokable public final int to(){ return to_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int to_native(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected Range(QPrivateConstructor p) { super(p); } /** *

See operator==(QPageRanges::Range,QPageRanges::Range)

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.gui.QPageRanges.Range) { return equals((io.qt.gui.QPageRanges.Range) other); } return false; } /** *

See operator<(QPageRanges::Range,QPageRanges::Range)

*/ /** * {@inheritDoc} */ @QtUninvokable public int compareTo(io.qt.gui.QPageRanges.@StrictNonNull Range other) { if (equals(other)) return 0; else if (operator_less(other)) return -1; else return 1; } /** * Returns the objects's hash code computed by qHash(QPageRanges::Range). */ @QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native static int hashCode_native(long __this_nativeId); /** *

Creates and returns a copy of this object.

See QPageRanges::Range::Range(QPageRanges::Range)

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

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

*/ @QtUninvokable public final int getFrom() { return from(); } /** * @hidden *

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

*/ @QtUninvokable public final int getTo() { return to(); } } /** *

See QPageRanges::QPageRanges()

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

See QPageRanges::QPageRanges(QPageRanges)

*/ public QPageRanges(io.qt.gui.@NonNull QPageRanges other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QPageRanges instance, io.qt.gui.QPageRanges other); /** *

See QPageRanges::addPage(int)

*/ @QtUninvokable public final void addPage(int pageNumber){ addPage_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), pageNumber); } @QtUninvokable private native void addPage_native_int(long __this__nativeId, int pageNumber); /** *

See QPageRanges::addRange(int,int)

*/ @QtUninvokable public final void addRange(int from, int to){ addRange_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), from, to); } @QtUninvokable private native void addRange_native_int_int(long __this__nativeId, int from, int to); /** *

See QPageRanges::clear()

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

See QPageRanges::contains(int)const

*/ @QtUninvokable public final boolean contains(int pageNumber){ return contains_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), pageNumber); } @QtUninvokable private native boolean contains_native_int_constfct(long __this__nativeId, int pageNumber); /** *

See QPageRanges::detach()

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

See QPageRanges::firstPage()const

*/ @QtUninvokable public final int firstPage(){ return firstPage_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int firstPage_native_constfct(long __this__nativeId); /** *

See QPageRanges::isEmpty()const

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

See QPageRanges::lastPage()const

*/ @QtUninvokable public final int lastPage(){ return lastPage_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int lastPage_native_constfct(long __this__nativeId); /** *

See operator<<(QDataStream&,QPageRanges)

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

See QPageRanges::operator=(QPageRanges)

*/ @QtUninvokable public final void assign(io.qt.gui.@NonNull QPageRanges other){ assign_native_cref_QPageRanges(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void assign_native_cref_QPageRanges(long __this__nativeId, long other); /** *

See operator==(QPageRanges,QPageRanges)

*/ @QtUninvokable public final boolean equals(io.qt.gui.@NonNull QPageRanges rhs){ return equals_native_cref_QPageRanges(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs)); } @QtUninvokable private native boolean equals_native_cref_QPageRanges(long __this__nativeId, long rhs); /** *

See operator>>(QDataStream&,QPageRanges&)

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

See QPageRanges::swap(QPageRanges&)

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

See QPageRanges::toRangeList()const

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

See QPageRanges::toString()const

*/ @QtUninvokable public final java.lang.@NonNull String toString(){ return toString_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String toString_native_constfct(long __this__nativeId); /** *

See QPageRanges::fromString(QString)

*/ public native static io.qt.gui.@NonNull QPageRanges fromString(java.lang.@NonNull String ranges); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QPageRanges(QPrivateConstructor p) { super(p); } /** *

See operator==(QPageRanges,QPageRanges)

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.gui.QPageRanges) { return equals((io.qt.gui.QPageRanges) other); } return false; } /** * Returns the objects's hash code computed by qHash(QPageRanges). */ @QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native static int hashCode_native(long __this_nativeId); /** *

Creates and returns a copy of this object.

See QPageRanges::QPageRanges(QPageRanges)

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy