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

API reference - Class QRegion

Notation used in Ruby API documentation

Description: Binding of QRegion

Public constructors

new QRegionnewConstructor QRegion::QRegion()
new QRegionnew(const QBitmap bitmap)Constructor QRegion::QRegion(const QBitmap &bitmap)
new QRegionnew(const QRegion region)Constructor QRegion::QRegion(const QRegion &region)
new QRegionnew(const QRect r)Constructor QRegion::QRegion(const QRect &r, QRegion::RegionType t)
new QRegionnew(const QRect r,
const QRegion_RegionType t)
Constructor QRegion::QRegion(const QRect &r, QRegion::RegionType t)
new QRegionnew(int x,
int y,
int w,
int h)
Constructor QRegion::QRegion(int x, int y, int w, int h, QRegion::RegionType t)
new QRegionnew(int x,
int y,
int w,
int h,
const QRegion_RegionType t)
Constructor QRegion::QRegion(int x, int y, int w, int h, QRegion::RegionType t)
new QRegionnew(const QPolygon pa)Constructor QRegion::QRegion(const QPolygon &pa, Qt::FillRule fillRule)
new QRegionnew(const QPolygon pa,
const Qt_FillRule fillRule)
Constructor QRegion::QRegion(const QPolygon &pa, Qt::FillRule fillRule)

Public methods

[const]QRegion(const QRegion r)Method const QRegion QRegion::operator|(const QRegion &r)
QRegion(const QRegion r)Method QRegion & QRegion::operator|=(const QRegion &r)
[const]bool!=(const QRegion r)Method bool QRegion::operator!=(const QRegion &r)
[const]QRegion&(const QRect r)Method const QRegion QRegion::operator&(const QRect &r)
[const]QRegion&(const QRegion r)Method const QRegion QRegion::operator&(const QRegion &r)
QRegion&=(const QRect r)Method QRegion & QRegion::operator&=(const QRect &r)
QRegion&=(const QRegion r)Method QRegion & QRegion::operator&=(const QRegion &r)
[const]QRegion+(const QRect r)Method const QRegion QRegion::operator+(const QRect &r)
[const]QRegion+(const QRegion r)Method const QRegion QRegion::operator+(const QRegion &r)
QRegion+=(const QRect r)Method QRegion & QRegion::operator+=(const QRect &r)
QRegion+=(const QRegion r)Method QRegion & QRegion::operator+=(const QRegion &r)
[const]QRegion-(const QRegion r)Method const QRegion QRegion::operator-(const QRegion &r)
QRegion-=(const QRegion r)Method QRegion & QRegion::operator-=(const QRegion &r)
QRegion=(const QRegion r)Method QRegion & QRegion::operator|=(const QRegion &r)
[const]bool==(const QRegion r)Method bool QRegion::operator==(const QRegion &r)
[const]QRegion^(const QRegion r)Method const QRegion QRegion::operator^(const QRegion &r)
QRegion^=(const QRegion r)Method QRegion & QRegion::operator^=(const QRegion &r)
QRegionassign(const QRegion arg1)Method QRegion & QRegion::operator=(const QRegion &)
[const]voidassign(const QRegion other)Assign the contents of another object to self
[const]QRectboundingRectMethod QRect QRegion::boundingRect()
[const]boolcontains(const QRect r)Method bool QRegion::contains(const QRect &r)
[const]boolcontains(const QPoint p)Method bool QRegion::contains(const QPoint &p)
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]QRegiondupCreates a copy of self
[const]QRegioneor(const QRegion r)Method QRegion QRegion::eor(const QRegion &r)
[const]QRegionintersect(const QRect r)Method QRegion QRegion::intersect(const QRect &r)
[const]QRegionintersect(const QRegion r)Method QRegion QRegion::intersect(const QRegion &r)
[const]QRegionintersected(const QRect r)Method QRegion QRegion::intersected(const QRect &r)
[const]QRegionintersected(const QRegion r)Method QRegion QRegion::intersected(const QRegion &r)
[const]boolintersects(const QRect r)Method bool QRegion::intersects(const QRect &r)
[const]boolintersects(const QRegion r)Method bool QRegion::intersects(const QRegion &r)
[const]boolisEmptyMethod bool QRegion::isEmpty()
[const]boolisEmpty?Method bool QRegion::isEmpty()
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]intnumRectsMethod int QRegion::numRects()
[const]intrectCountMethod int QRegion::rectCount()
[const]QRect[]rectsMethod QVector<class QRect> QRegion::rects()
voidsetRects(QRect[] arg1)Adaption of setRects without pointer.
[const]QRegionsubtract(const QRegion r)Method QRegion QRegion::subtract(const QRegion &r)
[const]QRegionsubtracted(const QRegion r)Method QRegion QRegion::subtracted(const QRegion &r)
voidtranslate(int dx,
int dy)
Method void QRegion::translate(int dx, int dy)
voidtranslate(const QPoint p)Method void QRegion::translate(const QPoint &p)
[const]QRegiontranslated(int dx,
int dy)
Method QRegion QRegion::translated(int dx, int dy)
[const]QRegiontranslated(const QPoint p)Method QRegion QRegion::translated(const QPoint &p)
[const]QRegionunite(const QRect r)Method QRegion QRegion::unite(const QRect &r)
[const]QRegionunite(const QRegion r)Method QRegion QRegion::unite(const QRegion &r)
[const]QRegionunited(const QRect r)Method QRegion QRegion::united(const QRect &r)
[const]QRegionunited(const QRegion r)Method QRegion QRegion::united(const QRegion &r)
[const]QRegionxored(const QRegion r)Method QRegion QRegion::xored(const QRegion &r)

Public static methods and constants

QRegion_RegionTypeEllipseEnum constant enum QRegion::Ellipse
QRegion_RegionTypeRectangleEnum constant enum QRegion::Rectangle

Detailed description

[const] QRegion (const QRegion r)

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

QRegion (const QRegion r)

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

[const] bool !=(const QRegion r)

Description: Method bool QRegion::operator!=(const QRegion &r)

[const] QRegion &(const QRect r)

Description: Method const QRegion QRegion::operator&(const QRect &r)

[const] QRegion &(const QRegion r)

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

QRegion &=(const QRect r)

Description: Method QRegion & QRegion::operator&=(const QRect &r)

QRegion &=(const QRegion r)

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

[const] QRegion +(const QRect r)

Description: Method const QRegion QRegion::operator+(const QRect &r)

[const] QRegion +(const QRegion r)

Description: Method const QRegion QRegion::operator+(const QRegion &r)

QRegion +=(const QRect r)

Description: Method QRegion & QRegion::operator+=(const QRect &r)

QRegion +=(const QRegion r)

Description: Method QRegion & QRegion::operator+=(const QRegion &r)

[const] QRegion -(const QRegion r)

Description: Method const QRegion QRegion::operator-(const QRegion &r)

QRegion -=(const QRegion r)

Description: Method QRegion & QRegion::operator-=(const QRegion &r)

QRegion =(const QRegion r)

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

[const] bool ==(const QRegion r)

Description: Method bool QRegion::operator==(const QRegion &r)

[static] QRegion_RegionType Ellipse

Description: Enum constant enum QRegion::Ellipse

[static] QRegion_RegionType Rectangle

Description: Enum constant enum QRegion::Rectangle

[const] QRegion ^(const QRegion r)

Description: Method const QRegion QRegion::operator^(const QRegion &r)

QRegion ^=(const QRegion r)

Description: Method QRegion & QRegion::operator^=(const QRegion &r)

QRegion assign(const QRegion arg1)

Description: Method QRegion & QRegion::operator=(const QRegion &)

[const] void assign(const QRegion 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] QRect boundingRect

Description: Method QRect QRegion::boundingRect()

[const] bool contains(const QRect r)

Description: Method bool QRegion::contains(const QRect &r)

[const] bool contains(const QPoint p)

Description: Method bool QRegion::contains(const QPoint &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] QRegion dup

Description: Creates a copy of self

[const] QRegion eor(const QRegion r)

Description: Method QRegion QRegion::eor(const QRegion &r)

[const] QRegion intersect(const QRect r)

Description: Method QRegion QRegion::intersect(const QRect &r)

[const] QRegion intersect(const QRegion r)

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

[const] QRegion intersected(const QRect r)

Description: Method QRegion QRegion::intersected(const QRect &r)

[const] QRegion intersected(const QRegion r)

Description: Method QRegion QRegion::intersected(const QRegion &r)

[const] bool intersects(const QRect r)

Description: Method bool QRegion::intersects(const QRect &r)

[const] bool intersects(const QRegion r)

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

[const] bool isEmpty

Description: Method bool QRegion::isEmpty()

[const] bool isEmpty?

Description: Method bool QRegion::isEmpty()

[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 QRegion new

Description: Constructor QRegion::QRegion()

This method creates an object of class QRegion.

[static] new QRegion new(const QBitmap bitmap)

Description: Constructor QRegion::QRegion(const QBitmap &bitmap)

This method creates an object of class QRegion.

[static] new QRegion new(const QRegion region)

Description: Constructor QRegion::QRegion(const QRegion &region)

This method creates an object of class QRegion.

[static] new QRegion new(const QRect r)

Description: Constructor QRegion::QRegion(const QRect &r, QRegion::RegionType t)

This method creates an object of class QRegion.

[static] new QRegion new(const QRect r,const QRegion_RegionType t)

Description: Constructor QRegion::QRegion(const QRect &r, QRegion::RegionType t)

This method creates an object of class QRegion.

[static] new QRegion new(int x,int y,int w,int h)

Description: Constructor QRegion::QRegion(int x, int y, int w, int h, QRegion::RegionType t)

This method creates an object of class QRegion.

[static] new QRegion new(int x,int y,int w,int h,const QRegion_RegionType t)

Description: Constructor QRegion::QRegion(int x, int y, int w, int h, QRegion::RegionType t)

This method creates an object of class QRegion.

[static] new QRegion new(const QPolygon pa)

Description: Constructor QRegion::QRegion(const QPolygon &pa, Qt::FillRule fillRule)

This method creates an object of class QRegion.

[static] new QRegion new(const QPolygon pa,const Qt_FillRule fillRule)

Description: Constructor QRegion::QRegion(const QPolygon &pa, Qt::FillRule fillRule)

This method creates an object of class QRegion.

[const] int numRects

Description: Method int QRegion::numRects()

[const] int rectCount

Description: Method int QRegion::rectCount()

[const] QRect[] rects

Description: Method QVector<class QRect> QRegion::rects()

void setRects(QRect[] arg1)

Description: Adaption of setRects without pointer.

[const] QRegion subtract(const QRegion r)

Description: Method QRegion QRegion::subtract(const QRegion &r)

[const] QRegion subtracted(const QRegion r)

Description: Method QRegion QRegion::subtracted(const QRegion &r)

void translate(int dx,int dy)

Description: Method void QRegion::translate(int dx, int dy)

void translate(const QPoint p)

Description: Method void QRegion::translate(const QPoint &p)

[const] QRegion translated(int dx,int dy)

Description: Method QRegion QRegion::translated(int dx, int dy)

[const] QRegion translated(const QPoint p)

Description: Method QRegion QRegion::translated(const QPoint &p)

[const] QRegion unite(const QRect r)

Description: Method QRegion QRegion::unite(const QRect &r)

[const] QRegion unite(const QRegion r)

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

[const] QRegion united(const QRect r)

Description: Method QRegion QRegion::united(const QRect &r)

[const] QRegion united(const QRegion r)

Description: Method QRegion QRegion::united(const QRegion &r)

[const] QRegion xored(const QRegion r)

Description: Method QRegion QRegion::xored(const QRegion &r)