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

API reference - Class QRectF

Notation used in Ruby API documentation

Description: Binding of QRectF

Public constructors

new QRectFnewConstructor QRectF::QRectF()
new QRectFnew(const QRect rect)Constructor QRectF::QRectF(const QRect &rect)
new QRectFnew(double left,
double top,
double width,
double height)
Constructor QRectF::QRectF(double left, double top, double width, double height)
new QRectFnew(const QPointF topleft,
const QSizeF size)
Constructor QRectF::QRectF(const QPointF &topleft, const QSizeF &size)
new QRectFnew(const QPointF topleft,
const QPointF bottomRight)
Constructor QRectF::QRectF(const QPointF &topleft, const QPointF &bottomRight)

Public methods

[const]QRectF(const QRectF r)Method QRectF QRectF::operator|(const QRectF &r)
QRectF(const QRectF r)Method QRectF & QRectF::operator|=(const QRectF &r)
[const]bool!=(const QRectF r1)Operator bool ::operator!=(const QRectF &r1, const QRectF &r2)
[const]QRectF&(const QRectF r)Method QRectF QRectF::operator&(const QRectF &r)
QRectF&=(const QRectF r)Method QRectF & QRectF::operator&=(const QRectF &r)
QRectF=(const QRectF r)Method QRectF & QRectF::operator|=(const QRectF &r)
[const]bool==(const QRectF r1)Operator bool ::operator==(const QRectF &r1, const QRectF &r2)
voidadjust(double x1,
double y1,
double x2,
double y2)
Method void QRectF::adjust(double x1, double y1, double x2, double y2)
[const]QRectFadjusted(double x1,
double y1,
double x2,
double y2)
Method QRectF QRectF::adjusted(double x1, double y1, double x2, double y2)
[const]voidassign(const QRectF other)Assign the contents of another object to self
[const]doublebottomMethod double QRectF::bottom()
voidbottom=(double pos)Method void QRectF::setBottom(double pos)
[const]QPointFbottomLeftMethod QPointF QRectF::bottomLeft()
voidbottomLeft=(const QPointF p)Method void QRectF::setBottomLeft(const QPointF &p)
[const]QPointFbottomRightMethod QPointF QRectF::bottomRight()
voidbottomRight=(const QPointF p)Method void QRectF::setBottomRight(const QPointF &p)
[const]QPointFcenterMethod QPointF QRectF::center()
[const]boolcontains(double x,
double y)
Method bool QRectF::contains(double x, double y)
[const]boolcontains(const QRectF r)Method bool QRectF::contains(const QRectF &r)
[const]boolcontains(const QPointF p)Method bool QRectF::contains(const QPointF &p)
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]QRectFdupCreates a copy of self
[const]voidgetCoords(double ptr x1,
double ptr y1,
double ptr x2,
double ptr y2)
Method void QRectF::getCoords(double *x1, double *y1, double *x2, double *y2)
[const]voidgetRect(double ptr x,
double ptr y,
double ptr w,
double ptr h)
Method void QRectF::getRect(double *x, double *y, double *w, double *h)
[const]doubleheightMethod double QRectF::height()
voidheight=(double h)Method void QRectF::setHeight(double h)
[const]QRectFintersect(const QRectF r)Method QRectF QRectF::intersect(const QRectF &r)
[const]QRectFintersected(const QRectF other)Method QRectF QRectF::intersected(const QRectF &other)
[const]boolintersects(const QRectF r)Method bool QRectF::intersects(const QRectF &r)
[const]boolisEmptyMethod bool QRectF::isEmpty()
[const]boolisEmpty?Method bool QRectF::isEmpty()
[const]boolisNullMethod bool QRectF::isNull()
[const]boolisNull?Method bool QRectF::isNull()
[const]boolisValidMethod bool QRectF::isValid()
[const]boolisValid?Method bool QRectF::isValid()
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]doubleleftMethod double QRectF::left()
voidleft=(double pos)Method void QRectF::setLeft(double pos)
voidmoveBottom(double pos)Method void QRectF::moveBottom(double pos)
voidmoveBottomLeft(const QPointF p)Method void QRectF::moveBottomLeft(const QPointF &p)
voidmoveBottomRight(const QPointF p)Method void QRectF::moveBottomRight(const QPointF &p)
voidmoveCenter(const QPointF p)Method void QRectF::moveCenter(const QPointF &p)
voidmoveLeft(double pos)Method void QRectF::moveLeft(double pos)
voidmoveRight(double pos)Method void QRectF::moveRight(double pos)
voidmoveTo(double x,
double t)
Method void QRectF::moveTo(double x, double t)
voidmoveTo(const QPointF p)Method void QRectF::moveTo(const QPointF &p)
voidmoveTop(double pos)Method void QRectF::moveTop(double pos)
voidmoveTopLeft(const QPointF p)Method void QRectF::moveTopLeft(const QPointF &p)
voidmoveTopRight(const QPointF p)Method void QRectF::moveTopRight(const QPointF &p)
[const]QRectFnormalizedMethod QRectF QRectF::normalized()
[const]doublerightMethod double QRectF::right()
voidright=(double pos)Method void QRectF::setRight(double pos)
voidsetBottom(double pos)Method void QRectF::setBottom(double pos)
voidsetBottomLeft(const QPointF p)Method void QRectF::setBottomLeft(const QPointF &p)
voidsetBottomRight(const QPointF p)Method void QRectF::setBottomRight(const QPointF &p)
voidsetCoords(double x1,
double y1,
double x2,
double y2)
Method void QRectF::setCoords(double x1, double y1, double x2, double y2)
voidsetHeight(double h)Method void QRectF::setHeight(double h)
voidsetLeft(double pos)Method void QRectF::setLeft(double pos)
voidsetRect(double x,
double y,
double w,
double h)
Method void QRectF::setRect(double x, double y, double w, double h)
voidsetRight(double pos)Method void QRectF::setRight(double pos)
voidsetSize(const QSizeF s)Method void QRectF::setSize(const QSizeF &s)
voidsetTop(double pos)Method void QRectF::setTop(double pos)
voidsetTopLeft(const QPointF p)Method void QRectF::setTopLeft(const QPointF &p)
voidsetTopRight(const QPointF p)Method void QRectF::setTopRight(const QPointF &p)
voidsetWidth(double w)Method void QRectF::setWidth(double w)
voidsetX(double pos)Method void QRectF::setX(double pos)
voidsetY(double pos)Method void QRectF::setY(double pos)
[const]QSizeFsizeMethod QSizeF QRectF::size()
voidsize=(const QSizeF s)Method void QRectF::setSize(const QSizeF &s)
[const]QRecttoAlignedRectMethod QRect QRectF::toAlignedRect()
[const]QRecttoRectMethod QRect QRectF::toRect()
[const]doubletopMethod double QRectF::top()
voidtop=(double pos)Method void QRectF::setTop(double pos)
[const]QPointFtopLeftMethod QPointF QRectF::topLeft()
voidtopLeft=(const QPointF p)Method void QRectF::setTopLeft(const QPointF &p)
[const]QPointFtopRightMethod QPointF QRectF::topRight()
voidtopRight=(const QPointF p)Method void QRectF::setTopRight(const QPointF &p)
voidtranslate(double dx,
double dy)
Method void QRectF::translate(double dx, double dy)
voidtranslate(const QPointF p)Method void QRectF::translate(const QPointF &p)
[const]QRectFtranslated(double dx,
double dy)
Method QRectF QRectF::translated(double dx, double dy)
[const]QRectFtranslated(const QPointF p)Method QRectF QRectF::translated(const QPointF &p)
[const]QRectFunite(const QRectF r)Method QRectF QRectF::unite(const QRectF &r)
[const]QRectFunited(const QRectF other)Method QRectF QRectF::united(const QRectF &other)
[const]doublewidthMethod double QRectF::width()
voidwidth=(double w)Method void QRectF::setWidth(double w)
[const]doublexMethod double QRectF::x()
voidx=(double pos)Method void QRectF::setX(double pos)
[const]doubleyMethod double QRectF::y()
voidy=(double pos)Method void QRectF::setY(double pos)

