io.qt.core.QMarginsF Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
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();
}
/**
*
*/
public QMarginsF(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QMarginsF instance);
/**
* See QMarginsF:: QMarginsF(QMargins)
*/
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)
*/
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)
*/
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);
/**
*
*/
@QtUninvokable
public final double bottom(){
return bottom_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double bottom_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 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)
*/
@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)
*/
@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)
*/
@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)
*/
@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)
*/
@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)
*/
@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)
*/
@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)
*/
@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)
*/
@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)
*/
@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)
*/
@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)
*/
@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)
*/
@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)
*/
@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)
*/
@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)
*/
@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, QMarginsF)
*/
@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&)
*/
@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)
*/
@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);
/**
*
*/
@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)
*/
@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);
/**
*
*/
@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)
*/
@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);
/**
*
*/
@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
*/
@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);
/**
*
*/
@QtUninvokable
public final double top(){
return top_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double top_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QMarginsF(QPrivateConstructor p) { super(p); }
/**
* See operator==(QMarginsF, QMarginsF)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.core.QMarginsF) {
return equals((io.qt.core.QMarginsF) 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 #equals(io.qt.core.QMarginsF)}.
*/
@QtUninvokable
public final boolean equals(io.qt.core.@NonNull QMargins rhs) {
return equals(new io.qt.core.QMarginsF(rhs));
}
/**
* 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));
}
}