io.qt.core.QSize Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi Show documentation
Show all versions of qtjambi Show documentation
QtJambi base module containing QtCore, QtGui and QtWidgets.
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);
/**
*
*/
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);
/**
*
*/
@QtUninvokable
public final int height(){
return height_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int height_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final boolean isEmpty(){
return isEmpty_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isEmpty_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final boolean isNull(){
return isNull_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isNull_native_constfct(long __this__nativeId);
/**
*
*/
@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);
/**
*
*/
@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);
/**
*
*/
@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);
/**
*
*/
@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);
/**
*
*/
@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);
/**
*
*/
@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);
/**
*
*/
@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);
/**
*
*/
@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);
/**
*
*/
@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);
/**
*
*/
@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);
/**
*
*/
@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);
/**
*
*/
@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);
/**
*
*/
@QtUninvokable
public final void transpose(){
transpose_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void transpose_native(long __this__nativeId);
/**
*
*/
@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);
/**
*
*/
@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); }
/**
*
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (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);
}