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

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

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

import io.qt.*;


/**
 * 

Defines the size of a two-dimensional object using integer point precision

*

Java wrapper for Qt class QSize

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

See QSize::QSize()

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

See QSize::QSize(QSize)

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

See QSize::QSize(int,int)

*/ public QSize(int w, int h){ super((QPrivateConstructor)null); initialize_native(this, w, h); } private native static void initialize_native(QSize instance, int w, int h); /** *

See QSize::boundedTo(QSize)const

*/ @QtUninvokable public final io.qt.core.@NonNull QSize boundedTo(io.qt.core.@NonNull QSize arg__1){ return boundedTo_native_cref_QSize_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native io.qt.core.QSize boundedTo_native_cref_QSize_constfct(long __this__nativeId, long arg__1); /** *

See QSize::expandedTo(QSize)const

*/ @QtUninvokable public final io.qt.core.@NonNull QSize expandedTo(io.qt.core.@NonNull QSize arg__1){ return expandedTo_native_cref_QSize_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native io.qt.core.QSize expandedTo_native_cref_QSize_constfct(long __this__nativeId, long arg__1); /** *

See QSize::grownBy(QMargins)const

*/ @QtUninvokable public final io.qt.core.@NonNull QSize grownBy(io.qt.core.@NonNull QMargins m){ return grownBy_native_QMargins_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(m)); } @QtUninvokable private native io.qt.core.QSize grownBy_native_QMargins_constfct(long __this__nativeId, long m); /** *

See QSize::height()const

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

See QSize::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 QSize::isNull()const

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

See QSize::isValid()const

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

See operator*(QSize,qreal)

*/ @QtUninvokable public final io.qt.core.@NonNull QSize times(double c){ return times_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), c); } @QtUninvokable private native io.qt.core.QSize times_native_qreal(long __this__nativeId, double c); /** *

See QSize::operator*=(qreal)

*/ @QtUninvokable public final @NonNull QSize multiply(double c){ return multiply_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), c); } @QtUninvokable private native QSize multiply_native_qreal(long __this__nativeId, double c); /** *

See operator+(QSize,QSize)

*/ @QtUninvokable public final io.qt.core.@NonNull QSize plus(io.qt.core.@NonNull QSize s2){ return plus_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(s2)); } @QtUninvokable private native io.qt.core.QSize plus_native_cref_QSize(long __this__nativeId, long s2); /** *

See QSize::operator+=(QSize)

*/ @QtUninvokable public final @NonNull QSize add(io.qt.core.@NonNull QSize arg__1){ return add_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native QSize add_native_cref_QSize(long __this__nativeId, long arg__1); /** *

See operator-(QSize,QSize)

*/ @QtUninvokable public final io.qt.core.@NonNull QSize minus(io.qt.core.@NonNull QSize s2){ return minus_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(s2)); } @QtUninvokable private native io.qt.core.QSize minus_native_cref_QSize(long __this__nativeId, long s2); /** *

See QSize::operator-=(QSize)

*/ @QtUninvokable public final @NonNull QSize subtract(io.qt.core.@NonNull QSize arg__1){ return subtract_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native QSize subtract_native_cref_QSize(long __this__nativeId, long arg__1); /** *

See operator/(QSize,qreal)

*/ @QtUninvokable public final io.qt.core.@NonNull QSize div(double c){ return div_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), c); } @QtUninvokable private native io.qt.core.QSize div_native_qreal(long __this__nativeId, double c); /** *

See QSize::operator/=(qreal)

*/ @QtUninvokable public final @NonNull QSize divide(double c){ return divide_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), c); } @QtUninvokable private native QSize divide_native_qreal(long __this__nativeId, double c); /** *

See operator<<(QDataStream&,QSize)

*/ @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 operator==(QSize,QSize)

*/ @QtUninvokable public final boolean equals(io.qt.core.@NonNull QSize s2){ return equals_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(s2)); } @QtUninvokable private native boolean equals_native_cref_QSize(long __this__nativeId, long s2); /** *

See operator>>(QDataStream&,QSize&)

*/ @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 QSize::scale(QSize,Qt::AspectRatioMode)

*/ @QtUninvokable public final void scale(io.qt.core.@NonNull QSize s, io.qt.core.Qt.@NonNull AspectRatioMode mode){ scale_native_cref_QSize_Qt_AspectRatioMode(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(s), mode.value()); } @QtUninvokable private native void scale_native_cref_QSize_Qt_AspectRatioMode(long __this__nativeId, long s, int mode); /** *

See QSize::scale(int,int,Qt::AspectRatioMode)

*/ @QtUninvokable public final void scale(int w, int h, io.qt.core.Qt.@NonNull AspectRatioMode mode){ scale_native_int_int_Qt_AspectRatioMode(QtJambi_LibraryUtilities.internal.nativeId(this), w, h, mode.value()); } @QtUninvokable private native void scale_native_int_int_Qt_AspectRatioMode(long __this__nativeId, int w, int h, int mode); /** *

See QSize::scaled(QSize,Qt::AspectRatioMode)const

*/ @QtUninvokable public final io.qt.core.@NonNull QSize scaled(io.qt.core.@NonNull QSize s, io.qt.core.Qt.@NonNull AspectRatioMode mode){ return scaled_native_cref_QSize_Qt_AspectRatioMode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(s), mode.value()); } @QtUninvokable private native io.qt.core.QSize scaled_native_cref_QSize_Qt_AspectRatioMode_constfct(long __this__nativeId, long s, int mode); /** *

See QSize::scaled(int,int,Qt::AspectRatioMode)const

*/ @QtUninvokable public final io.qt.core.@NonNull QSize scaled(int w, int h, io.qt.core.Qt.@NonNull AspectRatioMode mode){ return scaled_native_int_int_Qt_AspectRatioMode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), w, h, mode.value()); } @QtUninvokable private native io.qt.core.QSize scaled_native_int_int_Qt_AspectRatioMode_constfct(long __this__nativeId, int w, int h, int mode); /** *

See QSize::setHeight(int)

*/ @QtUninvokable public final void setHeight(int h){ setHeight_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), h); } @QtUninvokable private native void setHeight_native_int(long __this__nativeId, int h); /** *

See QSize::setWidth(int)

*/ @QtUninvokable public final void setWidth(int w){ setWidth_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), w); } @QtUninvokable private native void setWidth_native_int(long __this__nativeId, int w); /** *

See QSize::shrunkBy(QMargins)const

*/ @QtUninvokable public final io.qt.core.@NonNull QSize shrunkBy(io.qt.core.@NonNull QMargins m){ return shrunkBy_native_QMargins_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(m)); } @QtUninvokable private native io.qt.core.QSize shrunkBy_native_QMargins_constfct(long __this__nativeId, long m); /** *

See QSize::toSizeF()const

*

This function was introduced in Qt 6.4.

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

See QSize::transpose()

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

See QSize::transposed()const

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

See QSize::width()const

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

See operator==(QSize,QSize)

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

See operator<<(QDebug,QSize)

*/ @QtUninvokable @Override public @NonNull String toString() { return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private static native String toString_native(long __this_nativeId); /** *

Creates and returns a copy of this object.

See QSize::QSize(QSize)

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy