Package io.qt.quick

Class QSGGeometry.Point2D

java.lang.Object
io.qt.QtObject
io.qt.quick.QSGGeometry.Point2D
All Implemented Interfaces:
QtObjectInterface, Cloneable
Enclosing class:
QSGGeometry

public static class QSGGeometry.Point2D extends QtObject implements Cloneable

QSGGeometry::Point2D struct is a convenience struct for accessing 2D Points

Java wrapper for Qt class QSGGeometry::Point2D

  • Constructor Details

    • Point2D

      public Point2D()

      See QSGGeometry::Point2D::Point2D()

    • Point2D

      public Point2D(QSGGeometry.Point2D other)

      See QSGGeometry::Point2D::Point2D(QSGGeometry::Point2D)

      Parameters:
      other -
    • Point2D

      public Point2D(float x, float y)

      See QSGGeometry::Point2D::Point2D{float,float}

      Parameters:
      x -
      y -
  • Method Details

    • equals

      @QtUninvokable public final boolean equals(QSGGeometry.Point2D value2)

      See operator==(QSGGeometry::Point2D,QSGGeometry::Point2D)

      Parameters:
      value2 -
      Returns:
    • set

      @QtUninvokable public final void set(float nx, float ny)
      Parameters:
      nx -
      ny -
    • setX

      @QtUninvokable public final void setX(float x)

      See QSGGeometry::Point2D::x

      Parameters:
      x -
    • x

      @QtUninvokable public final float x()

      See QSGGeometry::Point2D::x

      Returns:
    • setY

      @QtUninvokable public final void setY(float y)

      See QSGGeometry::Point2D::y

      Parameters:
      y -
    • y

      @QtUninvokable public final float y()

      See QSGGeometry::Point2D::y

      Returns:
    • equals

      @QtUninvokable public boolean equals(Object other)

      See operator==(QSGGeometry::Point2D,QSGGeometry::Point2D)

      Overrides:
      equals in class QtObject
      Parameters:
      other - other object
      Returns:
      true if the native counterpart of the two objects are one and the same.
    • hashCode

      @QtUninvokable public int hashCode()
      Returns the objects's hash code computed by qHash(QSGGeometry::Point2D).
      Overrides:
      hashCode in class Object
    • clone

      Creates and returns a copy of this object.

      See QSGGeometry::Point2D::Point2D(QSGGeometry::Point2D)

      Overrides:
      clone in class Object