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

API reference - Class QSizeF

Notation used in Ruby API documentation

Description: Binding of QSizeF

Public constructors

new QSizeFnewConstructor QSizeF::QSizeF()
new QSizeFnew(double w,
double h)
Constructor QSizeF::QSizeF(double w, double h)
new QSizeFnew(const QSize sz)Constructor QSizeF::QSizeF(const QSize &sz)

Public methods

[const]bool!=(const QSizeF s1)Operator bool ::operator!=(const QSizeF &s1, const QSizeF &s2)
QSizeF*=(double c)Method QSizeF & QSizeF::operator*=(double c)
[const]QSizeF+(const QSizeF s1)Operator const QSizeF ::operator+(const QSizeF &s1, const QSizeF &s2)
QSizeF+=(const QSizeF arg1)Method QSizeF & QSizeF::operator+=(const QSizeF &)
[const]QSizeF-(const QSizeF s1)Operator const QSizeF ::operator-(const QSizeF &s1, const QSizeF &s2)
QSizeF-=(const QSizeF arg1)Method QSizeF & QSizeF::operator-=(const QSizeF &)
[const]QSizeF/(double s)Operator const QSizeF ::operator/(const QSizeF &s, double c)
QSizeF/=(double c)Method QSizeF & QSizeF::operator/=(double c)
[const]bool==(const QSizeF s1)Operator bool ::operator==(const QSizeF &s1, const QSizeF &s2)
[const]voidassign(const QSizeF other)Assign the contents of another object to self
[const]QSizeFboundedTo(const QSizeF arg1)Method QSizeF QSizeF::boundedTo(const QSizeF &)
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]QSizeFdupCreates a copy of self
[const]QSizeFexpandedTo(const QSizeF arg1)Method QSizeF QSizeF::expandedTo(const QSizeF &)
[const]doubleheightMethod double QSizeF::height()
voidheight=(double h)Method void QSizeF::setHeight(double h)
[const]boolisEmptyMethod bool QSizeF::isEmpty()
[const]boolisEmpty?Method bool QSizeF::isEmpty()
[const]boolisNullMethod bool QSizeF::isNull()
[const]boolisNull?Method bool QSizeF::isNull()
[const]boolisValidMethod bool QSizeF::isValid()
[const]boolisValid?Method bool QSizeF::isValid()
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
doublerheightMethod double & QSizeF::rheight()
doublerwidthMethod double & QSizeF::rwidth()
voidscale(double w,
double h,
const Qt_AspectRatioMode mode)
Method void QSizeF::scale(double w, double h, Qt::AspectRatioMode mode)
voidscale(const QSizeF s,
const Qt_AspectRatioMode mode)
Method void QSizeF::scale(const QSizeF &s, Qt::AspectRatioMode mode)
voidsetHeight(double h)Method void QSizeF::setHeight(double h)
voidsetWidth(double w)Method void QSizeF::setWidth(double w)
[const]QSizetoSizeMethod QSize QSizeF::toSize()
voidtransposeMethod void QSizeF::transpose()
[const]doublewidthMethod double QSizeF::width()
voidwidth=(double w)Method void QSizeF::setWidth(double w)

Detailed description

[const] bool !=(const QSizeF s1)

Description: Operator bool ::operator!=(const QSizeF &s1, const QSizeF &s2)

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

QSizeF *=(double c)

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

[const] QSizeF +(const QSizeF s1)

Description: Operator const QSizeF ::operator+(const QSizeF &s1, const QSizeF &s2)

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

QSizeF +=(const QSizeF arg1)

Description: Method QSizeF & QSizeF::operator+=(const QSizeF &)

[const] QSizeF -(const QSizeF s1)

Description: Operator const QSizeF ::operator-(const QSizeF &s1, const QSizeF &s2)

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

QSizeF -=(const QSizeF arg1)

Description: Method QSizeF & QSizeF::operator-=(const QSizeF &)

[const] QSizeF /(double s)

Description: Operator const QSizeF ::operator/(const QSizeF &s, double c)

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

QSizeF /=(double c)

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

[const] bool ==(const QSizeF s1)

Description: Operator bool ::operator==(const QSizeF &s1, const QSizeF &s2)

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

[const] void assign(const QSizeF 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.

[const] QSizeF boundedTo(const QSizeF arg1)

Description: Method QSizeF QSizeF::boundedTo(const QSizeF &)

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] QSizeF dup

Description: Creates a copy of self

[const] QSizeF expandedTo(const QSizeF arg1)

Description: Method QSizeF QSizeF::expandedTo(const QSizeF &)

[const] double height

Description: Method double QSizeF::height()

void height=(double h)

Description: Method void QSizeF::setHeight(double h)

[const] bool isEmpty

Description: Method bool QSizeF::isEmpty()

[const] bool isEmpty?

Description: Method bool QSizeF::isEmpty()

[const] bool isNull

Description: Method bool QSizeF::isNull()

[const] bool isNull?

Description: Method bool QSizeF::isNull()

[const] bool isValid

Description: Method bool QSizeF::isValid()

[const] bool isValid?

Description: Method bool QSizeF::isValid()

[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.

[static] new QSizeF new

Description: Constructor QSizeF::QSizeF()

This method creates an object of class QSizeF.

[static] new QSizeF new(double w,double h)

Description: Constructor QSizeF::QSizeF(double w, double h)

This method creates an object of class QSizeF.

[static] new QSizeF new(const QSize sz)

Description: Constructor QSizeF::QSizeF(const QSize &sz)

This method creates an object of class QSizeF.

double rheight

Description: Method double & QSizeF::rheight()

double rwidth

Description: Method double & QSizeF::rwidth()

void scale(double w,double h,const Qt_AspectRatioMode mode)

Description: Method void QSizeF::scale(double w, double h, Qt::AspectRatioMode mode)

void scale(const QSizeF s,const Qt_AspectRatioMode mode)

Description: Method void QSizeF::scale(const QSizeF &s, Qt::AspectRatioMode mode)

void setHeight(double h)

Description: Method void QSizeF::setHeight(double h)

void setWidth(double w)

Description: Method void QSizeF::setWidth(double w)

[const] QSize toSize

Description: Method QSize QSizeF::toSize()

void transpose

Description: Method void QSizeF::transpose()

[const] double width

Description: Method double QSizeF::width()

void width=(double w)

Description: Method void QSizeF::setWidth(double w)