| 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] | double | ascent | | Method double QTextLine::ascent() |
| void | assign | (const QTextLine other) | Assigns another object to self |
[const] | double | cursorToX | (int ptr cursorPos, const QTextLine_Edge edge = QTextLine::Leading) | Method double QTextLine::cursorToX(int *cursorPos, QTextLine::Edge edge) |
[const] | double | cursorToX | (int cursorPos, const QTextLine_Edge edge = QTextLine::Leading) | Method double QTextLine::cursorToX(int cursorPos, QTextLine::Edge edge) |
[const] | double | descent | | Method double QTextLine::descent() |
[const] | void | draw | (QPainter ptr p, const QPointF point, const QTextLayout_FormatRange ptr selection = 0) | Method void QTextLine::draw(QPainter *p, const QPointF &point, const QTextLayout::FormatRange *selection) |
[const] | new QTextLine ptr | dup | | Creates a copy of self |
[const] | double | height | | Method double QTextLine::height() |
[const] | bool | isValid? | | Method bool QTextLine::isValid() |
[const] | double | leading | | Method double QTextLine::leading() |
[const] | bool | leadingIncluded | | Method bool QTextLine::leadingIncluded() |
| void | leadingIncluded= | (bool included) | Method void QTextLine::setLeadingIncluded(bool included) |
[const] | int | lineNumber | | Method int QTextLine::lineNumber() |
[const] | QRectF | naturalTextRect | | Method QRectF QTextLine::naturalTextRect() |
[const] | double | naturalTextWidth | | Method double QTextLine::naturalTextWidth() |
[const] | QPointF | position | | Method QPointF QTextLine::position() |
| void | position= | (const QPointF pos) | Method void QTextLine::setPosition(const QPointF &pos) |
[const] | QRectF | rect | | Method QRectF QTextLine::rect() |
| void | setLeadingIncluded | (bool included) | Method void QTextLine::setLeadingIncluded(bool included) |
| void | setLineWidth | (double width) | Method void QTextLine::setLineWidth(double width) |
| void | setNumColumns | (int columns) | Method void QTextLine::setNumColumns(int columns) |
| void | setNumColumns | (int columns, double alignmentWidth) | Method void QTextLine::setNumColumns(int columns, double alignmentWidth) |
| void | setPosition | (const QPointF pos) | Method void QTextLine::setPosition(const QPointF &pos) |
[const] | int | textLength | | Method int QTextLine::textLength() |
[const] | int | textStart | | Method int QTextLine::textStart() |
[const] | double | width | | Method double QTextLine::width() |
[const] | double | x | | Method double QTextLine::x() |
[const] | int | xToCursor | (double x, const QTextLine_CursorPosition arg2 = QTextLine::CursorBetweenCharacters) | Method int QTextLine::xToCursor(double x, QTextLine::CursorPosition) |
[const] | double | y | | Method double QTextLine::y() |
CursorBetweenCharacters | Signature: [static,const] QTextLine_CursorPosition CursorBetweenCharacters Description: Enum constant QTextLine::CursorBetweenCharacters |
CursorOnCharacter | Signature: [static,const] QTextLine_CursorPosition CursorOnCharacter Description: Enum constant QTextLine::CursorOnCharacter |
Leading | Signature: [static,const] QTextLine_Edge Leading Description: Enum constant QTextLine::Leading |
Trailing | Signature: [static,const] QTextLine_Edge Trailing Description: Enum constant QTextLine::Trailing |
_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. |
ascent | Signature: [const] double ascent Description: Method double QTextLine::ascent() |
assign | Signature: void assign (const QTextLine other) Description: Assigns another object to self |
create | Signature: void create Description: Ensures the C++ object is created Use of this method is deprecated. Use _create instead |
cursorToX | Signature: [const] double cursorToX (int ptr cursorPos,const QTextLine_Edge edge = QTextLine::Leading) Description: Method double QTextLine::cursorToX(int *cursorPos, QTextLine::Edge edge) |
Signature: [const] double cursorToX (int cursorPos,const QTextLine_Edge edge = QTextLine::Leading) Description: Method double QTextLine::cursorToX(int cursorPos, QTextLine::Edge edge) |
descent | Signature: [const] double descent Description: Method double QTextLine::descent() |
destroy | Signature: void destroy Description: Explicitly destroys the object Use of this method is deprecated. Use _destroy instead |
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 |
draw | Signature: [const] void draw (QPainter ptr p,const QPointF point,const QTextLayout_FormatRange ptr selection = 0) Description: Method void QTextLine::draw(QPainter *p, const QPointF &point, const QTextLayout::FormatRange *selection) |
dup | Signature: [const] new QTextLine ptr dup Description: Creates a copy of self |
height | Signature: [const] double height Description: Method double QTextLine::height() |
isValid? | Signature: [const] bool isValid? Description: Method bool QTextLine::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 |
leading | Signature: [const] double leading Description: Method double QTextLine::leading() |
leadingIncluded | Signature: [const] bool leadingIncluded Description: Method bool QTextLine::leadingIncluded() Python specific notes: The object exposes a readable attribute 'leadingIncluded'. This is the getter.
|
leadingIncluded= | Signature: void leadingIncluded= (bool included) Description: Method void QTextLine::setLeadingIncluded(bool included) Python specific notes: The object exposes a writable attribute 'leadingIncluded'. This is the setter.
|
lineNumber | Signature: [const] int lineNumber Description: Method int QTextLine::lineNumber() |
naturalTextRect | Signature: [const] QRectF naturalTextRect Description: Method QRectF QTextLine::naturalTextRect() |
naturalTextWidth | Signature: [const] double naturalTextWidth Description: Method double QTextLine::naturalTextWidth() |
new | Signature: [static] new QTextLine new Description: Constructor QTextLine::QTextLine()
This method creates an object of class QTextLine. Python specific notes: This method is the default initializer of the object
|
position | Signature: [const] QPointF position Description: Method QPointF QTextLine::position() Python specific notes: The object exposes a readable attribute 'position'. This is the getter.
|
position= | Signature: void position= (const QPointF pos) Description: Method void QTextLine::setPosition(const QPointF &pos) Python specific notes: The object exposes a writable attribute 'position'. This is the setter.
|
rect | Signature: [const] QRectF rect Description: Method QRectF QTextLine::rect() |
setLeadingIncluded | Signature: void setLeadingIncluded (bool included) Description: Method void QTextLine::setLeadingIncluded(bool included) Python specific notes: The object exposes a writable attribute 'leadingIncluded'. This is the setter.
|
setLineWidth | Signature: void setLineWidth (double width) Description: Method void QTextLine::setLineWidth(double width) |
setNumColumns | Signature: void setNumColumns (int columns) Description: Method void QTextLine::setNumColumns(int columns) |
Signature: void setNumColumns (int columns,double alignmentWidth) Description: Method void QTextLine::setNumColumns(int columns, double alignmentWidth) |
setPosition | Signature: void setPosition (const QPointF pos) Description: Method void QTextLine::setPosition(const QPointF &pos) Python specific notes: The object exposes a writable attribute 'position'. This is the setter.
|
textLength | Signature: [const] int textLength Description: Method int QTextLine::textLength() |
textStart | Signature: [const] int textStart Description: Method int QTextLine::textStart() |
width | Signature: [const] double width Description: Method double QTextLine::width() |
x | Signature: [const] double x Description: Method double QTextLine::x() |
xToCursor | Signature: [const] int xToCursor (double x,const QTextLine_CursorPosition arg2 = QTextLine::CursorBetweenCharacters) Description: Method int QTextLine::xToCursor(double x, QTextLine::CursorPosition) |
y | Signature: [const] double y Description: Method double QTextLine::y() |