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

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

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

import io.qt.*;


/**
 * 

Defines a point in the plane using integer precision

*

Java wrapper for Qt class QPoint

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

See QPoint::QPoint()

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

See QPoint::QPoint(QPoint)

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

See QPoint::QPoint(int,int)

*/ public QPoint(int xpos, int ypos){ super((QPrivateConstructor)null); initialize_native(this, xpos, ypos); } private native static void initialize_native(QPoint instance, int xpos, int ypos); /** *

See QPoint::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 QPoint::manhattanLength()const

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

See operator*(QPoint,double)

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

See operator*(QPoint,float)

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

See operator*(QPoint,int)

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

See QPoint::operator*=(double)

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

See QPoint::operator*=(float)

*/ @QtUninvokable public final @NonNull QPoint multiply(float factor){ return multiply_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), factor); } @QtUninvokable private native QPoint multiply_native_float(long __this__nativeId, float factor); /** *

See QPoint::operator*=(int)

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

See operator+(QPoint)

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

See operator+(QPoint,QPoint)

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

See QPoint::operator+=(QPoint)

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

See operator-(QPoint)

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

See operator-(QPoint,QPoint)

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

See QPoint::operator-=(QPoint)

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

See operator/(QPoint,qreal)

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

See QPoint::operator/=(qreal)

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

See operator<<(QDataStream&,QPoint)

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

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

See operator>>(QDataStream&,QPoint&)

*/ @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 QPoint::setX(int)

*/ @QtUninvokable public final void setX(int x){ setX_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), x); } @QtUninvokable private native void setX_native_int(long __this__nativeId, int x); /** *

See QPoint::setY(int)

*/ @QtUninvokable public final void setY(int y){ setY_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), y); } @QtUninvokable private native void setY_native_int(long __this__nativeId, int y); /** *

See QPoint::toPointF()const

*

This function was introduced in Qt 6.4.

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

See QPoint::transposed()const

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

See QPoint::x()const

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

See QPoint::y()const

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

See QPoint::dotProduct(QPoint,QPoint)

*/ public static int dotProduct(io.qt.core.@NonNull QPoint p1, io.qt.core.@NonNull QPoint p2){ return dotProduct_native_cref_QPoint_cref_QPoint(QtJambi_LibraryUtilities.internal.checkedNativeId(p1), QtJambi_LibraryUtilities.internal.checkedNativeId(p2)); } private native static int dotProduct_native_cref_QPoint_cref_QPoint(long p1, long p2); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QPoint(QPrivateConstructor p) { super(p); } /** *

See operator==(QPoint,QPoint)

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy