io.qt.core.QPoint Maven / Gradle / Ivy
The newest version!
package io.qt.core;
/**
* Defines a point in the plane using integer precision
* Java wrapper for Qt class QPoint
*/
public class QPoint extends io.qt.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);
/**
*
*/
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);
/**
*
*/
@io.qt.QtUninvokable
public final boolean isNull(){
return isNull_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isNull_native_constfct(long __this__nativeId);
/**
* See QPoint::manhattanLength()const
*/
@io.qt.QtUninvokable
public final int manhattanLength(){
return manhattanLength_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int manhattanLength_native_constfct(long __this__nativeId);
/**
* See QPoint::operator*=(double)
*/
@io.qt.QtUninvokable
public final io.qt.core.QPoint multiply(double factor){
multiply_native_double(QtJambi_LibraryUtilities.internal.nativeId(this), factor);
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QPoint multiply_native_double(long __this__nativeId, double factor);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QPoint multiply(float factor){
multiply_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), factor);
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QPoint multiply_native_float(long __this__nativeId, float factor);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QPoint multiply(int factor){
multiply_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), factor);
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QPoint multiply_native_int(long __this__nativeId, int factor);
/**
* See QPoint::operator+=(QPoint)
*/
@io.qt.QtUninvokable
public final io.qt.core.QPoint add(io.qt.core.QPoint p){
add_native_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p));
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QPoint add_native_cref_QPoint(long __this__nativeId, long p);
/**
* See QPoint::operator-=(QPoint)
*/
@io.qt.QtUninvokable
public final io.qt.core.QPoint subtract(io.qt.core.QPoint p){
subtract_native_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p));
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QPoint subtract_native_cref_QPoint(long __this__nativeId, long p);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QPoint divide(double divisor){
divide_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), divisor);
return this;
}
@io.qt.QtUninvokable
private native io.qt.core.QPoint divide_native_qtjambireal(long __this__nativeId, double divisor);
@io.qt.QtUninvokable
public void writeTo(io.qt.core.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));
}
@io.qt.QtUninvokable
private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1);
@io.qt.QtUninvokable
private final boolean operator_equal(io.qt.core.QPoint p2){
return operator_equal_native_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p2));
}
@io.qt.QtUninvokable
private native boolean operator_equal_native_cref_QPoint(long __this__nativeId, long p2);
@io.qt.QtUninvokable
public void readFrom(io.qt.core.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));
}
@io.qt.QtUninvokable
private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1);
/**
*
*/
@io.qt.QtUninvokable
public final void setX(int x){
setX_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), x);
}
@io.qt.QtUninvokable
private native void setX_native_int(long __this__nativeId, int x);
/**
*
*/
@io.qt.QtUninvokable
public final void setY(int y){
setY_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), y);
}
@io.qt.QtUninvokable
private native void setY_native_int(long __this__nativeId, int y);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QPoint transposed(){
return transposed_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QPoint transposed_native_constfct(long __this__nativeId);
/**
* See QPoint::x()const
*/
@io.qt.QtUninvokable
public final int x(){
return x_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int x_native_constfct(long __this__nativeId);
/**
* See QPoint::y()const
*/
@io.qt.QtUninvokable
public final int y(){
return y_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int y_native_constfct(long __this__nativeId);
/**
* See QPoint::dotProduct(QPoint,QPoint)
*/
public static int dotProduct(io.qt.core.QPoint p1, io.qt.core.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
.
*/
@io.qt.NativeAccess
protected QPoint(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.core.QPoint) {
return operator_equal((io.qt.core.QPoint) other);
}
return false;
}
@io.qt.QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native static int hashCode_native(long __this_nativeId);
@Override
@io.qt.QtUninvokable
public String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private static native String toString_native(long __this_nativeId);
@Override
public QPoint clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QPoint clone_native(long __this_nativeId);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy