io.qt.core.QSizeF Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core;
import io.qt.*;
/**
* Defines the size of a two-dimensional object using floating point precision
* Java wrapper for Qt class QSizeF
*/
public class QSizeF extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QSizeF:: QSizeF()
*/
public QSizeF(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QSizeF instance);
/**
*
*/
public QSizeF(io.qt.core.@NonNull QSize sz){
super((QPrivateConstructor)null);
initialize_native(this, sz);
}
private native static void initialize_native(QSizeF instance, io.qt.core.QSize sz);
/**
* See QSizeF:: QSizeF(QSizeF)
*/
public QSizeF(io.qt.core.@NonNull QSizeF other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QSizeF instance, io.qt.core.QSizeF other);
/**
* See QSizeF:: QSizeF(qreal, qreal)
*/
public QSizeF(double w, double h){
super((QPrivateConstructor)null);
initialize_native(this, w, h);
}
private native static void initialize_native(QSizeF instance, double w, double h);
/**
* See QSizeF:: boundedTo(QSizeF)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QSizeF boundedTo(io.qt.core.@NonNull QSizeF arg__1){
return boundedTo_native_cref_QSizeF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native io.qt.core.QSizeF boundedTo_native_cref_QSizeF_constfct(long __this__nativeId, long arg__1);
/**
* See QSizeF:: expandedTo(QSizeF)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QSizeF expandedTo(io.qt.core.@NonNull QSizeF arg__1){
return expandedTo_native_cref_QSizeF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native io.qt.core.QSizeF expandedTo_native_cref_QSizeF_constfct(long __this__nativeId, long arg__1);
/**
* See QSizeF:: grownBy(QMarginsF)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QSizeF grownBy(io.qt.core.@NonNull QMarginsF m){
return grownBy_native_QMarginsF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(m));
}
@QtUninvokable
private native io.qt.core.QSizeF grownBy_native_QMarginsF_constfct(long __this__nativeId, long m);
/**
*
*/
@QtUninvokable
public final double height(){
return height_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double 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*(QSizeF, qreal)
*/
@QtUninvokable
public final io.qt.core.@NonNull QSizeF times(double c){
return times_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), c);
}
@QtUninvokable
private native io.qt.core.QSizeF times_native_qreal(long __this__nativeId, double c);
/**
*
*/
@QtUninvokable
public final @NonNull QSizeF multiply(double c){
return multiply_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), c);
}
@QtUninvokable
private native QSizeF multiply_native_qreal(long __this__nativeId, double c);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QSizeF plus(io.qt.core.@NonNull QSizeF s2){
return plus_native_cref_QSizeF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(s2));
}
@QtUninvokable
private native io.qt.core.QSizeF plus_native_cref_QSizeF(long __this__nativeId, long s2);
/**
* See QSizeF:: operator+=(QSizeF)
*/
@QtUninvokable
public final @NonNull QSizeF add(io.qt.core.@NonNull QSizeF arg__1){
return add_native_cref_QSizeF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native QSizeF add_native_cref_QSizeF(long __this__nativeId, long arg__1);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QSizeF minus(io.qt.core.@NonNull QSizeF s2){
return minus_native_cref_QSizeF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(s2));
}
@QtUninvokable
private native io.qt.core.QSizeF minus_native_cref_QSizeF(long __this__nativeId, long s2);
/**
* See QSizeF:: operator-=(QSizeF)
*/
@QtUninvokable
public final @NonNull QSizeF subtract(io.qt.core.@NonNull QSizeF arg__1){
return subtract_native_cref_QSizeF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native QSizeF subtract_native_cref_QSizeF(long __this__nativeId, long arg__1);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QSizeF div(double c){
return div_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), c);
}
@QtUninvokable
private native io.qt.core.QSizeF div_native_qreal(long __this__nativeId, double c);
/**
*
*/
@QtUninvokable
public final @NonNull QSizeF divide(double c){
return divide_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), c);
}
@QtUninvokable
private native QSizeF divide_native_qreal(long __this__nativeId, double c);
/**
* See operator<<(QDataStream&, QSizeF)
*/
@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 QSizeF s2){
return equals_native_cref_QSizeF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(s2));
}
@QtUninvokable
private native boolean equals_native_cref_QSizeF(long __this__nativeId, long s2);
/**
* See operator>>(QDataStream&, QSizeF&)
*/
@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 QSizeF:: scale(QSizeF, Qt::AspectRatioMode)
*/
@QtUninvokable
public final void scale(io.qt.core.@NonNull QSizeF s, io.qt.core.Qt.@NonNull AspectRatioMode mode){
scale_native_cref_QSizeF_Qt_AspectRatioMode(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(s), mode.value());
}
@QtUninvokable
private native void scale_native_cref_QSizeF_Qt_AspectRatioMode(long __this__nativeId, long s, int mode);
/**
* See QSizeF:: scale(qreal, qreal, Qt::AspectRatioMode)
*/
@QtUninvokable
public final void scale(double w, double h, io.qt.core.Qt.@NonNull AspectRatioMode mode){
scale_native_qreal_qreal_Qt_AspectRatioMode(QtJambi_LibraryUtilities.internal.nativeId(this), w, h, mode.value());
}
@QtUninvokable
private native void scale_native_qreal_qreal_Qt_AspectRatioMode(long __this__nativeId, double w, double h, int mode);
/**
* See QSizeF:: scaled(QSizeF, Qt::AspectRatioMode)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QSizeF scaled(io.qt.core.@NonNull QSizeF s, io.qt.core.Qt.@NonNull AspectRatioMode mode){
return scaled_native_cref_QSizeF_Qt_AspectRatioMode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(s), mode.value());
}
@QtUninvokable
private native io.qt.core.QSizeF scaled_native_cref_QSizeF_Qt_AspectRatioMode_constfct(long __this__nativeId, long s, int mode);
/**
* See QSizeF:: scaled(qreal, qreal, Qt::AspectRatioMode)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QSizeF scaled(double w, double h, io.qt.core.Qt.@NonNull AspectRatioMode mode){
return scaled_native_qreal_qreal_Qt_AspectRatioMode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), w, h, mode.value());
}
@QtUninvokable
private native io.qt.core.QSizeF scaled_native_qreal_qreal_Qt_AspectRatioMode_constfct(long __this__nativeId, double w, double h, int mode);
/**
*
*/
@QtUninvokable
public final void setHeight(double h){
setHeight_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), h);
}
@QtUninvokable
private native void setHeight_native_qreal(long __this__nativeId, double h);
/**
*
*/
@QtUninvokable
public final void setWidth(double w){
setWidth_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), w);
}
@QtUninvokable
private native void setWidth_native_qreal(long __this__nativeId, double w);
/**
* See QSizeF:: shrunkBy(QMarginsF)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QSizeF shrunkBy(io.qt.core.@NonNull QMarginsF m){
return shrunkBy_native_QMarginsF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(m));
}
@QtUninvokable
private native io.qt.core.QSizeF shrunkBy_native_QMarginsF_constfct(long __this__nativeId, long m);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QSize toSize(){
return toSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QSize toSize_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 QSizeF transposed(){
return transposed_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QSizeF transposed_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final double width(){
return width_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double width_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QSizeF(QPrivateConstructor p) { super(p); }
/**
*
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.core.QSizeF) {
return equals((io.qt.core.QSizeF) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QSizeF)
.
*/
@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, QSizeF)
*/
@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 QSizeF:: QSizeF(QSizeF)
*/
@QtUninvokable
@Override
public QSizeF clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QSizeF clone_native(long __this_nativeId);
/**
* Overloaded function for {@link #boundedTo(io.qt.core.QSizeF)}.
*/
@QtUninvokable
public final io.qt.core.@NonNull QSizeF boundedTo(io.qt.core.@NonNull QSize arg__1) {
return boundedTo(new io.qt.core.QSizeF(arg__1));
}
/**
* Overloaded function for {@link #expandedTo(io.qt.core.QSizeF)}.
*/
@QtUninvokable
public final io.qt.core.@NonNull QSizeF expandedTo(io.qt.core.@NonNull QSize arg__1) {
return expandedTo(new io.qt.core.QSizeF(arg__1));
}
/**
* Overloaded function for {@link #grownBy(io.qt.core.QMarginsF)}.
*/
@QtUninvokable
public final io.qt.core.@NonNull QSizeF grownBy(io.qt.core.@NonNull QMargins m) {
return grownBy(new io.qt.core.QMarginsF(m));
}
/**
* Overloaded function for {@link #plus(io.qt.core.QSizeF)}.
*/
@QtUninvokable
public final io.qt.core.@NonNull QSizeF plus(io.qt.core.@NonNull QSize s2) {
return plus(new io.qt.core.QSizeF(s2));
}
/**
* Overloaded function for {@link #add(io.qt.core.QSizeF)}.
*/
@QtUninvokable
public final @NonNull QSizeF add(io.qt.core.@NonNull QSize arg__1) {
return add(new io.qt.core.QSizeF(arg__1));
}
/**
* Overloaded function for {@link #minus(io.qt.core.QSizeF)}.
*/
@QtUninvokable
public final io.qt.core.@NonNull QSizeF minus(io.qt.core.@NonNull QSize s2) {
return minus(new io.qt.core.QSizeF(s2));
}
/**
* Overloaded function for {@link #subtract(io.qt.core.QSizeF)}.
*/
@QtUninvokable
public final @NonNull QSizeF subtract(io.qt.core.@NonNull QSize arg__1) {
return subtract(new io.qt.core.QSizeF(arg__1));
}
/**
* Overloaded function for {@link #equals(io.qt.core.QSizeF)}.
*/
@QtUninvokable
public final boolean equals(io.qt.core.@NonNull QSize s2) {
return equals(new io.qt.core.QSizeF(s2));
}
/**
* Overloaded function for {@link #scale(io.qt.core.QSizeF, io.qt.core.Qt.AspectRatioMode)}.
*/
@QtUninvokable
public final void scale(io.qt.core.@NonNull QSize s, io.qt.core.Qt.@NonNull AspectRatioMode mode) {
scale(new io.qt.core.QSizeF(s), mode);
}
/**
* Overloaded function for {@link #scaled(io.qt.core.QSizeF, io.qt.core.Qt.AspectRatioMode)}.
*/
@QtUninvokable
public final io.qt.core.@NonNull QSizeF scaled(io.qt.core.@NonNull QSize s, io.qt.core.Qt.@NonNull AspectRatioMode mode) {
return scaled(new io.qt.core.QSizeF(s), mode);
}
/**
* Overloaded function for {@link #shrunkBy(io.qt.core.QMarginsF)}.
*/
@QtUninvokable
public final io.qt.core.@NonNull QSizeF shrunkBy(io.qt.core.@NonNull QMargins m) {
return shrunkBy(new io.qt.core.QMarginsF(m));
}
}