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

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

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

import io.qt.*;


/**
 * 

Defines the four margins of a rectangle

*

Java wrapper for Qt class QMargins

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

See QMargins::QMargins()

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

See QMargins::QMargins(QMargins)

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

See QMargins::QMargins(int,int,int,int)

*/ public QMargins(int left, int top, int right, int bottom){ super((QPrivateConstructor)null); initialize_native(this, left, top, right, bottom); } private native static void initialize_native(QMargins instance, int left, int top, int right, int bottom); /** *

See QMargins::bottom()const

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

See QMargins::isNull()const

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

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

See operator*(QMargins,int)

*/ @QtUninvokable public final io.qt.core.@NonNull QMargins times(int factor){ return times_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), factor); } @QtUninvokable private native io.qt.core.QMargins times_native_int(long __this__nativeId, int factor); /** *

See operator*(QMargins,qreal)

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

See QMargins::operator*=(int)

*/ @QtUninvokable public final @NonNull QMargins multiply(int arg__1){ return multiply_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native QMargins multiply_native_int(long __this__nativeId, int arg__1); /** *

See QMargins::operator*=(qreal)

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

See operator+(QMargins)

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

See operator+(QMargins,QMargins)

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

See operator+(QMargins,QRect)

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

See operator+(QMargins,int)

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

See QMargins::operator+=(QMargins)

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

See QMargins::operator+=(int)

*/ @QtUninvokable public final @NonNull QMargins add(int arg__1){ return add_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native QMargins add_native_int(long __this__nativeId, int arg__1); /** *

See operator-(QMargins)

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

See operator-(QMargins,QMargins)

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

See operator-(QMargins,int)

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

See QMargins::operator-=(QMargins)

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

See QMargins::operator-=(int)

*/ @QtUninvokable public final @NonNull QMargins subtract(int arg__1){ return subtract_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native QMargins subtract_native_int(long __this__nativeId, int arg__1); /** *

See operator/(QMargins,int)

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

See operator/(QMargins,qreal)

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

See QMargins::operator/=(int)

*/ @QtUninvokable public final @NonNull QMargins divide(int arg__1){ return divide_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native QMargins divide_native_int(long __this__nativeId, int arg__1); /** *

See QMargins::operator/=(qreal)

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

See operator<<(QDataStream&,QMargins)

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

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

See operator>>(QDataStream&,QMargins&)

*/ @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|(QMargins,QMargins)

*/ @QtUninvokable public final io.qt.core.@NonNull QMargins maximum(io.qt.core.@NonNull QMargins m2){ return maximum_native_cref_QMargins(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(m2)); } @QtUninvokable private native io.qt.core.QMargins maximum_native_cref_QMargins(long __this__nativeId, long m2); /** *

See QMargins::right()const

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

See QMargins::setBottom(int)

*/ @QtUninvokable public final void setBottom(int bottom){ setBottom_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), bottom); } @QtUninvokable private native void setBottom_native_int(long __this__nativeId, int bottom); /** *

See QMargins::setLeft(int)

*/ @QtUninvokable public final void setLeft(int left){ setLeft_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), left); } @QtUninvokable private native void setLeft_native_int(long __this__nativeId, int left); /** *

See QMargins::setRight(int)

*/ @QtUninvokable public final void setRight(int right){ setRight_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), right); } @QtUninvokable private native void setRight_native_int(long __this__nativeId, int right); /** *

See QMargins::setTop(int)

*/ @QtUninvokable public final void setTop(int top){ setTop_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), top); } @QtUninvokable private native void setTop_native_int(long __this__nativeId, int top); /** *

See QMargins::toMarginsF()const

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

See QMargins::top()const

*/ @QtUninvokable public final int top(){ return top_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int top_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QMargins(QPrivateConstructor p) { super(p); } /** *

See operator==(QMargins,QMargins)

*/ @Override @QtUninvokable public boolean equals(Object other) { 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(QMargins). */ @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,QMargins)

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy