Notation used in Ruby API documentation
Module: QtGui
Description: Binding of QPen
new QPen | new | Constructor QPen::QPen() | |
new QPen | new | (const Qt_PenStyle arg1) | Constructor QPen::QPen(Qt::PenStyle) |
new QPen | new | (const QColor color) | Constructor QPen::QPen(const QColor &color) |
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) | Constructor QPen::QPen(const QBrush &brush, double width, Qt::PenStyle s, Qt::PenCapStyle c, Qt::PenJoinStyle j) |
new QPen | new | (const QPen pen) | Constructor QPen::QPen(const QPen &pen) |
[const] | bool | != | (const QPen p) | Method bool QPen::operator!=(const QPen &p) |
[const] | bool | == | (const QPen p) | Method bool QPen::operator==(const QPen &p) |
void | _assign | (const QPen other) | Assigns another object to self | |
[const] | QPen ptr | _const_cast | Returns a non-const reference to self. | |
void | _create | Ensures the C++ object is created | ||
void | _destroy | Explicitly destroys the object | ||
[const] | bool | _destroyed? | Returns a value indicating whether the object was already destroyed | |
[const] | bool | _is_const_object? | Returns a value indicating whether the reference is a const reference | |
void | _manage | Marks the object as managed by the script side. | ||
void | _unmanage | Marks the object as no longer owned by the script side. | ||
QPen | assign | (const QPen pen) | Method QPen &QPen::operator=(const QPen &pen) | |
[const] | QBrush | brush | Method QBrush QPen::brush() | |
void | brush= | (const QBrush brush) | Method void QPen::setBrush(const QBrush &brush) | |
[const] | Qt_PenCapStyle | capStyle | Method Qt::PenCapStyle QPen::capStyle() | |
void | capStyle= | (const Qt_PenCapStyle pcs) | Method void QPen::setCapStyle(Qt::PenCapStyle pcs) | |
[const] | QColor | color | Method QColor QPen::color() | |
void | color= | (const QColor color) | Method void QPen::setColor(const QColor &color) | |
[const] | bool | cosmetic | Method bool QPen::isCosmetic() | |
void | cosmetic= | (bool cosmetic) | Method void QPen::setCosmetic(bool cosmetic) | |
[const] | double | dashOffset | Method double QPen::dashOffset() | |
void | dashOffset= | (double doffset) | Method void QPen::setDashOffset(double doffset) | |
[const] | double[] | dashPattern | Method QVector<qreal> QPen::dashPattern() | |
void | dashPattern= | (double[] pattern) | Method void QPen::setDashPattern(const QVector<qreal> &pattern) | |
[const] | new QPen ptr | dup | Creates a copy of self | |
[const] | bool | isCosmetic? | Method bool QPen::isCosmetic() | |
bool | isDetached? | Method bool QPen::isDetached() | ||
[const] | bool | isSolid? | Method bool QPen::isSolid() | |
[const] | Qt_PenJoinStyle | joinStyle | Method Qt::PenJoinStyle QPen::joinStyle() | |
void | joinStyle= | (const Qt_PenJoinStyle pcs) | Method void QPen::setJoinStyle(Qt::PenJoinStyle pcs) | |
[const] | double | miterLimit | Method double QPen::miterLimit() | |
void | miterLimit= | (double limit) | Method void QPen::setMiterLimit(double limit) | |
void | setBrush | (const QBrush brush) | Method void QPen::setBrush(const QBrush &brush) | |
void | setCapStyle | (const Qt_PenCapStyle pcs) | Method void QPen::setCapStyle(Qt::PenCapStyle pcs) | |
void | setColor | (const QColor color) | Method void QPen::setColor(const QColor &color) | |
void | setCosmetic | (bool cosmetic) | Method void QPen::setCosmetic(bool cosmetic) | |
void | setDashOffset | (double doffset) | Method void QPen::setDashOffset(double doffset) | |
void | setDashPattern | (double[] pattern) | Method void QPen::setDashPattern(const QVector<qreal> &pattern) | |
void | setJoinStyle | (const Qt_PenJoinStyle pcs) | Method void QPen::setJoinStyle(Qt::PenJoinStyle pcs) | |
void | setMiterLimit | (double limit) | Method void QPen::setMiterLimit(double limit) | |
void | setStyle | (const Qt_PenStyle arg1) | Method void QPen::setStyle(Qt::PenStyle) | |
void | setWidth | (int width) | Method void QPen::setWidth(int width) | |
void | setWidthF | (double width) | Method void QPen::setWidthF(double width) | |
[const] | Qt_PenStyle | style | Method Qt::PenStyle QPen::style() | |
void | style= | (const Qt_PenStyle arg1) | Method void QPen::setStyle(Qt::PenStyle) | |
void | swap | (QPen other) | Method void QPen::swap(QPen &other) | |
[const] | int | width | Method int QPen::width() | |
void | width= | (int width) | Method void QPen::setWidth(int width) | |
[const] | double | widthF | Method double QPen::widthF() | |
void | widthF= | (double width) | Method void QPen::setWidthF(double width) |
void | create | Use of this method is deprecated. Use _create instead | ||
void | destroy | Use of this method is deprecated. Use _destroy instead | ||
[const] | bool | destroyed? | Use of this method is deprecated. Use _destroyed? instead | |
[const] | bool | is_const_object? | Use of this method is deprecated. Use _is_const_object? instead |
!= | Signature: [const] bool != (const QPen p) Description: Method bool QPen::operator!=(const QPen &p) |
== | Signature: [const] bool == (const QPen p) Description: Method bool QPen::operator==(const QPen &p) |
_assign | Signature: void _assign (const QPen other) Description: Assigns another object to self |
_const_cast | Signature: [const] QPen ptr _const_cast Description: Returns a non-const reference to self. Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects. This method has been introduced in version 0.29.6. |
_create | Signature: 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. |
_destroy | Signature: void _destroy Description: Explicitly destroys the object Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. |
_destroyed? | Signature: [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. |
_is_const_object? | Signature: [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. |
_manage | Signature: void _manage Description: Marks the object as managed by the script side. After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required. Usually it's not required to call this method. It has been introduced in version 0.24. |
_unmanage | Signature: void _unmanage Description: Marks the object as no longer owned by the script side. Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur. Usually it's not required to call this method. It has been introduced in version 0.24. |
assign | Signature: QPen assign (const QPen pen) Description: Method QPen &QPen::operator=(const QPen &pen) |
brush | Signature: [const] QBrush brush Description: Method QBrush QPen::brush() Python specific notes: |
brush= | Signature: void brush= (const QBrush brush) Description: Method void QPen::setBrush(const QBrush &brush) Python specific notes: |
capStyle | Signature: [const] Qt_PenCapStyle capStyle Description: Method Qt::PenCapStyle QPen::capStyle() Python specific notes: |
capStyle= | Signature: void capStyle= (const Qt_PenCapStyle pcs) Description: Method void QPen::setCapStyle(Qt::PenCapStyle pcs) Python specific notes: |
color | Signature: [const] QColor color Description: Method QColor QPen::color() Python specific notes: |
color= | Signature: void color= (const QColor color) Description: Method void QPen::setColor(const QColor &color) Python specific notes: |
cosmetic | Signature: [const] bool cosmetic Description: Method bool QPen::isCosmetic() Python specific notes: |
cosmetic= | Signature: void cosmetic= (bool cosmetic) Description: Method void QPen::setCosmetic(bool cosmetic) Python specific notes: |
create | Signature: void create Description: Ensures the C++ object is created Use of this method is deprecated. Use _create instead 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. |
dashOffset | Signature: [const] double dashOffset Description: Method double QPen::dashOffset() Python specific notes: |
dashOffset= | Signature: void dashOffset= (double doffset) Description: Method void QPen::setDashOffset(double doffset) Python specific notes: |
dashPattern | Signature: [const] double[] dashPattern Description: Method QVector<qreal> QPen::dashPattern() Python specific notes: |
dashPattern= | Signature: void dashPattern= (double[] pattern) Description: Method void QPen::setDashPattern(const QVector<qreal> &pattern) Python specific notes: |
destroy | Signature: void destroy Description: Explicitly destroys the object Use of this method is deprecated. Use _destroy instead Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. |
destroyed? | Signature: [const] bool destroyed? Description: Returns a value indicating whether the object was already destroyed Use of this method is deprecated. Use _destroyed? instead 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. |
dup | Signature: [const] new QPen ptr dup Description: Creates a copy of self Python specific notes: |
isCosmetic? | Signature: [const] bool isCosmetic? Description: Method bool QPen::isCosmetic() Python specific notes: |
isDetached? | Signature: bool isDetached? Description: Method bool QPen::isDetached() |
isSolid? | Signature: [const] bool isSolid? Description: Method bool QPen::isSolid() |
is_const_object? | Signature: [const] bool is_const_object? Description: Returns a value indicating whether the reference is a const reference Use of this method is deprecated. Use _is_const_object? instead This method returns true, if self is a const reference. In that case, only const methods may be called on self. |
joinStyle | Signature: [const] Qt_PenJoinStyle joinStyle Description: Method Qt::PenJoinStyle QPen::joinStyle() Python specific notes: |
joinStyle= | Signature: void joinStyle= (const Qt_PenJoinStyle pcs) Description: Method void QPen::setJoinStyle(Qt::PenJoinStyle pcs) Python specific notes: |
miterLimit | Signature: [const] double miterLimit Description: Method double QPen::miterLimit() Python specific notes: |
miterLimit= | Signature: void miterLimit= (double limit) Description: Method void QPen::setMiterLimit(double limit) Python specific notes: |
new | (1) Signature: [static] new QPen new Description: Constructor QPen::QPen() This method creates an object of class QPen. Python specific notes: |
(2) Signature: [static] new QPen new (const Qt_PenStyle arg1) Description: Constructor QPen::QPen(Qt::PenStyle) This method creates an object of class QPen. Python specific notes: | |
(3) Signature: [static] new QPen new (const QColor color) Description: Constructor QPen::QPen(const QColor &color) This method creates an object of class QPen. Python specific notes: | |
(4) Signature: [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. Python specific notes: | |
(5) Signature: [static] new QPen new (const QPen pen) Description: Constructor QPen::QPen(const QPen &pen) This method creates an object of class QPen. Python specific notes: | |
setBrush | Signature: void setBrush (const QBrush brush) Description: Method void QPen::setBrush(const QBrush &brush) Python specific notes: |
setCapStyle | Signature: void setCapStyle (const Qt_PenCapStyle pcs) Description: Method void QPen::setCapStyle(Qt::PenCapStyle pcs) Python specific notes: |
setColor | Signature: void setColor (const QColor color) Description: Method void QPen::setColor(const QColor &color) Python specific notes: |
setCosmetic | Signature: void setCosmetic (bool cosmetic) Description: Method void QPen::setCosmetic(bool cosmetic) Python specific notes: |
setDashOffset | Signature: void setDashOffset (double doffset) Description: Method void QPen::setDashOffset(double doffset) Python specific notes: |
setDashPattern | Signature: void setDashPattern (double[] pattern) Description: Method void QPen::setDashPattern(const QVector<qreal> &pattern) Python specific notes: |
setJoinStyle | Signature: void setJoinStyle (const Qt_PenJoinStyle pcs) Description: Method void QPen::setJoinStyle(Qt::PenJoinStyle pcs) Python specific notes: |
setMiterLimit | Signature: void setMiterLimit (double limit) Description: Method void QPen::setMiterLimit(double limit) Python specific notes: |
setStyle | Signature: void setStyle (const Qt_PenStyle arg1) Description: Method void QPen::setStyle(Qt::PenStyle) Python specific notes: |
setWidth | Signature: void setWidth (int width) Description: Method void QPen::setWidth(int width) Python specific notes: |
setWidthF | Signature: void setWidthF (double width) Description: Method void QPen::setWidthF(double width) Python specific notes: |
style | Signature: [const] Qt_PenStyle style Description: Method Qt::PenStyle QPen::style() Python specific notes: |
style= | Signature: void style= (const Qt_PenStyle arg1) Description: Method void QPen::setStyle(Qt::PenStyle) Python specific notes: |
swap | Signature: void swap (QPen other) Description: Method void QPen::swap(QPen &other) |
width | Signature: [const] int width Description: Method int QPen::width() Python specific notes: |
width= | Signature: void width= (int width) Description: Method void QPen::setWidth(int width) Python specific notes: |
widthF | Signature: [const] double widthF Description: Method double QPen::widthF() Python specific notes: |
widthF= | Signature: void widthF= (double width) Description: Method void QPen::setWidthF(double width) Python specific notes: |