API reference - Class QRegion

Notation used in Ruby API documentation

Description: Binding of QRegion

Public constructors

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

Public methods

[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)
[const]QRegion&(const QRect r)Method const QRegion QRegion::operator&(const QRect &r)
QRegion&=(const QRegion r)Method QRegion &QRegion::operator&=(const QRegion &r)
QRegion&=(const QRect r)Method QRegion &QRegion::operator&=(const QRect &r)
[const]QRegion*(const QMatrix m)Operator QRegion ::operator *(const QRegion &r, const QMatrix &m)
[const]QRegion*(const QTransform m)Operator QRegion ::operator *(const QRegion &r, const QTransform &m)
[const]QRegion+(const QRegion r)Method const QRegion QRegion::operator+(const QRegion &r)
[const]QRegion+(const QRect r)Method const QRegion QRegion::operator+(const QRect &r)
QRegion+=(const QRegion r)Method QRegion &QRegion::operator+=(const QRegion &r)
QRegion+=(const QRect r)Method QRegion &QRegion::operator+=(const QRect &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)
[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 QPoint p)Method bool QRegion::contains(const QPoint &p)
[const]boolcontains(const QRect r)Method bool QRegion::contains(const QRect &r)
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 QRegion r)Method QRegion QRegion::intersect(const QRegion &r)
[const]QRegionintersect(const QRect r)Method QRegion QRegion::intersect(const QRect &r)
[const]QRegionintersected(const QRegion r)Method QRegion QRegion::intersected(const QRegion &r)
[const]QRegionintersected(const QRect r)Method QRegion QRegion::intersected(const QRect &r)
[const]boolintersects(const QRegion r)Method bool QRegion::intersects(const QRegion &r)
[const]boolintersects(const QRect r)Method bool QRegion::intersects(const QRect &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<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 QRegion r)Method QRegion QRegion::unite(const QRegion &r)
[const]QRegionunite(const QRect r)Method QRegion QRegion::unite(const QRect &r)
[const]QRegionunited(const QRegion r)Method QRegion QRegion::united(const QRegion &r)
[const]QRegionunited(const QRect r)Method QRegion QRegion::united(const QRect &r)
[const]QRegionxored(const QRegion r)Method QRegion QRegion::xored(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)

Public static methods and constants

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

Detailed description

[const] bool !=(const QRegion r)

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

[const] QRegion &(const QRegion r)

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

[const] QRegion &(const QRect r)

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

QRegion &=(const QRegion r)

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

QRegion &=(const QRect r)

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

[const] QRegion *(const QMatrix m)

Description: Operator QRegion ::operator *(const QRegion &r, const QMatrix &m)

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

[const] QRegion *(const QTransform m)

Description: Operator QRegion ::operator *(const QRegion &r, const QTransform &m)

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

[const] QRegion +(const QRegion r)

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

[const] QRegion +(const QRect r)

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

QRegion +=(const QRegion r)

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

QRegion +=(const QRect r)

Description: Method QRegion &QRegion::operator+=(const QRect &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)

[const] bool ==(const QRegion r)

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

[static] QRegion_RegionType Ellipse

Description: Enum constant QRegion::Ellipse

[static] QRegion_RegionType Rectangle

Description: Enum constant 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 QPoint p)

Description: Method bool QRegion::contains(const QPoint &p)

[const] bool contains(const QRect r)

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

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 QRegion r)

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

[const] QRegion intersect(const QRect r)

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

[const] QRegion intersected(const QRegion r)

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

[const] QRegion intersected(const QRect r)

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

[const] bool intersects(const QRegion r)

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

[const] bool intersects(const QRect r)

Description: Method bool QRegion::intersects(const QRect &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(int x,int y,int w,int h,const QRegion_RegionType t = QRegion::Rectangle)

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 QRect r,const QRegion_RegionType t = QRegion::Rectangle)

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

This method creates an object of class QRegion.

[static] new QRegion new(const QPolygon pa,const Qt_FillRule fillRule = Qt::OddEvenFill)

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

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 QBitmap bitmap)

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

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<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 QRegion r)

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

[const] QRegion unite(const QRect r)

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

[const] QRegion united(const QRegion r)

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

[const] QRegion united(const QRect r)

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

[const] QRegion xored(const QRegion r)

Description: Method QRegion QRegion::xored(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)