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

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

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

import io.qt.*;


/**
 * 

Defines the four margins of a rectangle

*

Java wrapper for Qt class QMarginsF

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

See QMarginsF::QMarginsF()

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

See QMarginsF::QMarginsF(QMargins)

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

See QMarginsF::QMarginsF(QMarginsF)

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

See QMarginsF::QMarginsF(qreal,qreal,qreal,qreal)

* @param left * @param top * @param right * @param bottom */ public QMarginsF(double left, double top, double right, double bottom){ super((QPrivateConstructor)null); initialize_native(this, left, top, right, bottom); } private native static void initialize_native(QMarginsF instance, double left, double top, double right, double bottom); /** *

See QMarginsF::bottom()const

* @return */ @QtUninvokable public final double bottom(){ return bottom_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double bottom_native_constfct(long __this__nativeId); /** *

See QMarginsF::isNull()const

* @return */ @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 QMarginsF::left()const

* @return */ @QtUninvokable public final double left(){ return left_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double left_native_constfct(long __this__nativeId); /** *

See operator*(QMarginsF,qreal)

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

See QMarginsF::operator*=(qreal)

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

See operator+(QMarginsF)

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

See operator+(QMarginsF,QMarginsF)

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

See operator+(QMarginsF,QRectF)

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

See operator+(QMarginsF,qreal)

* @param rhs * @return */ @QtUninvokable public final io.qt.core.@NonNull QMarginsF plus(double rhs){ return plus_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), rhs); } @QtUninvokable private native io.qt.core.QMarginsF plus_native_qreal(long __this__nativeId, double rhs); /** *

See QMarginsF::operator+=(QMarginsF)

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

See QMarginsF::operator+=(qreal)

* @param addend * @return */ @QtUninvokable public final @NonNull QMarginsF add(double addend){ return add_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), addend); } @QtUninvokable private native QMarginsF add_native_qreal(long __this__nativeId, double addend); /** *

See operator-(QMarginsF)

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

See operator-(QMarginsF,QMarginsF)

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

See operator-(QMarginsF,qreal)

* @param rhs * @return */ @QtUninvokable public final io.qt.core.@NonNull QMarginsF minus(double rhs){ return minus_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), rhs); } @QtUninvokable private native io.qt.core.QMarginsF minus_native_qreal(long __this__nativeId, double rhs); /** *

See QMarginsF::operator-=(QMarginsF)

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

See QMarginsF::operator-=(qreal)

* @param subtrahend * @return */ @QtUninvokable public final @NonNull QMarginsF subtract(double subtrahend){ return subtract_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), subtrahend); } @QtUninvokable private native QMarginsF subtract_native_qreal(long __this__nativeId, double subtrahend); /** *

See operator/(QMarginsF,qreal)

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

See QMarginsF::operator/=(qreal)

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

See operator<<(QDataStream&,QMarginsF)

* @param arg__1 */ @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==(QMarginsF,QMargins)

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

See operator==(QMarginsF,QMarginsF)

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

See operator>>(QDataStream&,QMarginsF&)

* @param arg__1 */ @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 operator|(QMarginsF,QMarginsF)

* @since This function was introduced in Qt 6.0. * @param m2 * @return */ @QtUninvokable public final io.qt.core.@NonNull QMarginsF maximum(io.qt.core.@NonNull QMarginsF m2){ return maximum_native_cref_QMarginsF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(m2)); } @QtUninvokable private native io.qt.core.QMarginsF maximum_native_cref_QMarginsF(long __this__nativeId, long m2); /** *

See QMarginsF::right()const

* @return */ @QtUninvokable public final double right(){ return right_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double right_native_constfct(long __this__nativeId); /** *

See QMarginsF::setBottom(qreal)

* @param abottom */ @QtUninvokable public final void setBottom(double abottom){ setBottom_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), abottom); } @QtUninvokable private native void setBottom_native_qreal(long __this__nativeId, double abottom); /** *

See QMarginsF::setLeft(qreal)

* @param aleft */ @QtUninvokable public final void setLeft(double aleft){ setLeft_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), aleft); } @QtUninvokable private native void setLeft_native_qreal(long __this__nativeId, double aleft); /** *

See QMarginsF::setRight(qreal)

* @param aright */ @QtUninvokable public final void setRight(double aright){ setRight_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), aright); } @QtUninvokable private native void setRight_native_qreal(long __this__nativeId, double aright); /** *

See QMarginsF::setTop(qreal)

* @param atop */ @QtUninvokable public final void setTop(double atop){ setTop_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), atop); } @QtUninvokable private native void setTop_native_qreal(long __this__nativeId, double atop); /** *

See QMarginsF::toMargins()const

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

See QMarginsF::top()const

* @return */ @QtUninvokable public final double top(){ return top_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double top_native_constfct(long __this__nativeId); /** *

See qFuzzyCompare(QMarginsF,QMarginsF)

* @since This function was introduced in Qt 6.8. * @param lhs * @param rhs * @return */ public static boolean qFuzzyCompare(io.qt.core.@NonNull QMarginsF lhs, io.qt.core.@NonNull QMarginsF rhs){ return qFuzzyCompare_native_cref_QMarginsF_cref_QMarginsF(QtJambi_LibraryUtilities.internal.checkedNativeId(lhs), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs)); } private native static boolean qFuzzyCompare_native_cref_QMarginsF_cref_QMarginsF(long lhs, long rhs); /** *

See qFuzzyIsNull(QMarginsF)

* @since This function was introduced in Qt 6.8. * @param m * @return */ public static boolean qFuzzyIsNull(io.qt.core.@NonNull QMarginsF m){ return qFuzzyIsNull_native_cref_QMarginsF(QtJambi_LibraryUtilities.internal.checkedNativeId(m)); } private native static boolean qFuzzyIsNull_native_cref_QMarginsF(long m); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QMarginsF(QPrivateConstructor p) { super(p); } /** *

Checks for equality depending on the type of given object.

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other==null || other instanceof io.qt.core.QMarginsF) { return equals((io.qt.core.QMarginsF) other); } else if (other instanceof io.qt.core.QMargins) { return equals((io.qt.core.QMargins) other); } return false; } /** * Returns the objects's hash code computed by qHash(QMarginsF). */ @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,QMarginsF)

