KLayout Manual: Main Index » Class Index » API reference - Class QPoint

API reference - Class QPoint

Notation used in Ruby API documentation

Description: Binding of QPoint

Public constructors

new QPointnewConstructor QPoint::QPoint()
new QPointnew(int xpos,
int ypos)
Constructor QPoint::QPoint(int xpos, int ypos)

Public methods

[const]bool!=(const QPoint p1)Operator bool ::operator!=(const QPoint &p1, const QPoint &p2)
QPoint*=(double c)Method QPoint & QPoint::operator*=(double c)
[const]QPoint+(const QPoint p1)Operator const QPoint ::operator+(const QPoint &p1, const QPoint &p2)
QPoint+=(const QPoint p)Method QPoint & QPoint::operator+=(const QPoint &p)
[const]QPoint-(const QPoint p1)Operator const QPoint ::operator-(const QPoint &p1, const QPoint &p2)
[const]QPoint-(p)Operator const QPoint ::operator-(const QPoint &p)
QPoint-=(const QPoint p)Method QPoint & QPoint::operator-=(const QPoint &p)
[const]QPoint/(double p)Operator const QPoint ::operator/(const QPoint &p, double c)
QPoint/=(double c)Method QPoint & QPoint::operator/=(double c)
[const]bool==(const QPoint p1)Operator bool ::operator==(const QPoint &p1, const QPoint &p2)
[const]voidassign(const QPoint other)Assign the contents of another object to self
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]QPointdupCreates a copy of self
[const]boolisNullMethod bool QPoint::isNull()
[const]boolisNull?Method bool QPoint::isNull()
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]intmanhattanLengthMethod int QPoint::manhattanLength()
intrxMethod int & QPoint::rx()
intryMethod int & QPoint::ry()
voidsetX(int x)Method void QPoint::setX(int x)
voidsetY(int y)Method void QPoint::setY(int y)
[const]intxMethod int QPoint::x()
voidx=(int x)Method void QPoint::setX(int x)
[const]intyMethod int QPoint::y()
voidy=(int y)Method void QPoint::setY(int y)

Detailed description

[const] bool !=(const QPoint p1)

Description: Operator bool ::operator!=(const QPoint &p1, const QPoint &p2)

This is the mapping of the global operator to the instance method.

QPoint *=(double c)

Description: Method QPoint & QPoint::operator*=(double c)

[const] QPoint +(const QPoint p1)

Description: Operator const QPoint ::operator+(const QPoint &p1, const QPoint &p2)

This is the mapping of the global operator to the instance method.

QPoint +=(const QPoint p)

Description: Method QPoint & QPoint::operator+=(const QPoint &p)

[const] QPoint -(const QPoint p1)

Description: Operator const QPoint ::operator-(const QPoint &p1, const QPoint &p2)

This is the mapping of the global operator to the instance method.

[const] QPoint -(p)

Description: Operator const QPoint ::operator-(const QPoint &p)

This is the mapping of the global operator to the instance method.

QPoint -=(const QPoint p)

Description: Method QPoint & QPoint::operator-=(const QPoint &p)

[const] QPoint /(double p)

Description: Operator const QPoint ::operator/(const QPoint &p, double c)

This is the mapping of the global operator to the instance method.

QPoint /=(double c)

Description: Method QPoint & QPoint::operator/=(double c)

[const] bool ==(const QPoint p1)

Description: Operator bool ::operator==(const QPoint &p1, const QPoint &p2)

This is the mapping of the global operator to the instance method.

[const] void assign(const QPoint other)

Description: Assign the contents of another object to self

This method assigns the contents of another object to self. This is a deep copy that does not only copy the reference but the actual content.

void create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

void destroy

Description: Explicitly destroy the object

Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.

[const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

[const] QPoint dup

Description: Creates a copy of self

[const] bool isNull

Description: Method bool QPoint::isNull()

[const] bool isNull?

Description: Method bool QPoint::isNull()

[const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

[const] int manhattanLength

Description: Method int QPoint::manhattanLength()

[static] new QPoint new

Description: Constructor QPoint::QPoint()

This method creates an object of class QPoint.

[static] new QPoint new(int xpos,int ypos)

Description: Constructor QPoint::QPoint(int xpos, int ypos)

This method creates an object of class QPoint.

int rx

Description: Method int & QPoint::rx()

int ry

Description: Method int & QPoint::ry()

void setX(int x)

Description: Method void QPoint::setX(int x)

void setY(int y)

Description: Method void QPoint::setY(int y)

[const] int x

Description: Method int QPoint::x()

void x=(int x)

Description: Method void QPoint::setX(int x)

[const] int y

Description: Method int QPoint::y()

void y=(int y)

Description: Method void QPoint::setY(int y)