Detailed description

[const] QRectF (const QRectF r)

Description: Method QRectF QRectF::operator|(const QRectF &r)

QRectF (const QRectF r)

Description: Method QRectF & QRectF::operator|=(const QRectF &r)

[const] bool !=(const QRectF r1)

Description: Operator bool ::operator!=(const QRectF &r1, const QRectF &r2)

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

[const] QRectF &(const QRectF r)

Description: Method QRectF QRectF::operator&(const QRectF &r)

QRectF &=(const QRectF r)

Description: Method QRectF & QRectF::operator&=(const QRectF &r)

QRectF =(const QRectF r)

Description: Method QRectF & QRectF::operator|=(const QRectF &r)

[const] bool ==(const QRectF r1)

Description: Operator bool ::operator==(const QRectF &r1, const QRectF &r2)

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

void adjust(double x1,double y1,double x2,double y2)

Description: Method void QRectF::adjust(double x1, double y1, double x2, double y2)

[const] QRectF adjusted(double x1,double y1,double x2,double y2)

Description: Method QRectF QRectF::adjusted(double x1, double y1, double x2, double y2)

[const] void assign(const QRectF 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] double bottom

Description: Method double QRectF::bottom()

void bottom=(double pos)

Description: Method void QRectF::setBottom(double pos)