*/ @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 QMarginsF::QMarginsF(QMarginsF)

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

Overloaded function for {@link #plus(io.qt.core.QMarginsF)}.

*/ @QtUninvokable public final io.qt.core.@NonNull QMarginsF plus(io.qt.core.@NonNull QMargins rhs) { return plus(new io.qt.core.QMarginsF(rhs)); } /** *

Overloaded function for {@link #plus(io.qt.core.QRectF)}.

*/ @QtUninvokable public final io.qt.core.@NonNull QRectF plus(io.qt.core.@NonNull QRect rhs) { return plus(new io.qt.core.QRectF(rhs)); } /** *

Overloaded function for {@link #add(io.qt.core.QMarginsF)}.

*/ @QtUninvokable public final @NonNull QMarginsF add(io.qt.core.@NonNull QMargins margins) { return add(new io.qt.core.QMarginsF(margins)); } /** *

Overloaded function for {@link #minus(io.qt.core.QMarginsF)}.

*/ @QtUninvokable public final io.qt.core.@NonNull QMarginsF minus(io.qt.core.@NonNull QMargins rhs) { return minus(new io.qt.core.QMarginsF(rhs)); } /** *

Overloaded function for {@link #subtract(io.qt.core.QMarginsF)}.

*/ @QtUninvokable public final @NonNull QMarginsF subtract(io.qt.core.@NonNull QMargins margins) { return subtract(new io.qt.core.QMarginsF(margins)); } /** *

Overloaded function for {@link #maximum(io.qt.core.QMarginsF)}.

*/ @QtUninvokable public final io.qt.core.@NonNull QMarginsF maximum(io.qt.core.@NonNull QMargins m2) { return maximum(new io.qt.core.QMarginsF(m2)); } /** *

Overloaded function for {@link #qFuzzyCompare(io.qt.core.QMarginsF, io.qt.core.QMarginsF)}.

*/ public static boolean qFuzzyCompare(io.qt.core.@NonNull QMargins lhs, io.qt.core.@NonNull QMarginsF rhs) { return qFuzzyCompare(new io.qt.core.QMarginsF(lhs), rhs); } /** *

Overloaded function for {@link #qFuzzyCompare(io.qt.core.QMarginsF, io.qt.core.QMarginsF)}.

*/ public static boolean qFuzzyCompare(io.qt.core.@NonNull QMarginsF lhs, io.qt.core.@NonNull QMargins rhs) { return qFuzzyCompare(lhs, new io.qt.core.QMarginsF(rhs)); } /** *

Overloaded function for {@link #qFuzzyCompare(io.qt.core.QMarginsF, io.qt.core.QMarginsF)}.

*/ public static boolean qFuzzyCompare(io.qt.core.@NonNull QMargins lhs, io.qt.core.@NonNull QMargins rhs) { return qFuzzyCompare(new io.qt.core.QMarginsF(lhs), new io.qt.core.QMarginsF(rhs)); } /** *

Overloaded function for {@link #qFuzzyIsNull(io.qt.core.QMarginsF)}.

*/ public static boolean qFuzzyIsNull(io.qt.core.@NonNull QMargins m) { return qFuzzyIsNull(new io.qt.core.QMarginsF(m)); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy