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

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

package io.qt.core;


/**
 * 

Two-dimensional vector using floating point precision

*

Java wrapper for Qt class QLineF

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

Java wrapper for Qt enum QLineF::IntersectType

*/ public enum IntersectType implements io.qt.QtEnumerator { NoIntersection(0), BoundedIntersection(1), UnboundedIntersection(2); private IntersectType(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static IntersectType resolve(int value) { switch (value) { case 0: return NoIntersection; case 1: return BoundedIntersection; case 2: return UnboundedIntersection; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

See QLineF::QLineF()

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

See QLineF::QLineF(QLine)

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

See QLineF::QLineF(QPointF,QPointF)

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

See QLineF::QLineF(qreal,qreal,qreal,qreal)

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

See QLineF::angle()const

*/ @io.qt.QtUninvokable public final double angle(){ return angle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double angle_native_constfct(long __this__nativeId); /** *

See QLineF::angle(QLineF)const

* * @deprecated Use qMin(l1.angleTo(l2), l2.angleTo(l1)) instead */ @Deprecated @io.qt.QtUninvokable public final double angle(io.qt.core.QLineF l){ return angle_native_cref_QLineF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(l)); } @Deprecated @io.qt.QtUninvokable private native double angle_native_cref_QLineF_constfct(long __this__nativeId, long l); /** *

See QLineF::angleTo(QLineF)const

*/ @io.qt.QtUninvokable public final double angleTo(io.qt.core.QLineF l){ return angleTo_native_cref_QLineF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(l)); } @io.qt.QtUninvokable private native double angleTo_native_cref_QLineF_constfct(long __this__nativeId, long l); /** *

See QLineF::center()const

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

See QLineF::dx()const

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

See QLineF::dy()const

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

See QLineF::intersect(QLineF,QPointF*)const

* * @deprecated Use {@link io.qt.core.QLineF#intersects(io.qt.core.QLineF, io.qt.core.QPointF)} instead */ @Deprecated @io.qt.QtUninvokable public final io.qt.core.QLineF.IntersectType intersect(io.qt.core.QLineF l, io.qt.core.QPointF intersectionPoint){ return io.qt.core.QLineF.IntersectType.resolve(intersect_native_cref_QLineF_QPointF_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(l), intersectionPoint)); } @Deprecated @io.qt.QtUninvokable private native int intersect_native_cref_QLineF_QPointF_ptr_constfct(long __this__nativeId, long l, io.qt.core.QPointF intersectionPoint); /** *

See QLineF::intersects(QLineF,QPointF*)const

*/ @io.qt.QtUninvokable public final io.qt.core.QLineF.IntersectType intersects(io.qt.core.QLineF l, io.qt.core.QPointF intersectionPoint){ return io.qt.core.QLineF.IntersectType.resolve(intersects_native_cref_QLineF_QPointF_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(l), intersectionPoint)); } @io.qt.QtUninvokable private native int intersects_native_cref_QLineF_QPointF_ptr_constfct(long __this__nativeId, long l, io.qt.core.QPointF intersectionPoint); /** *

See QLineF::isNull()const

*/ @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 QLineF::length()const

*/ @io.qt.QtUninvokable public final double length(){ return length_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double length_native_constfct(long __this__nativeId); /** *

See QLineF::normalVector()const

*/ @io.qt.QtUninvokable public final io.qt.core.QLineF normalVector(){ return normalVector_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QLineF normalVector_native_constfct(long __this__nativeId); @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); /** *

See QLineF::operator==(QLineF)const

*/ @io.qt.QtUninvokable private final boolean operator_equal(io.qt.core.QLineF d){ return operator_equal_native_cref_QLineF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(d)); } @io.qt.QtUninvokable private native boolean operator_equal_native_cref_QLineF_constfct(long __this__nativeId, long d); @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); /** *

See QLineF::p1()const

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

See QLineF::p2()const

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

See QLineF::pointAt(qreal)const

*/ @io.qt.QtUninvokable public final io.qt.core.QPointF pointAt(double t){ return pointAt_native_qtjambireal_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), t); } @io.qt.QtUninvokable private native io.qt.core.QPointF pointAt_native_qtjambireal_constfct(long __this__nativeId, double t); /** *

See QLineF::setAngle(qreal)

*/ @io.qt.QtUninvokable public final void setAngle(double angle){ setAngle_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), angle); } @io.qt.QtUninvokable private native void setAngle_native_qtjambireal(long __this__nativeId, double angle); /** *

See QLineF::setLength(qreal)

*/ @io.qt.QtUninvokable public final void setLength(double len){ setLength_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), len); } @io.qt.QtUninvokable private native void setLength_native_qtjambireal(long __this__nativeId, double len); /** *

See QLineF::setLine(qreal,qreal,qreal,qreal)

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

See QLineF::setP1(QPointF)

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

See QLineF::setP2(QPointF)

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

See QLineF::setPoints(QPointF,QPointF)

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

See QLineF::toLine()const

*/ @io.qt.QtUninvokable public final io.qt.core.QLine toLine(){ return toLine_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QLine toLine_native_constfct(long __this__nativeId); /** *

See QLineF::translate(QPointF)

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

See QLineF::translate(qreal,qreal)

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

See QLineF::translated(QPointF)const

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

See QLineF::translated(qreal,qreal)const

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

See QLineF::unitVector()const

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

See QLineF::x1()const

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

See QLineF::x2()const

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

See QLineF::y1()const

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

See QLineF::y2()const

*/ @io.qt.QtUninvokable public final double y2(){ return y2_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double y2_native_constfct(long __this__nativeId); /** *

See QLineF::fromPolar(qreal,qreal)

*/ public native static io.qt.core.QLineF fromPolar(double length, double angle); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QLineF(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.core.QLineF) { return operator_equal((io.qt.core.QLineF) 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 QLineF clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QLineF clone_native(long __this_nativeId); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy