io.qt.core.QSize Maven / Gradle / Ivy
package io.qt.core;
/**
* Defines the size of a two-dimensional object using integer point precision
* Java wrapper for Qt class QSize
*/
public class QSize extends io.qt.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);
/**
*
*/
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
*/
@io.qt.QtUninvokable
public final io.qt.core.QSize boundedTo(io.qt.core.QSize arg__1){
return boundedTo_native_cref_QSize_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native io.qt.core.QSize boundedTo_native_cref_QSize_constfct(long __this__nativeId, long arg__1);
/**
* See QSize::expandedTo(QSize)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QSize expandedTo(io.qt.core.QSize arg__1){
return expandedTo_native_cref_QSize_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native io.qt.core.QSize expandedTo_native_cref_QSize_constfct(long __this__nativeId, long arg__1);
/**
* See QSize::grownBy(QMargins)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QSize grownBy(io.qt.core.QMargins m){
return grownBy_native_QMargins_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(m));
}
@io.qt.QtUninvokable
private native io.qt.core.QSize grownBy_native_QMargins_constfct(long __this__nativeId, long m);
/**
*
*/
@io.qt.QtUninvokable
public final int height(){
return height_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int height_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final boolean isEmpty(){
return isEmpty_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isEmpty_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final boolean isNull(){
return isNull_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isNull_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final boolean isValid(){
return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isValid_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QSize multiply(double c){
multiply_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), c);
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QSize multiply_native_qtjambireal(long __this__nativeId, double c);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QSize add(io.qt.core.QSize arg__1){
add_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QSize add_native_cref_QSize(long __this__nativeId, long arg__1);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QSize subtract(io.qt.core.QSize arg__1){
subtract_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QSize subtract_native_cref_QSize(long __this__nativeId, long arg__1);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QSize divide(double c){
divide_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), c);
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QSize divide_native_qtjambireal(long __this__nativeId, double c);
@io.qt.QtUninvokable
public void writeTo(io.qt.core.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));
}
@io.qt.QtUninvokable
private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1);
@io.qt.QtUninvokable
private final boolean operator_equal(io.qt.core.QSize s2){
return operator_equal_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(s2));
}
@io.qt.QtUninvokable
private native boolean operator_equal_native_cref_QSize(long __this__nativeId, long s2);
@io.qt.QtUninvokable
public void readFrom(io.qt.core.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));
}
@io.qt.QtUninvokable
private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1);
/**
* See QSize::scale(QSize,Qt::AspectRatioMode)
*/
@io.qt.QtUninvokable
public final void scale(io.qt.core.QSize s, io.qt.core.Qt.AspectRatioMode mode){
scale_native_cref_QSize_Qt_AspectRatioMode(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(s), mode.value());
}
@io.qt.QtUninvokable
private native void scale_native_cref_QSize_Qt_AspectRatioMode(long __this__nativeId, long s, int mode);
/**
* See QSize::scale(int,int,Qt::AspectRatioMode)
*/
@io.qt.QtUninvokable
public final void scale(int w, int h, io.qt.core.Qt.AspectRatioMode mode){
scale_native_int_int_Qt_AspectRatioMode(QtJambi_LibraryUtilities.internal.nativeId(this), w, h, mode.value());
}
@io.qt.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
*/
@io.qt.QtUninvokable
public final io.qt.core.QSize scaled(io.qt.core.QSize s, io.qt.core.Qt.AspectRatioMode mode){
return scaled_native_cref_QSize_Qt_AspectRatioMode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(s), mode.value());
}
@io.qt.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
*/
@io.qt.QtUninvokable
public final io.qt.core.QSize scaled(int w, int h, io.qt.core.Qt.AspectRatioMode mode){
return scaled_native_int_int_Qt_AspectRatioMode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), w, h, mode.value());
}
@io.qt.QtUninvokable
private native io.qt.core.QSize scaled_native_int_int_Qt_AspectRatioMode_constfct(long __this__nativeId, int w, int h, int mode);
/**
*
*/
@io.qt.QtUninvokable
public final void setHeight(int h){
setHeight_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), h);
}
@io.qt.QtUninvokable
private native void setHeight_native_int(long __this__nativeId, int h);
/**
*
*/
@io.qt.QtUninvokable
public final void setWidth(int w){
setWidth_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), w);
}
@io.qt.QtUninvokable
private native void setWidth_native_int(long __this__nativeId, int w);
/**
* See QSize::shrunkBy(QMargins)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QSize shrunkBy(io.qt.core.QMargins m){
return shrunkBy_native_QMargins_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(m));
}
@io.qt.QtUninvokable
private native io.qt.core.QSize shrunkBy_native_QMargins_constfct(long __this__nativeId, long m);
/**
*
*/
@io.qt.QtUninvokable
public final void transpose(){
transpose_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void transpose_native(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QSize transposed(){
return transposed_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QSize transposed_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final int width(){
return width_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int width_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QSize(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.core.QSize) {
return operator_equal((io.qt.core.QSize) other);
}
return false;
}
@io.qt.QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native static int hashCode_native(long __this_nativeId);
@Override
@io.qt.QtUninvokable
public String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private static native String toString_native(long __this_nativeId);
@Override
public QSize clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QSize clone_native(long __this_nativeId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy