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

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

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

import io.qt.*;


/**
 * 

Two-dimensional vector using integer precision

*

Java wrapper for Qt class QLine

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

See QLine::QLine()

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

See QLine::QLine(QLine)

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

See QLine::QLine(QPoint,QPoint)

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

See QLine::QLine(int,int,int,int)

*/ public QLine(int x1, int y1, int x2, int y2){ super((QPrivateConstructor)null); initialize_native(this, x1, y1, x2, y2); } private native static void initialize_native(QLine instance, int x1, int y1, int x2, int y2); /** *

See QLine::center()const

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

See QLine::dx()const

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

See QLine::dy()const

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

See QLine::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 operator<<(QDataStream&,QLine)

*/ @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 QLine::operator==(QLine)const

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

See operator>>(QDataStream&,QLine&)

*/ @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 QLine::p1()const

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

See QLine::p2()const

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

See QLine::setLine(int,int,int,int)

*/ @QtUninvokable public final void setLine(int x1, int y1, int x2, int y2){ setLine_native_int_int_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), x1, y1, x2, y2); } @QtUninvokable private native void setLine_native_int_int_int_int(long __this__nativeId, int x1, int y1, int x2, int y2); /** *

See QLine::setP1(QPoint)

*/ @QtUninvokable public final void setP1(io.qt.core.@NonNull QPoint p1){ setP1_native_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p1)); } @QtUninvokable private native void setP1_native_cref_QPoint(long __this__nativeId, long p1); /** *

See QLine::setP2(QPoint)

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

See QLine::setPoints(QPoint,QPoint)

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

See QLine::toLineF()const

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

See QLine::translate(QPoint)

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

See QLine::translate(int,int)

*/ @QtUninvokable public final void translate(int dx, int dy){ translate_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), dx, dy); } @QtUninvokable private native void translate_native_int_int(long __this__nativeId, int dx, int dy); /** *

See QLine::translated(QPoint)const

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

See QLine::translated(int,int)const

*/ @QtUninvokable public final io.qt.core.@NonNull QLine translated(int dx, int dy){ return translated_native_int_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), dx, dy); } @QtUninvokable private native io.qt.core.QLine translated_native_int_int_constfct(long __this__nativeId, int dx, int dy); /** *

See QLine::x1()const

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

See QLine::x2()const

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

See QLine::y1()const

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

See QLine::y2()const

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

See QLine::operator==(QLine)const

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy