API reference - Class QPen

Notation used in Ruby API documentation

Description: Binding of QPen

Public constructors

new QPennewConstructor QPen::QPen()
new QPennew(const Qt_PenStyle arg1)Constructor QPen::QPen(Qt::PenStyle)
new QPennew(const QColor color)Constructor QPen::QPen(const QColor &color)
new QPennew(const QBrush brush,
double width,
const Qt_PenStyle s = Qt::SolidLine,
const Qt_PenCapStyle c = Qt::SquareCap,
const Qt_PenJoinStyle j = Qt::BevelJoin)
Constructor QPen::QPen(const QBrush &brush, double width, Qt::PenStyle s, Qt::PenCapStyle c, Qt::PenJoinStyle j)
new QPennew(const QPen pen)Constructor QPen::QPen(const QPen &pen)

Public methods

[const]bool!=(const QPen p)Method bool QPen::operator!=(const QPen &p)
[const]bool==(const QPen p)Method bool QPen::operator==(const QPen &p)
QPenassign(const QPen pen)Method QPen &QPen::operator=(const QPen &pen)
[const]voidassign(const QPen other)Assign the contents of another object to self
[const]QBrushbrushMethod QBrush QPen::brush()
voidbrush=(const QBrush brush)Method void QPen::setBrush(const QBrush &brush)
[const]Qt_PenCapStylecapStyleMethod Qt::PenCapStyle QPen::capStyle()
voidcapStyle=(const Qt_PenCapStyle pcs)Method void QPen::setCapStyle(Qt::PenCapStyle pcs)
[const]QColorcolorMethod QColor QPen::color()
voidcolor=(const QColor color)Method void QPen::setColor(const QColor &color)
voidcosmetic=(bool cosmetic)Method void QPen::setCosmetic(bool cosmetic)
voidcreateEnsures the C++ object is created
[const]doubledashOffsetMethod double QPen::dashOffset()
voiddashOffset=(double doffset)Method void QPen::setDashOffset(double doffset)
[const]double[]dashPatternMethod QVector<double> QPen::dashPattern()
voiddashPattern=(double[] pattern)Method void QPen::setDashPattern(const QVector<double> &pattern)
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]QPendupCreates a copy of self
[const]boolisCosmeticMethod bool QPen::isCosmetic()
[const]boolisCosmetic?Method bool QPen::isCosmetic()
boolisDetachedMethod bool QPen::isDetached()
boolisDetached?Method bool QPen::isDetached()
[const]boolisSolidMethod bool QPen::isSolid()
[const]boolisSolid?Method bool QPen::isSolid()
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]Qt_PenJoinStylejoinStyleMethod Qt::PenJoinStyle QPen::joinStyle()
voidjoinStyle=(const Qt_PenJoinStyle pcs)Method void QPen::setJoinStyle(Qt::PenJoinStyle pcs)
[const]doublemiterLimitMethod double QPen::miterLimit()
voidmiterLimit=(double limit)Method void QPen::setMiterLimit(double limit)
voidsetBrush(const QBrush brush)Method void QPen::setBrush(const QBrush &brush)
voidsetCapStyle(const Qt_PenCapStyle pcs)Method void QPen::setCapStyle(Qt::PenCapStyle pcs)
voidsetColor(const QColor color)Method void QPen::setColor(const QColor &color)
voidsetCosmetic(bool cosmetic)Method void QPen::setCosmetic(bool cosmetic)
voidsetDashOffset(double doffset)Method void QPen::setDashOffset(double doffset)
voidsetDashPattern(double[] pattern)Method void QPen::setDashPattern(const QVector<double> &pattern)
voidsetJoinStyle(const Qt_PenJoinStyle pcs)Method void QPen::setJoinStyle(Qt::PenJoinStyle pcs)
voidsetMiterLimit(double limit)Method void QPen::setMiterLimit(double limit)
voidsetStyle(const Qt_PenStyle arg1)Method void QPen::setStyle(Qt::PenStyle)
voidsetWidth(int width)Method void QPen::setWidth(int width)
voidsetWidthF(double width)Method void QPen::setWidthF(double width)
[const]Qt_PenStylestyleMethod Qt::PenStyle QPen::style()
voidstyle=(const Qt_PenStyle arg1)Method void QPen::setStyle(Qt::PenStyle)
[const]intwidthMethod int QPen::width()
voidwidth=(int width)Method void QPen::setWidth(int width)
[const]doublewidthFMethod double QPen::widthF()
voidwidthF=(double width)Method void QPen::setWidthF(double width)

Detailed description

[const] bool !=(const QPen p)

Description: Method bool QPen::operator!=(const QPen &p)

[const] bool ==(const QPen p)

Description: Method bool QPen::operator==(const QPen &p)

QPen assign(const QPen pen)

Description: Method QPen &QPen::operator=(const QPen &pen)

[const] void assign(const QPen 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] QBrush brush

Description: Method QBrush QPen::brush()

void brush=(const QBrush brush)

Description: Method void QPen::setBrush(const QBrush &brush)

[const] Qt_PenCapStyle capStyle

Description: Method Qt::PenCapStyle QPen::capStyle()

void capStyle=(const Qt_PenCapStyle pcs)

Description: Method void QPen::setCapStyle(Qt::PenCapStyle pcs)

[const] QColor color

Description: Method QColor QPen::color()

void color=(const QColor color)

Description: Method void QPen::setColor(const QColor &color)

void cosmetic=(bool cosmetic)

Description: Method void QPen::setCosmetic(bool cosmetic)

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.

[const] double dashOffset

Description: Method double QPen::dashOffset()

void dashOffset=(double doffset)

Description: Method void QPen::setDashOffset(double doffset)

[const] double[] dashPattern

Description: Method QVector<double> QPen::dashPattern()

void dashPattern=(double[] pattern)

Description: Method void QPen::setDashPattern(const QVector<double> &pattern)

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

Description: Creates a copy of self

[const] bool isCosmetic

Description: Method bool QPen::isCosmetic()

[const] bool isCosmetic?

Description: Method bool QPen::isCosmetic()

bool isDetached

Description: Method bool QPen::isDetached()

bool isDetached?

Description: Method bool QPen::isDetached()

[const] bool isSolid

Description: Method bool QPen::isSolid()

[const] bool isSolid?

Description: Method bool QPen::isSolid()

[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] Qt_PenJoinStyle joinStyle

Description: Method Qt::PenJoinStyle QPen::joinStyle()

void joinStyle=(const Qt_PenJoinStyle pcs)

Description: Method void QPen::setJoinStyle(Qt::PenJoinStyle pcs)

[const] double miterLimit

Description: Method double QPen::miterLimit()

void miterLimit=(double limit)

Description: Method void QPen::setMiterLimit(double limit)

[static] new QPen new

Description: Constructor QPen::QPen()

This method creates an object of class QPen.

[static] new QPen new(const Qt_PenStyle arg1)

Description: Constructor QPen::QPen(Qt::PenStyle)

This method creates an object of class QPen.

[static] new QPen new(const QColor color)

Description: Constructor QPen::QPen(const QColor &color)

This method creates an object of class QPen.

[static] new QPen new(const QBrush brush,double width,const Qt_PenStyle s = Qt::SolidLine,const Qt_PenCapStyle c = Qt::SquareCap,const Qt_PenJoinStyle j = Qt::BevelJoin)

Description: Constructor QPen::QPen(const QBrush &brush, double width, Qt::PenStyle s, Qt::PenCapStyle c, Qt::PenJoinStyle j)

This method creates an object of class QPen.

[static] new QPen new(const QPen pen)

Description: Constructor QPen::QPen(const QPen &pen)

This method creates an object of class QPen.

void setBrush(const QBrush brush)

Description: Method void QPen::setBrush(const QBrush &brush)

void setCapStyle(const Qt_PenCapStyle pcs)

Description: Method void QPen::setCapStyle(Qt::PenCapStyle pcs)

void setColor(const QColor color)

Description: Method void QPen::setColor(const QColor &color)

void setCosmetic(bool cosmetic)

Description: Method void QPen::setCosmetic(bool cosmetic)

void setDashOffset(double doffset)

Description: Method void QPen::setDashOffset(double doffset)

void setDashPattern(double[] pattern)

Description: Method void QPen::setDashPattern(const QVector<double> &pattern)

void setJoinStyle(const Qt_PenJoinStyle pcs)

Description: Method void QPen::setJoinStyle(Qt::PenJoinStyle pcs)

void setMiterLimit(double limit)

Description: Method void QPen::setMiterLimit(double limit)

void setStyle(const Qt_PenStyle arg1)

Description: Method void QPen::setStyle(Qt::PenStyle)

void setWidth(int width)

Description: Method void QPen::setWidth(int width)

void setWidthF(double width)

Description: Method void QPen::setWidthF(double width)

[const] Qt_PenStyle style

Description: Method Qt::PenStyle QPen::style()

void style=(const Qt_PenStyle arg1)

Description: Method void QPen::setStyle(Qt::PenStyle)

[const] int width

Description: Method int QPen::width()

void width=(int width)

Description: Method void QPen::setWidth(int width)

[const] double widthF

Description: Method double QPen::widthF()

void widthF=(double width)

Description: Method void QPen::setWidthF(double width)