Notation used in Ruby API documentation
Module: QtGui
Description: Binding of QTextFormat
Sub-classes: PageBreakFlag, QFlags_PageBreakFlag
new QTextFormat | new | Constructor QTextFormat::QTextFormat() | |
new QTextFormat | new | (int type) | Constructor QTextFormat::QTextFormat(int type) |
new QTextFormat | new | (const QTextFormat rhs) | Constructor QTextFormat::QTextFormat(const QTextFormat &rhs) |
[const] | bool | != | (const QTextFormat rhs) | Method bool QTextFormat::operator!=(const QTextFormat &rhs) |
[const] | bool | == | (const QTextFormat rhs) | Method bool QTextFormat::operator==(const QTextFormat &rhs) |
void | _assign | (const QTextFormat other) | Assigns another object to self | |
[const] | QTextFormat 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. | ||
QTextFormat | assign | (const QTextFormat rhs) | Method QTextFormat &QTextFormat::operator=(const QTextFormat &rhs) | |
[const] | QBrush | background | Method QBrush QTextFormat::background() | |
void | background= | (const QBrush brush) | Method void QTextFormat::setBackground(const QBrush &brush) | |
[const] | bool | boolProperty | (int propertyId) | Method bool QTextFormat::boolProperty(int propertyId) |
[const] | QBrush | brushProperty | (int propertyId) | Method QBrush QTextFormat::brushProperty(int propertyId) |
void | clearBackground | Method void QTextFormat::clearBackground() | ||
void | clearForeground | Method void QTextFormat::clearForeground() | ||
void | clearProperty | (int propertyId) | Method void QTextFormat::clearProperty(int propertyId) | |
[const] | QColor | colorProperty | (int propertyId) | Method QColor QTextFormat::colorProperty(int propertyId) |
[const] | double | doubleProperty | (int propertyId) | Method double QTextFormat::doubleProperty(int propertyId) |
[const] | new QTextFormat ptr | dup | Creates a copy of self | |
[const] | QBrush | foreground | Method QBrush QTextFormat::foreground() | |
void | foreground= | (const QBrush brush) | Method void QTextFormat::setForeground(const QBrush &brush) | |
[const] | bool | hasProperty | (int propertyId) | Method bool QTextFormat::hasProperty(int propertyId) |
[const] | int | intProperty | (int propertyId) | Method int QTextFormat::intProperty(int propertyId) |
[const] | bool | isBlockFormat? | Method bool QTextFormat::isBlockFormat() | |
[const] | bool | isCharFormat? | Method bool QTextFormat::isCharFormat() | |
[const] | bool | isFrameFormat? | Method bool QTextFormat::isFrameFormat() | |
[const] | bool | isImageFormat? | Method bool QTextFormat::isImageFormat() | |
[const] | bool | isListFormat? | Method bool QTextFormat::isListFormat() | |
[const] | bool | isTableCellFormat? | Method bool QTextFormat::isTableCellFormat() | |
[const] | bool | isTableFormat? | Method bool QTextFormat::isTableFormat() | |
[const] | bool | isValid? | Method bool QTextFormat::isValid() | |
[const] | Qt_LayoutDirection | layoutDirection | Method Qt::LayoutDirection QTextFormat::layoutDirection() | |
void | layoutDirection= | (const Qt_LayoutDirection direction) | Method void QTextFormat::setLayoutDirection(Qt::LayoutDirection direction) | |
[const] | QTextLength | lengthProperty | (int propertyId) | Method QTextLength QTextFormat::lengthProperty(int propertyId) |
[const] | QTextLength[] | lengthVectorProperty | (int propertyId) | Method QVector<QTextLength> QTextFormat::lengthVectorProperty(int propertyId) |
void | merge | (const QTextFormat other) | Method void QTextFormat::merge(const QTextFormat &other) | |
[const] | int | objectIndex | Method int QTextFormat::objectIndex() | |
void | objectIndex= | (int object) | Method void QTextFormat::setObjectIndex(int object) | |
[const] | int | objectType | Method int QTextFormat::objectType() | |
void | objectType= | (int type) | Method void QTextFormat::setObjectType(int type) | |
[const] | QPen | penProperty | (int propertyId) | Method QPen QTextFormat::penProperty(int propertyId) |
[const] | map<int,variant> | properties | Method QMap<int, QVariant> QTextFormat::properties() | |
[const] | variant | property | (int propertyId) | Method QVariant QTextFormat::property(int propertyId) |
[const] | int | propertyCount | Method int QTextFormat::propertyCount() | |
void | setBackground | (const QBrush brush) | Method void QTextFormat::setBackground(const QBrush &brush) | |
void | setForeground | (const QBrush brush) | Method void QTextFormat::setForeground(const QBrush &brush) | |
void | setLayoutDirection | (const Qt_LayoutDirection direction) | Method void QTextFormat::setLayoutDirection(Qt::LayoutDirection direction) | |
void | setObjectIndex | (int object) | Method void QTextFormat::setObjectIndex(int object) | |
void | setObjectType | (int type) | Method void QTextFormat::setObjectType(int type) | |
void | setProperty | (int propertyId, variant value) | Method void QTextFormat::setProperty(int propertyId, const QVariant &value) | |
void | setProperty | (int propertyId, QTextLength[] lengths) | Method void QTextFormat::setProperty(int propertyId, const QVector<QTextLength> &lengths) | |
[const] | string | stringProperty | (int propertyId) | Method QString QTextFormat::stringProperty(int propertyId) |
[const] | QTextBlockFormat | toBlockFormat | Method QTextBlockFormat QTextFormat::toBlockFormat() | |
[const] | QTextCharFormat | toCharFormat | Method QTextCharFormat QTextFormat::toCharFormat() | |
[const] | QTextFrameFormat | toFrameFormat | Method QTextFrameFormat QTextFormat::toFrameFormat() | |
[const] | QTextImageFormat | toImageFormat | Method QTextImageFormat QTextFormat::toImageFormat() | |
[const] | QTextListFormat | toListFormat | Method QTextListFormat QTextFormat::toListFormat() | |
[const] | QTextTableCellFormat | toTableCellFormat | Method QTextTableCellFormat QTextFormat::toTableCellFormat() | |
[const] | QTextTableFormat | toTableFormat | Method QTextTableFormat QTextFormat::toTableFormat() | |
[const] | int | type | Method int QTextFormat::type() |
[static,const] | QTextFormat_PageBreakFlag | PageBreak_AlwaysAfter | Enum constant QTextFormat::PageBreak_AlwaysAfter | |
[static,const] | QTextFormat_PageBreakFlag | PageBreak_AlwaysBefore | Enum constant QTextFormat::PageBreak_AlwaysBefore | |
[static,const] | QTextFormat_PageBreakFlag | PageBreak_Auto | Enum constant QTextFormat::PageBreak_Auto |
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 QTextFormat rhs) Description: Method bool QTextFormat::operator!=(const QTextFormat &rhs) |
== | Signature: [const] bool == (const QTextFormat rhs) Description: Method bool QTextFormat::operator==(const QTextFormat &rhs) |
PageBreak_AlwaysAfter | Signature: [static,const] QTextFormat_PageBreakFlag PageBreak_AlwaysAfter Description: Enum constant QTextFormat::PageBreak_AlwaysAfter Python specific notes: |
PageBreak_AlwaysBefore | Signature: [static,const] QTextFormat_PageBreakFlag PageBreak_AlwaysBefore Description: Enum constant QTextFormat::PageBreak_AlwaysBefore Python specific notes: |
PageBreak_Auto | Signature: [static,const] QTextFormat_PageBreakFlag PageBreak_Auto Description: Enum constant QTextFormat::PageBreak_Auto Python specific notes: |
_assign | Signature: void _assign (const QTextFormat other) Description: Assigns another object to self |
_const_cast | Signature: [const] QTextFormat 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: QTextFormat assign (const QTextFormat rhs) Description: Method QTextFormat &QTextFormat::operator=(const QTextFormat &rhs) |
background | Signature: [const] QBrush background Description: Method QBrush QTextFormat::background() Python specific notes: |
background= | Signature: void background= (const QBrush brush) Description: Method void QTextFormat::setBackground(const QBrush &brush) Python specific notes: |
boolProperty | Signature: [const] bool boolProperty (int propertyId) Description: Method bool QTextFormat::boolProperty(int propertyId) |
brushProperty | Signature: [const] QBrush brushProperty (int propertyId) Description: Method QBrush QTextFormat::brushProperty(int propertyId) |
clearBackground | Signature: void clearBackground Description: Method void QTextFormat::clearBackground() |
clearForeground | Signature: void clearForeground Description: Method void QTextFormat::clearForeground() |
clearProperty | Signature: void clearProperty (int propertyId) Description: Method void QTextFormat::clearProperty(int propertyId) |
colorProperty | Signature: [const] QColor colorProperty (int propertyId) Description: Method QColor QTextFormat::colorProperty(int propertyId) |
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. |
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. |
doubleProperty | Signature: [const] double doubleProperty (int propertyId) Description: Method double QTextFormat::doubleProperty(int propertyId) |
dup | Signature: [const] new QTextFormat ptr dup Description: Creates a copy of self Python specific notes: |
foreground | Signature: [const] QBrush foreground Description: Method QBrush QTextFormat::foreground() Python specific notes: |
foreground= | Signature: void foreground= (const QBrush brush) Description: Method void QTextFormat::setForeground(const QBrush &brush) Python specific notes: |
hasProperty | Signature: [const] bool hasProperty (int propertyId) Description: Method bool QTextFormat::hasProperty(int propertyId) |
intProperty | Signature: [const] int intProperty (int propertyId) Description: Method int QTextFormat::intProperty(int propertyId) |
isBlockFormat? | Signature: [const] bool isBlockFormat? Description: Method bool QTextFormat::isBlockFormat() |
isCharFormat? | Signature: [const] bool isCharFormat? Description: Method bool QTextFormat::isCharFormat() |
isFrameFormat? | Signature: [const] bool isFrameFormat? Description: Method bool QTextFormat::isFrameFormat() |
isImageFormat? | Signature: [const] bool isImageFormat? Description: Method bool QTextFormat::isImageFormat() |
isListFormat? | Signature: [const] bool isListFormat? Description: Method bool QTextFormat::isListFormat() |
isTableCellFormat? | Signature: [const] bool isTableCellFormat? Description: Method bool QTextFormat::isTableCellFormat() |
isTableFormat? | Signature: [const] bool isTableFormat? Description: Method bool QTextFormat::isTableFormat() |
isValid? | Signature: [const] bool isValid? Description: Method bool QTextFormat::isValid() |
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. |
layoutDirection | Signature: [const] Qt_LayoutDirection layoutDirection Description: Method Qt::LayoutDirection QTextFormat::layoutDirection() Python specific notes: |
layoutDirection= | Signature: void layoutDirection= (const Qt_LayoutDirection direction) Description: Method void QTextFormat::setLayoutDirection(Qt::LayoutDirection direction) Python specific notes: |
lengthProperty | Signature: [const] QTextLength lengthProperty (int propertyId) Description: Method QTextLength QTextFormat::lengthProperty(int propertyId) |
lengthVectorProperty | Signature: [const] QTextLength[] lengthVectorProperty (int propertyId) Description: Method QVector<QTextLength> QTextFormat::lengthVectorProperty(int propertyId) |
merge | Signature: void merge (const QTextFormat other) Description: Method void QTextFormat::merge(const QTextFormat &other) |
new | (1) Signature: [static] new QTextFormat new Description: Constructor QTextFormat::QTextFormat() This method creates an object of class QTextFormat. Python specific notes: |
(2) Signature: [static] new QTextFormat new (int type) Description: Constructor QTextFormat::QTextFormat(int type) This method creates an object of class QTextFormat. Python specific notes: | |
(3) Signature: [static] new QTextFormat new (const QTextFormat rhs) Description: Constructor QTextFormat::QTextFormat(const QTextFormat &rhs) This method creates an object of class QTextFormat. Python specific notes: | |
objectIndex | Signature: [const] int objectIndex Description: Method int QTextFormat::objectIndex() Python specific notes: |
objectIndex= | Signature: void objectIndex= (int object) Description: Method void QTextFormat::setObjectIndex(int object) Python specific notes: |
objectType | Signature: [const] int objectType Description: Method int QTextFormat::objectType() Python specific notes: |
objectType= | Signature: void objectType= (int type) Description: Method void QTextFormat::setObjectType(int type) Python specific notes: |
penProperty | Signature: [const] QPen penProperty (int propertyId) Description: Method QPen QTextFormat::penProperty(int propertyId) |
properties | Signature: [const] map<int,variant> properties Description: Method QMap<int, QVariant> QTextFormat::properties() |
property | Signature: [const] variant property (int propertyId) Description: Method QVariant QTextFormat::property(int propertyId) |
propertyCount | Signature: [const] int propertyCount Description: Method int QTextFormat::propertyCount() |
setBackground | Signature: void setBackground (const QBrush brush) Description: Method void QTextFormat::setBackground(const QBrush &brush) Python specific notes: |
setForeground | Signature: void setForeground (const QBrush brush) Description: Method void QTextFormat::setForeground(const QBrush &brush) Python specific notes: |
setLayoutDirection | Signature: void setLayoutDirection (const Qt_LayoutDirection direction) Description: Method void QTextFormat::setLayoutDirection(Qt::LayoutDirection direction) Python specific notes: |
setObjectIndex | Signature: void setObjectIndex (int object) Description: Method void QTextFormat::setObjectIndex(int object) Python specific notes: |
setObjectType | Signature: void setObjectType (int type) Description: Method void QTextFormat::setObjectType(int type) Python specific notes: |
setProperty | (1) Signature: void setProperty (int propertyId, variant value) Description: Method void QTextFormat::setProperty(int propertyId, const QVariant &value) |
(2) Signature: void setProperty (int propertyId, QTextLength[] lengths) Description: Method void QTextFormat::setProperty(int propertyId, const QVector<QTextLength> &lengths) | |
stringProperty | Signature: [const] string stringProperty (int propertyId) Description: Method QString QTextFormat::stringProperty(int propertyId) |
toBlockFormat | Signature: [const] QTextBlockFormat toBlockFormat Description: Method QTextBlockFormat QTextFormat::toBlockFormat() |
toCharFormat | Signature: [const] QTextCharFormat toCharFormat Description: Method QTextCharFormat QTextFormat::toCharFormat() |
toFrameFormat | Signature: [const] QTextFrameFormat toFrameFormat Description: Method QTextFrameFormat QTextFormat::toFrameFormat() |
toImageFormat | Signature: [const] QTextImageFormat toImageFormat Description: Method QTextImageFormat QTextFormat::toImageFormat() |
toListFormat | Signature: [const] QTextListFormat toListFormat Description: Method QTextListFormat QTextFormat::toListFormat() |
toTableCellFormat | Signature: [const] QTextTableCellFormat toTableCellFormat Description: Method QTextTableCellFormat QTextFormat::toTableCellFormat() |
toTableFormat | Signature: [const] QTextTableFormat toTableFormat Description: Method QTextTableFormat QTextFormat::toTableFormat() |
type | Signature: [const] int type Description: Method int QTextFormat::type() |