[const] QPointF bottomLeft

Description: Method QPointF QRectF::bottomLeft()

void bottomLeft=(const QPointF p)

Description: Method void QRectF::setBottomLeft(const QPointF &p)

[const] QPointF bottomRight

Description: Method QPointF QRectF::bottomRight()

void bottomRight=(const QPointF p)

Description: Method void QRectF::setBottomRight(const QPointF &p)

[const] QPointF center

Description: Method QPointF QRectF::center()

[const] bool contains(double x,double y)

Description: Method bool QRectF::contains(double x, double y)

[const] bool contains(const QRectF r)

Description: Method bool QRectF::contains(const QRectF &r)

[const] bool contains(const QPointF p)

Description: Method bool QRectF::contains(const QPointF &p)

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

Description: Creates a copy of self

[const] void getCoords(double ptr x1,double ptr y1,double ptr x2,double ptr y2)

Description: Method void QRectF::getCoords(double *x1, double *y1, double *x2, double *y2)

[const] void getRect(double ptr x,double ptr y,double ptr w,double ptr h)

Description: Method void QRectF::getRect(double *x, double *y, double *w, double *h)

[const] double height

Description: Method double QRectF::height()

void height=(double h)

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

[const] QRectF intersect(const QRectF r)

Description: Method QRectF QRectF::intersect(const QRectF &r)

[const] QRectF intersected(const QRectF other)

Description: Method QRectF QRectF::intersected(const QRectF &other)

[const] bool intersects(const QRectF r)

Description: Method bool QRectF::intersects(const QRectF &r)

[const] bool isEmpty

Description: Method bool QRectF::isEmpty()

[const] bool isEmpty?

Description: Method bool QRectF::isEmpty()

[const] bool isNull

Description: Method bool QRectF::isNull()

[const] bool isNull?

Description: Method bool QRectF::isNull()

[const] bool isValid

Description: Method bool QRectF::isValid()

[const] bool isValid?

Description: Method bool QRectF::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.

[const] double left

Description: Method double QRectF::left()

void left=(double pos)

Description: Method void QRectF::setLeft(double pos)

void moveBottom(double pos)

Description: Method void QRectF::moveBottom(double pos)

void moveBottomLeft(const QPointF p)

Description: Method void QRectF::moveBottomLeft(const QPointF &p)

void moveBottomRight(const QPointF p)

Description: Method void QRectF::moveBottomRight(const QPointF &p)

void moveCenter(const QPointF p)

Description: Method void QRectF::moveCenter(const QPointF &p)

void moveLeft(double pos)

Description: Method void QRectF::moveLeft(double pos)

void moveRight(double pos)

Description: Method void QRectF::moveRight(double pos)

void moveTo(double x,double t)

Description: Method void QRectF::moveTo(double x, double t)

void moveTo(const QPointF p)

Description: Method void QRectF::moveTo(const QPointF &p)

void moveTop(double pos)

Description: Method void QRectF::moveTop(double pos)

void moveTopLeft(const QPointF p)

Description: Method void QRectF::moveTopLeft(const QPointF &p)

