Notation used in Ruby API documentation
Module: QtGui
Description: Binding of QTextLayout
Sub-classes: CursorMode, QFlags_CursorMode, FormatRange
new QTextLayout | new | Constructor QTextLayout::QTextLayout() | |
new QTextLayout | new | (string text) | Constructor QTextLayout::QTextLayout(const QString &text) |
new QTextLayout | new | (string text, const QFont font, QPaintDevice ptr paintdevice = 0) | Constructor QTextLayout::QTextLayout(const QString &text, const QFont &font, QPaintDevice *paintdevice) |
new QTextLayout | new | (const QTextBlock b) | Constructor QTextLayout::QTextLayout(const QTextBlock &b) |
[const] | QTextLayout 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. | ||
[const] | QTextLayout_FormatRange[] | additionalFormats | Method QList<QTextLayout::FormatRange> QTextLayout::additionalFormats() | |
void | additionalFormats= | (QTextLayout_FormatRange[] overrides) | Method void QTextLayout::setAdditionalFormats(const QList<QTextLayout::FormatRange> &overrides) | |
void | beginLayout | Method void QTextLayout::beginLayout() | ||
[const] | QRectF | boundingRect | Method QRectF QTextLayout::boundingRect() | |
[const] | bool | cacheEnabled | Method bool QTextLayout::cacheEnabled() | |
void | cacheEnabled= | (bool enable) | Method void QTextLayout::setCacheEnabled(bool enable) | |
void | clearAdditionalFormats | Method void QTextLayout::clearAdditionalFormats() | ||
void | clearLayout | Method void QTextLayout::clearLayout() | ||
QTextLine | createLine | Method QTextLine QTextLayout::createLine() | ||
[const] | void | draw | (QPainter ptr p, const QPointF pos, QTextLayout_FormatRange[] selections = QVector<QTextLayout::FormatRange>(), const QRectF clip = QRectF()) | Method void QTextLayout::draw(QPainter *p, const QPointF &pos, const QVector<QTextLayout::FormatRange> &selections, const QRectF &clip) |
[const] | void | drawCursor | (QPainter ptr p, const QPointF pos, int cursorPosition) | Method void QTextLayout::drawCursor(QPainter *p, const QPointF &pos, int cursorPosition) |
[const] | void | drawCursor | (QPainter ptr p, const QPointF pos, int cursorPosition, int width) | Method void QTextLayout::drawCursor(QPainter *p, const QPointF &pos, int cursorPosition, int width) |
void | endLayout | Method void QTextLayout::endLayout() | ||
[const] | QFont | font | Method QFont QTextLayout::font() | |
void | font= | (const QFont f) | Method void QTextLayout::setFont(const QFont &f) | |
[const] | bool | isValidCursorPosition? | (int pos) | Method bool QTextLayout::isValidCursorPosition(int pos) |
[const] | QTextLine | lineAt | (int i) | Method QTextLine QTextLayout::lineAt(int i) |
[const] | int | lineCount | Method int QTextLayout::lineCount() | |
[const] | QTextLine | lineForTextPosition | (int pos) | Method QTextLine QTextLayout::lineForTextPosition(int pos) |
[const] | double | maximumWidth | Method double QTextLayout::maximumWidth() | |
[const] | double | minimumWidth | Method double QTextLayout::minimumWidth() | |
[const] | int | nextCursorPosition | (int oldPos, const QTextLayout_CursorMode mode = QTextLayout::SkipCharacters) | Method int QTextLayout::nextCursorPosition(int oldPos, QTextLayout::CursorMode mode) |
[const] | QPointF | position | Method QPointF QTextLayout::position() | |
void | position= | (const QPointF p) | Method void QTextLayout::setPosition(const QPointF &p) | |
[const] | int | preeditAreaPosition | Method int QTextLayout::preeditAreaPosition() | |
[const] | string | preeditAreaText | Method QString QTextLayout::preeditAreaText() | |
[const] | int | previousCursorPosition | (int oldPos, const QTextLayout_CursorMode mode = QTextLayout::SkipCharacters) | Method int QTextLayout::previousCursorPosition(int oldPos, QTextLayout::CursorMode mode) |
void | setAdditionalFormats | (QTextLayout_FormatRange[] overrides) | Method void QTextLayout::setAdditionalFormats(const QList<QTextLayout::FormatRange> &overrides) | |
void | setCacheEnabled | (bool enable) | Method void QTextLayout::setCacheEnabled(bool enable) | |
void | setFlags | (int flags) | Method void QTextLayout::setFlags(int flags) | |
void | setFont | (const QFont f) | Method void QTextLayout::setFont(const QFont &f) | |
void | setPosition | (const QPointF p) | Method void QTextLayout::setPosition(const QPointF &p) | |
void | setPreeditArea | (int position, string text) | Method void QTextLayout::setPreeditArea(int position, const QString &text) | |
void | setText | (string string) | Method void QTextLayout::setText(const QString &string) | |
void | setTextOption | (const QTextOption option) | Method void QTextLayout::setTextOption(const QTextOption &option) | |
[const] | string | text | Method QString QTextLayout::text() | |
void | text= | (string string) | Method void QTextLayout::setText(const QString &string) | |
[const] | QTextOption | textOption | Method QTextOption QTextLayout::textOption() | |
void | textOption= | (const QTextOption option) | Method void QTextLayout::setTextOption(const QTextOption &option) |
[static,const] | QTextLayout_CursorMode | SkipCharacters | Enum constant QTextLayout::SkipCharacters | |
[static,const] | QTextLayout_CursorMode | SkipWords | Enum constant QTextLayout::SkipWords |
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 |
SkipCharacters | Signature: [static,const] QTextLayout_CursorMode SkipCharacters Description: Enum constant QTextLayout::SkipCharacters Python specific notes: |
SkipWords | Signature: [static,const] QTextLayout_CursorMode SkipWords Description: Enum constant QTextLayout::SkipWords Python specific notes: |
_const_cast | Signature: [const] QTextLayout 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. |
additionalFormats | Signature: [const] QTextLayout_FormatRange[] additionalFormats Description: Method QList<QTextLayout::FormatRange> QTextLayout::additionalFormats() Python specific notes: |
additionalFormats= | Signature: void additionalFormats= (QTextLayout_FormatRange[] overrides) Description: Method void QTextLayout::setAdditionalFormats(const QList<QTextLayout::FormatRange> &overrides) Python specific notes: |
beginLayout | Signature: void beginLayout Description: Method void QTextLayout::beginLayout() |
boundingRect | Signature: [const] QRectF boundingRect Description: Method QRectF QTextLayout::boundingRect() |
cacheEnabled | Signature: [const] bool cacheEnabled Description: Method bool QTextLayout::cacheEnabled() Python specific notes: |
cacheEnabled= | Signature: void cacheEnabled= (bool enable) Description: Method void QTextLayout::setCacheEnabled(bool enable) Python specific notes: |
clearAdditionalFormats | Signature: void clearAdditionalFormats Description: Method void QTextLayout::clearAdditionalFormats() |
clearLayout | Signature: void clearLayout Description: Method void QTextLayout::clearLayout() |
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. |
createLine | Signature: QTextLine createLine Description: Method QTextLine QTextLayout::createLine() |
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. |
draw | Signature: [const] void draw (QPainter ptr p, const QPointF pos, QTextLayout_FormatRange[] selections = QVector<QTextLayout::FormatRange>(), const QRectF clip = QRectF()) Description: Method void QTextLayout::draw(QPainter *p, const QPointF &pos, const QVector<QTextLayout::FormatRange> &selections, const QRectF &clip) |
drawCursor | (1) Signature: [const] void drawCursor (QPainter ptr p, const QPointF pos, int cursorPosition) Description: Method void QTextLayout::drawCursor(QPainter *p, const QPointF &pos, int cursorPosition) |
(2) Signature: [const] void drawCursor (QPainter ptr p, const QPointF pos, int cursorPosition, int width) Description: Method void QTextLayout::drawCursor(QPainter *p, const QPointF &pos, int cursorPosition, int width) | |
endLayout | Signature: void endLayout Description: Method void QTextLayout::endLayout() |
font | Signature: [const] QFont font Description: Method QFont QTextLayout::font() Python specific notes: |
font= | Signature: void font= (const QFont f) Description: Method void QTextLayout::setFont(const QFont &f) Python specific notes: |
isValidCursorPosition? | Signature: [const] bool isValidCursorPosition? (int pos) Description: Method bool QTextLayout::isValidCursorPosition(int pos) |
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. |
lineAt | Signature: [const] QTextLine lineAt (int i) Description: Method QTextLine QTextLayout::lineAt(int i) |
lineCount | Signature: [const] int lineCount Description: Method int QTextLayout::lineCount() |
lineForTextPosition | Signature: [const] QTextLine lineForTextPosition (int pos) Description: Method QTextLine QTextLayout::lineForTextPosition(int pos) |
maximumWidth | Signature: [const] double maximumWidth Description: Method double QTextLayout::maximumWidth() |
minimumWidth | Signature: [const] double minimumWidth Description: Method double QTextLayout::minimumWidth() |
new | (1) Signature: [static] new QTextLayout new Description: Constructor QTextLayout::QTextLayout() This method creates an object of class QTextLayout. Python specific notes: |
(2) Signature: [static] new QTextLayout new (string text) Description: Constructor QTextLayout::QTextLayout(const QString &text) This method creates an object of class QTextLayout. Python specific notes: | |
(3) Signature: [static] new QTextLayout new (string text, const QFont font, QPaintDevice ptr paintdevice = 0) Description: Constructor QTextLayout::QTextLayout(const QString &text, const QFont &font, QPaintDevice *paintdevice) This method creates an object of class QTextLayout. Python specific notes: | |
(4) Signature: [static] new QTextLayout new (const QTextBlock b) Description: Constructor QTextLayout::QTextLayout(const QTextBlock &b) This method creates an object of class QTextLayout. Python specific notes: | |
nextCursorPosition | Signature: [const] int nextCursorPosition (int oldPos, const QTextLayout_CursorMode mode = QTextLayout::SkipCharacters) Description: Method int QTextLayout::nextCursorPosition(int oldPos, QTextLayout::CursorMode mode) |
position | Signature: [const] QPointF position Description: Method QPointF QTextLayout::position() Python specific notes: |
position= | Signature: void position= (const QPointF p) Description: Method void QTextLayout::setPosition(const QPointF &p) Python specific notes: |
preeditAreaPosition | Signature: [const] int preeditAreaPosition Description: Method int QTextLayout::preeditAreaPosition() |
preeditAreaText | Signature: [const] string preeditAreaText Description: Method QString QTextLayout::preeditAreaText() |
previousCursorPosition | Signature: [const] int previousCursorPosition (int oldPos, const QTextLayout_CursorMode mode = QTextLayout::SkipCharacters) Description: Method int QTextLayout::previousCursorPosition(int oldPos, QTextLayout::CursorMode mode) |
setAdditionalFormats | Signature: void setAdditionalFormats (QTextLayout_FormatRange[] overrides) Description: Method void QTextLayout::setAdditionalFormats(const QList<QTextLayout::FormatRange> &overrides) Python specific notes: |
setCacheEnabled | Signature: void setCacheEnabled (bool enable) Description: Method void QTextLayout::setCacheEnabled(bool enable) Python specific notes: |
setFlags | Signature: void setFlags (int flags) Description: Method void QTextLayout::setFlags(int flags) |
setFont | Signature: void setFont (const QFont f) Description: Method void QTextLayout::setFont(const QFont &f) Python specific notes: |
setPosition | Signature: void setPosition (const QPointF p) Description: Method void QTextLayout::setPosition(const QPointF &p) Python specific notes: |
setPreeditArea | Signature: void setPreeditArea (int position, string text) Description: Method void QTextLayout::setPreeditArea(int position, const QString &text) |
setText | Signature: void setText (string string) Description: Method void QTextLayout::setText(const QString &string) Python specific notes: |
setTextOption | Signature: void setTextOption (const QTextOption option) Description: Method void QTextLayout::setTextOption(const QTextOption &option) Python specific notes: |
text | Signature: [const] string text Description: Method QString QTextLayout::text() Python specific notes: |
text= | Signature: void text= (string string) Description: Method void QTextLayout::setText(const QString &string) Python specific notes: |
textOption | Signature: [const] QTextOption textOption Description: Method QTextOption QTextLayout::textOption() Python specific notes: |
textOption= | Signature: void textOption= (const QTextOption option) Description: Method void QTextLayout::setTextOption(const QTextOption &option) Python specific notes: |