API reference - Class QSize

Notation used in Ruby API documentation

Description: Binding of QSize

Public constructors

new QSizenewConstructor QSize::QSize()
new QSizenew(int w,
int h)
Constructor QSize::QSize(int w, int h)

Public methods

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

Detailed description

[const] bool !=(const QSize s2)

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

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

[const] QSize *(double c)

Description: Operator const QSize ::operator*(const QSize &s, qreal c)

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

QSize *=(double c)

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

[const] QSize +(const QSize s2)

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

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

QSize +=(const QSize arg1)

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

[const] QSize -(const QSize s2)

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

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

QSize -=(const QSize arg1)

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

[const] QSize /(double c)

Description: Operator const QSize ::operator/(const QSize &s, qreal c)

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

QSize /=(double c)

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

[const] bool ==(const QSize s2)

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

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

[const] void assign(const QSize 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] QSize boundedTo(const QSize arg1)

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

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

Description: Creates a copy of self

[const] QSize expandedTo(const QSize arg1)

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

[const] int height

Description: Method int QSize::height()

void height=(int h)

Description: Method void QSize::setHeight(int h)

[const] bool isEmpty

Description: Method bool QSize::isEmpty()

[const] bool isEmpty?

Description: Method bool QSize::isEmpty()

[const] bool isNull

Description: Method bool QSize::isNull()

[const] bool isNull?

Description: Method bool QSize::isNull()

[const] bool isValid

Description: Method bool QSize::isValid()

[const] bool isValid?

Description: Method bool QSize::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 QSize new

Description: Constructor QSize::QSize()

This method creates an object of class QSize.

[static] new QSize new(int w,int h)

Description: Constructor QSize::QSize(int w, int h)

This method creates an object of class QSize.

int rheight

Description: Method int &QSize::rheight()

int rwidth

Description: Method int &QSize::rwidth()

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

Description: Method void QSize::scale(int w, int h, Qt::AspectRatioMode mode)

void scale(const QSize s,const Qt_AspectRatioMode mode)

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

void setHeight(int h)

Description: Method void QSize::setHeight(int h)

void setWidth(int w)

Description: Method void QSize::setWidth(int w)

void transpose

Description: Method void QSize::transpose()

[const] int width

Description: Method int QSize::width()

void width=(int w)

Description: Method void QSize::setWidth(int w)