void moveTopRight(const QPointF p)

Description: Method void QRectF::moveTopRight(const QPointF &p)

[static] new QRectF new

Description: Constructor QRectF::QRectF()

This method creates an object of class QRectF.

[static] new QRectF new(const QRect rect)

Description: Constructor QRectF::QRectF(const QRect &rect)

This method creates an object of class QRectF.

[static] new QRectF new(double left,double top,double width,double height)

Description: Constructor QRectF::QRectF(double left, double top, double width, double height)

This method creates an object of class QRectF.

[static] new QRectF new(const QPointF topleft,const QSizeF size)

Description: Constructor QRectF::QRectF(const QPointF &topleft, const QSizeF &size)

This method creates an object of class QRectF.

[static] new QRectF new(const QPointF topleft,const QPointF bottomRight)

Description: Constructor QRectF::QRectF(const QPointF &topleft, const QPointF &bottomRight)

This method creates an object of class QRectF.

[const] QRectF normalized

Description: Method QRectF QRectF::normalized()

[const] double right

Description: Method double QRectF::right()

void right=(double pos)

Description: Method void QRectF::setRight(double pos)

void setBottom(double pos)

Description: Method void QRectF::setBottom(double pos)

void setBottomLeft(const QPointF p)

Description: Method void QRectF::setBottomLeft(const QPointF &p)

void setBottomRight(const QPointF p)

Description: Method void QRectF::setBottomRight(const QPointF &p)

void setCoords(double x1,double y1,double x2,double y2)

Description: Method void QRectF::setCoords(double x1, double y1, double x2, double y2)

void setHeight(double h)

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

void setLeft(double pos)

Description: Method void QRectF::setLeft(double pos)

void setRect(double x,double y,double w,double h)

Description: Method void QRectF::setRect(double x, double y, double w, double h)

void setRight(double pos)

Description: Method void QRectF::setRight(double pos)

void setSize(const QSizeF s)

Description: Method void QRectF::setSize(const QSizeF &s)

void setTop(double pos)

Description: Method void QRectF::setTop(double pos)

void setTopLeft(const QPointF p)

Description: Method void QRectF::setTopLeft(const QPointF &p)

void setTopRight(const QPointF p)

Description: Method void QRectF::setTopRight(const QPointF &p)

void setWidth(double w)

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

void setX(double pos)

Description: Method void QRectF::setX(double pos)

void setY(double pos)

Description: Method void QRectF::setY(double pos)

[const] QSizeF size

Description: Method QSizeF QRectF::size()

void size=(const QSizeF s)

Description: Method void QRectF::setSize(const QSizeF &s)

[const] QRect toAlignedRect

Description: Method QRect QRectF::toAlignedRect()

[const] QRect toRect

Description: Method QRect QRectF::toRect()

[const] double top

Description: Method double QRectF::top()

void top=(double pos)

Description: Method void QRectF::setTop(double pos)

[const] QPointF topLeft

Description: Method QPointF QRectF::topLeft()

void topLeft=(const QPointF p)

Description: Method void QRectF::setTopLeft(const QPointF &p)

[const] QPointF topRight

Description: Method QPointF QRectF::topRight()

void topRight=(const QPointF p)

Description: Method void QRectF::setTopRight(const QPointF &p)

void translate(double dx,double dy)

Description: Method void QRectF::translate(double dx, double dy)

void translate(const QPointF p)

Description: Method void QRectF::translate(const QPointF &p)

[const] QRectF translated(double dx,double dy)

Description: Method QRectF QRectF::translated(double dx, double dy)

[const] QRectF translated(const QPointF p)

Description: Method QRectF QRectF::translated(const QPointF &p)

[const] QRectF unite(const QRectF r)

Description: Method QRectF QRectF::unite(const QRectF &r)

[const] QRectF united(const QRectF other)

Description: Method QRectF QRectF::united(const QRectF &other)

[const] double width

Description: Method double QRectF::width()

void width=(double w)

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

[const] double x

Description: Method double QRectF::x()

void x=(double pos)

Description: Method void QRectF::setX(double pos)

[const] double y

Description: Method double QRectF::y()

void y=(double pos)

Description: Method void QRectF::setY(double pos)