io.qt.core.QPointF Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core;
import io.qt.*;
/**
* Defines a point in the plane using floating point precision
* Java wrapper for Qt class QPointF
*/
public class QPointF extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
*
*/
public QPointF(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QPointF instance);
/**
*
*/
public QPointF(io.qt.core.@NonNull QPoint p){
super((QPrivateConstructor)null);
initialize_native(this, p);
}
private native static void initialize_native(QPointF instance, io.qt.core.QPoint p);
/**
* See QPointF:: QPointF(QPointF)
*/
public QPointF(io.qt.core.@NonNull QPointF other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QPointF instance, io.qt.core.QPointF other);
/**
* See QPointF:: QPointF(qreal, qreal)
*/
public QPointF(double xpos, double ypos){
super((QPrivateConstructor)null);
initialize_native(this, xpos, ypos);
}
private native static void initialize_native(QPointF instance, double xpos, double ypos);
/**
*
*/
@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 QPointF:: manhattanLength()const
*/
@QtUninvokable
public final double manhattanLength(){
return manhattanLength_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double manhattanLength_native_constfct(long __this__nativeId);
/**
* See operator*(QPointF, qreal)
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF times(double c){
return times_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), c);
}
@QtUninvokable
private native io.qt.core.QPointF times_native_qreal(long __this__nativeId, double c);
/**
* See QPointF:: operator*=(qreal)
*/
@QtUninvokable
public final @NonNull QPointF multiply(double c){
return multiply_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), c);
}
@QtUninvokable
private native QPointF multiply_native_qreal(long __this__nativeId, double c);
/**
* See operator+(QPointF)
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF unaryPlus(){
return unaryPlus_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPointF unaryPlus_native(long __this__nativeId);
/**
* See operator+(QPointF, QPointF)
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF plus(io.qt.core.@NonNull QPointF p2){
return plus_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p2));
}
@QtUninvokable
private native io.qt.core.QPointF plus_native_cref_QPointF(long __this__nativeId, long p2);
/**
* See QPointF:: operator+=(QPointF)
*/
@QtUninvokable
public final @NonNull QPointF add(io.qt.core.@NonNull QPointF p){
return add_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p));
}
@QtUninvokable
private native QPointF add_native_cref_QPointF(long __this__nativeId, long p);
/**
* See operator-(QPointF)
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF unaryMinus(){
return unaryMinus_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPointF unaryMinus_native(long __this__nativeId);
/**
* See operator-(QPointF, QPointF)
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF minus(io.qt.core.@NonNull QPointF p2){
return minus_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p2));
}
@QtUninvokable
private native io.qt.core.QPointF minus_native_cref_QPointF(long __this__nativeId, long p2);
/**
* See QPointF:: operator-=(QPointF)
*/
@QtUninvokable
public final @NonNull QPointF subtract(io.qt.core.@NonNull QPointF p){
return subtract_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p));
}
@QtUninvokable
private native QPointF subtract_native_cref_QPointF(long __this__nativeId, long p);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF div(double divisor){
return div_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), divisor);
}
@QtUninvokable
private native io.qt.core.QPointF div_native_qreal(long __this__nativeId, double divisor);
/**
* See QPointF:: operator/=(qreal)
*/
@QtUninvokable
public final @NonNull QPointF divide(double c){
return divide_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), c);
}
@QtUninvokable
private native QPointF divide_native_qreal(long __this__nativeId, double c);
/**
* See operator<<(QDataStream&, QPointF)
*/
@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==(QPointF, QPointF)
*/
@QtUninvokable
public final boolean equals(io.qt.core.@NonNull QPointF p2){
return equals_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p2));
}
@QtUninvokable
private native boolean equals_native_cref_QPointF(long __this__nativeId, long p2);
/**
* See operator>>(QDataStream&, QPointF&)
*/
@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);
/**
*
*/
@QtUninvokable
public final void setX(double x){
setX_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), x);
}
@QtUninvokable
private native void setX_native_qreal(long __this__nativeId, double x);
/**
*
*/
@QtUninvokable
public final void setY(double y){
setY_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), y);
}
@QtUninvokable
private native void setY_native_qreal(long __this__nativeId, double y);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QPoint toPoint(){
return toPoint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPoint toPoint_native_constfct(long __this__nativeId);
/**
* See QPointF:: transposed()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF transposed(){
return transposed_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPointF transposed_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final double x(){
return x_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double x_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final double y(){
return y_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double y_native_constfct(long __this__nativeId);
/**
* See QPointF:: dotProduct(QPointF, QPointF)
*/
public static double dotProduct(io.qt.core.@NonNull QPointF p1, io.qt.core.@NonNull QPointF p2){
return dotProduct_native_cref_QPointF_cref_QPointF(QtJambi_LibraryUtilities.internal.checkedNativeId(p1), QtJambi_LibraryUtilities.internal.checkedNativeId(p2));
}
private native static double dotProduct_native_cref_QPointF_cref_QPointF(long p1, long p2);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QPointF(QPrivateConstructor p) { super(p); }
/**
* See operator==(QPointF, QPointF)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.core.QPointF) {
return equals((io.qt.core.QPointF) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QPointF)
.
*/
@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, QPointF)
*/
@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 QPointF:: QPointF(QPointF)
*/
@QtUninvokable
@Override
public QPointF clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QPointF clone_native(long __this_nativeId);
/**
* Overloaded function for {@link #plus(io.qt.core.QPointF)}.
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF plus(io.qt.core.@NonNull QPoint p2) {
return plus(new io.qt.core.QPointF(p2));
}
/**
* Overloaded function for {@link #add(io.qt.core.QPointF)}.
*/
@QtUninvokable
public final @NonNull QPointF add(io.qt.core.@NonNull QPoint p) {
return add(new io.qt.core.QPointF(p));
}
/**
* Overloaded function for {@link #minus(io.qt.core.QPointF)}.
*/
@QtUninvokable
public final io.qt.core.@NonNull QPointF minus(io.qt.core.@NonNull QPoint p2) {
return minus(new io.qt.core.QPointF(p2));
}
/**
* Overloaded function for {@link #subtract(io.qt.core.QPointF)}.
*/
@QtUninvokable
public final @NonNull QPointF subtract(io.qt.core.@NonNull QPoint p) {
return subtract(new io.qt.core.QPointF(p));
}
/**
* Overloaded function for {@link #equals(io.qt.core.QPointF)}.
*/
@QtUninvokable
public final boolean equals(io.qt.core.@NonNull QPoint p2) {
return equals(new io.qt.core.QPointF(p2));
}
/**
* Overloaded function for {@link #dotProduct(io.qt.core.QPointF, io.qt.core.QPointF)}.
*/
public static double dotProduct(io.qt.core.@NonNull QPoint p1, io.qt.core.@NonNull QPointF p2) {
return dotProduct(new io.qt.core.QPointF(p1), p2);
}
/**
* Overloaded function for {@link #dotProduct(io.qt.core.QPointF, io.qt.core.QPointF)}.
*/
public static double dotProduct(io.qt.core.@NonNull QPointF p1, io.qt.core.@NonNull QPoint p2) {
return dotProduct(p1, new io.qt.core.QPointF(p2));
}
/**
* Overloaded function for {@link #dotProduct(io.qt.core.QPointF, io.qt.core.QPointF)}.
*/
public static double dotProduct(io.qt.core.@NonNull QPoint p1, io.qt.core.@NonNull QPoint p2) {
return dotProduct(new io.qt.core.QPointF(p1), new io.qt.core.QPointF(p2));
}
}