|
XML Parser Error: tag mismatch, in line 56 of /code/class_QTextLayout.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE language SYSTEM "klayout_doc.dtd"> <doc><title>API reference - Class QTextLayout</title> <keyword name="QTextLayout"/> <p><link href="/about/rba_notation.xml"/></p> <p><b>Description</b>: Binding of QTextLayout</p> <p><b>Sub-classes</b>: <a href="/code/class_QTextLayout::CursorMode.xml">CursorMode</a>, <a href="/code/class_QTextLayout::QFlags_CursorMode.xml">QFlags_CursorMode</a>, <a href="/code/class_QTextLayout::FormatRange.xml">FormatRange</a></p> <h2-index/> <p> </p> <h2>Public constructors</h2> <table> <tr class="row0"> <td>new QTextLayout</td><td><b><a href="#method33">new</a></b></td><td></td><td>Constructor QTextLayout::QTextLayout()</td></tr> <tr class="row1"> <td>new QTextLayout</td><td><b><a href="#method34">new</a></b></td><td>(string text)</td><td>Constructor QTextLayout::QTextLayout(const QString &text)</td></tr> <tr class="row0"> <td>new QTextLayout</td><td><b><a href="#method35">new</a></b></td><td>(string text,<br/> const QFont font,<br/> QPaintDevice ptr paintdevice = 0)</td><td>Constructor QTextLayout::QTextLayout(const QString &text, const QFont &font, QPaintDevice *paintdevice)</td></tr> <tr class="row1"> <td>new QTextLayout</td><td><b><a href="#method36">new</a></b></td><td>(const QTextBlock b)</td><td>Constructor QTextLayout::QTextLayout(const QTextBlock &b)</td></tr> </table> <h2>Public methods</h2> <table> <tr class="row0"> <td></td><td>void</td><td><b><a href="#method2">_create</a></b></td><td></td><td>Ensures the C++ object is created</td></tr> <tr class="row1"> <td></td><td>void</td><td><b><a href="#method3">_destroy</a></b></td><td></td><td>Explicitly destroys the object</td></tr> <tr class="row0"> <td><i>[const]</i></td><td>bool</td><td><b><a href="#method4">_destroyed?</a></b></td><td></td><td>Returns a value indicating whether the object was already destroyed</td></tr> <tr class="row1"> <td><i>[const]</i></td><td>bool</td><td><b><a href="#method5">_is_const_object?</a></b></td><td></td><td>Returns a value indicating whether the reference is a const reference</td></tr> <tr class="row0"> <td></td><td>void</td><td><b><a href="#method6">_manage</a></b></td><td></td><td>Marks the object as managed by the script side.</td></tr> <tr class="row1"> <td></td><td>void</td><td><b><a href="#method7">_unmanage</a></b></td><td></td><td>Marks the object as no longer owned by the script side.</td></tr> <tr class="row0"> <td><i>[const]</i></td><td>QTextLayout_FormatRange[]</td><td><b><a href="#method8">additionalFormats</a></b></td><td></td><td>Method QList<QTextLayout::FormatRange> QTextLayout::additionalFormats()</td></tr> <tr class="row1"> <td></td><td>void</td><td><b><a href="#method9">additionalFormats=</a></b></td><td>(QTextLayout_FormatRange[] overrides)</td><td>Method void QTextLayout::setAdditionalFormats(const QList<QTextLayout::FormatRange> &overrides)</td></tr> <tr class="row0"> <td></td><td>void</td><td><b><a href="#method10">beginLayout</a></b></td><td></td><td>Method void QTextLayout::beginLayout()</td></tr> <tr class="row1"> <td><i>[const]</i></td><td>QRectF</td><td><b><a href="#method11">boundingRect</a></b></td><td></td><td>Method QRectF QTextLayout::boundingRect()</td></tr> <tr class="row0"> <td><i>[const]</i></td><td>bool</td><td><b><a href="#method12">cacheEnabled</a></b></td><td></td><td>Method bool QTextLayout::cacheEnabled()</td></tr> <tr class="row1"> <td></td><td>void</td><td><b><a href="#method13">cacheEnabled=</a></b></td><td>(bool enable)</td><td>Method void QTextLayout::setCacheEnabled(bool enable)</td></tr> <tr class="row0"> <td></td><td>void</td><td><b><a href="#method14">clearAdditionalFormats</a></b></td><td></td><td>Method void QTextLayout::clearAdditionalFormats()</td></tr> <tr class="row1"> <td></td><td>void</td><td><b><a href="#method15">clearLayout</a></b></td><td></td><td>Method void QTextLayout::clearLayout()</td></tr> <tr class="row0"> <td></td><td>QTextLine</td><td><b><a href="#method17">createLine</a></b></td><td></td><td>Method QTextLine QTextLayout::createLine()</td></tr> <tr class="row1"> <td><i>[const]</i></td><td>void</td><td><b><a href="#method20">draw</a></b></td><td>(QPainter ptr p,<br/> const QPointF pos,<br/> QTextLayout_FormatRange[] selections = QVector<QTextLayout::FormatRange>(),<br/> const QRectF clip = QRectF())</td><td>Method void QTextLayout::draw(QPainter *p, const QPointF &pos, const QVector<QTextLayout::FormatRange> &selections, const QRectF &clip)</td></tr> <tr class="row0"> <td><i>[const]</i></td><td>void</td><td><b><a href="#method21">drawCursor</a></b></td><td>(QPainter ptr p,<br/> const QPointF pos,<br/> int cursorPosition)</td><td>Method void QTextLayout::drawCursor(QPainter *p, const QPointF &pos, int cursorPosition)</td></tr> <tr class="row1"> <td><i>[const]</i></td><td>void</td><td><b><a href="#method22">drawCursor</a></b></td><td>(QPainter ptr p,<br/> const QPointF pos,<br/> int cursorPosition,<br/> int width)</td><td>Method void QTextLayout::drawCursor(QPainter *p, const QPointF &pos, int cursorPosition, int width)</td></tr> <tr class="row0"> <td></td><td>void</td><td><b><a href="#method23">endLayout</a></b></td><td></td><td>Method void QTextLayout::endLayout()</td></tr> <tr class="row1"> <td><i>[const]</i></td><td>QFont</td><td><b><a href="#method24">font</a></b></td><td></td><td>Method QFont QTextLayout::font()</td></tr> <tr class="row0"> <td></td><td>void</td><td><b><a href="#method25">font=</a></b></td><td>(const QFont f)</td><td>Method void QTextLayout::setFont(const QFont &f)</td></tr> <tr class="row1"> <td><i>[const]</i></td><td>bool</td><td><b><a href="#method26">isValidCursorPosition?</a></b></td><td>(int pos)</td><td>Method bool QTextLayout::isValidCursorPosition(int pos)</td></tr> <tr class="row0"> <td><i>[const]</i></td><td>QTextLine</td><td><b><a href="#method28">lineAt</a></b></td><td>(int i)</td><td>Method QTextLine QTextLayout::lineAt(int i)</td></tr> <tr class="row1"> <td><i>[const]</i></td><td>int</td><td><b><a href="#method29">lineCount</a></b></td><td></td><td>Method int QTextLayout::lineCount()</td></tr> <tr class="row0"> <td><i>[const]</i></td><td>QTextLine</td><td><b><a href="#method30">lineForTextPosition</a></b></td><td>(int pos)</td><td>Method QTextLine QTextLayout::lineForTextPosition(int pos)</td></tr> <tr class="row1"> <td><i>[const]</i></td><td>double</td><td><b><a href="#method31">maximumWidth</a></b></td><td></td><td>Method double QTextLayout::maximumWidth()</td></tr> <tr class="row0"> <td><i>[const]</i></td><td>double</td><td><b><a href="#method32">minimumWidth</a></b></td><td></td><td>Method double QTextLayout::minimumWidth()</td></tr> <tr class="row1"> <td><i>[const]</i></td><td>int</td><td><b><a href="#method37">nextCursorPosition</a></b></td><td>(int oldPos,<br/> const QTextLayout_CursorMode mode = QTextLayout::SkipCharacters)</td><td>Method int QTextLayout::nextCursorPosition(int oldPos, QTextLayout::CursorMode mode)</td></tr> <tr class="row0"> <td><i>[const]</i></td><td>QPointF</td><td><b><a href="#method38">position</a></b></td><td></td><td>Method QPointF QTextLayout::position()</td></tr> <tr class="row1"> <td></td><td>void</td><td><b><a href="#method39">position=</a></b></td><td>(const QPointF p)</td><td>Method void QTextLayout::setPosition(const QPointF &p)</td></tr> <tr class="row0"> <td><i>[const]</i></td><td>int</td><td><b><a href="#method40">preeditAreaPosition</a></b></td><td></td><td>Method int QTextLayout::preeditAreaPosition()</td></tr> <tr class="row1"> <td><i>[const]</i></td><td>string</td><td><b><a href="#method41">preeditAreaText</a></b></td><td></td><td>Method QString QTextLayout::preeditAreaText()</td></tr> <tr class="row0"> <td><i>[const]</i></td><td>int</td><td><b><a href="#method42">previousCursorPosition</a></b></td><td>(int oldPos,<br/> const QTextLayout_CursorMode mode = QTextLayout::SkipCharacters)</td><td>Method int QTextLayout::previousCursorPosition(int oldPos, QTextLayout::CursorMode mode)</td></tr> <tr class="row1"> <td></td><td>void</td><td><b><a href="#method43">setAdditionalFormats</a></b></td><td>(QTextLayout_FormatRange[] overrides)</td><td>Method void QTextLayout::setAdditionalFormats(const QList<QTextLayout::FormatRange> &overrides)</td></tr> <tr class="row0"> <td></td><td>void</td><td><b><a href="#method44">setCacheEnabled</a></b></td><td>(bool enable)</td><td>Method void QTextLayout::setCacheEnabled(bool enable)</td></tr> <tr class="row1"> <td></td><td>void</td><td><b><a href="#method45">setFlags</a></b></td><td>(int flags)</td><td>Method void QTextLayout::setFlags(int flags)</td></tr> <tr class="row0"> <td></td><td>void</td><td><b><a href="#method46">setFont</a></b></td><td>(const QFont f)</td><td>Method void QTextLayout::setFont(const QFont &f)</td></tr> <tr class="row1"> <td></td><td>void</td><td><b><a href="#method47">setPosition</a></b></td><td>(const QPointF p)</td><td>Method void QTextLayout::setPosition(const QPointF &p)</td></tr> <tr class="row0"> <td></td><td>void</td><td><b><a href="#method48">setPreeditArea</a></b></td><td>(int position,<br/> string text)</td><td>Method void QTextLayout::setPreeditArea(int position, const QString &text)</td></tr> <tr class="row1"> <td></td><td>void</td><td><b><a href="#method49">setText</a></b></td><td>(string string)</td><td>Method void QTextLayout::setText(const QString &string)</td></tr> <tr class="row0"> <td></td><td>void</td><td><b><a href="#method50">setTextOption</a></b></td><td>(const QTextOption option)</td><td>Method void QTextLayout::setTextOption(const QTextOption &option)</td></tr> <tr class="row1"> <td><i>[const]</i></td><td>string</td><td><b><a href="#method51">text</a></b></td><td></td><td>Method QString QTextLayout::text()</td></tr> <tr class="row0"> <td></td><td>void</td><td><b><a href="#method52">text=</a></b></td><td>(string string)</td><td>Method void QTextLayout::setText(const QString &string)</td></tr> <tr class="row1"> <td><i>[const]</i></td><td>QTextOption</td><td><b><a href="#method53">textOption</a></b></td><td></td><td>Method QTextOption QTextLayout::textOption()</td></tr> <tr class="row0"> <td></td><td>void</td><td><b><a href="#method54">textOption=</a></b></td><td>(const QTextOption option)</td><td>Method void QTextLayout::setTextOption(const QTextOption &option)</td></tr> </table> <h2>Public static methods and constants</h2> <table> <tr class="row0"> <td><i>[static,const]</i></td><td>QTextLayout_CursorMode</td><td><b><a href="#method0">SkipCharacters</a></b></td><td></td><td>Enum constant QTextLayout::SkipCharacters</td></tr> <tr class="row1"> <td><i>[static,const]</i></td><td>QTextLayout_CursorMode</td><td><b><a href="#method1">SkipWords</a></b></td><td></td><td>Enum constant QTextLayout::SkipWords</td></tr> </table> <h2>Deprecated methods (protected, public, static, non-static and constructors)</h2> <table> <tr class="row0"> <td></td><td>void</td><td><b><a href="#method16">create</a></b></td><td></td><td>Use of this method is deprecated. Use _create instead</td></tr> <tr class="row1"> <td></td><td>void</td><td><b><a href="#method18">destroy</a></b></td><td></td><td>Use of this method is deprecated. Use _destroy instead</td></tr> <tr class="row0"> <td><i>[const]</i></td><td>bool</td><td><b><a href="#method19">destroyed?</a></b></td><td></td><td>Use of this method is deprecated. Use _destroyed? instead</td></tr> <tr class="row1"> <td><i>[const]</i></td><td>bool</td><td><b><a href="#method27">is_const_object?</a></b></td><td></td><td>Use of this method is deprecated. Use _is_const_object? instead</td></tr> </table> <a name="detailed"/><h2>Detailed description</h2> <table><tr><td rowspan="1"><h3>SkipCharacters</h3> </td><td style="padding-bottom: 16px"><a name="method0"/><a name="m_SkipCharacters"/><keyword title="API reference - Class QTextLayout, Method SkipCharacters" name="QTextLayout#SkipCharacters"/> <p><b>Signature</b>: <i>[static,const] </i><a href="/code/class_QTextLayout_CursorMode.xml">QTextLayout_CursorMode</a> <b> SkipCharacters </b> </p> <p><b>Description</b>: Enum constant QTextLayout::SkipCharacters</p> </td></tr><tr><td rowspan="1"><h3>SkipWords</h3> </td><td style="padding-bottom: 16px"><a name="method1"/><a name="m_SkipWords"/><keyword title="API reference - Class QTextLayout, Method SkipWords" name="QTextLayout#SkipWords"/> <p><b>Signature</b>: <i>[static,const] </i><a href="/code/class_QTextLayout_CursorMode.xml">QTextLayout_CursorMode</a> <b> SkipWords </b> </p> <p><b>Description</b>: Enum constant QTextLayout::SkipWords</p> </td></tr><tr><td rowspan="1"><h3>_create</h3> </td><td style="padding-bottom: 16px"><a name="method2"/><a name="m__create"/><keyword title="API reference - Class QTextLayout, Method _create" name="QTextLayout#_create"/> <p><b>Signature</b>: void <b> _create </b> </p> <p><b>Description</b>: Ensures the C++ object is created</p> <p><p> 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.</p></p> </td></tr><tr><td rowspan="1"><h3>_destroy</h3> </td><td style="padding-bottom: 16px"><a name="method3"/><a name="m__destroy"/><keyword title="API reference - Class QTextLayout, Method _destroy" name="QTextLayout#_destroy"/> <p><b>Signature</b>: void <b> _destroy </b> </p> <p><b>Description</b>: Explicitly destroys the object</p> <p><p> 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.</p></p> </td></tr><tr><td rowspan="1"><h3>_destroyed?</h3> </td><td style="padding-bottom: 16px"><a name="method4"/><a name="m__destroyed?"/><keyword title="API reference - Class QTextLayout, Method _destroyed?" name="QTextLayout#_destroyed?"/> <p><b>Signature</b>: <i>[const] </i>bool <b> _destroyed? </b> </p> <p><b>Description</b>: Returns a value indicating whether the object was already destroyed</p> <p><p> 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.</p></p> </td></tr><tr><td rowspan="1"><h3>_is_const_object?</h3> </td><td style="padding-bottom: 16px"><a name="method5"/><a name="m__is_const_object?"/><keyword title="API reference - Class QTextLayout, Method _is_const_object?" name="QTextLayout#_is_const_object?"/> <p><b>Signature</b>: <i>[const] </i>bool <b> _is_const_object? </b> </p> <p><b>Description</b>: Returns a value indicating whether the reference is a const reference</p> <p><p> This method returns true, if self is a const reference. In that case, only const methods may be called on self.</p></p> </td></tr><tr><td rowspan="1"><h3>_manage</h3> </td><td style="padding-bottom: 16px"><a name="method6"/><a name="m__manage"/><keyword title="API reference - Class QTextLayout, Method _manage" name="QTextLayout#_manage"/> <p><b>Signature</b>: void <b> _manage </b> </p> <p><b>Description</b>: Marks the object as managed by the script side.</p> <p><p> 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.</p><p>Usually it's not required to call this method. It has been introduced in version 0.24.</p></p> </td></tr><tr><td rowspan="1"><h3>_unmanage</h3> </td><td style="padding-bottom: 16px"><a name="method7"/><a name="m__unmanage"/><keyword title="API reference - Class QTextLayout, Method _unmanage" name="QTextLayout#_unmanage"/> <p><b>Signature</b>: void <b> _unmanage </b> </p> <p><b>Description</b>: Marks the object as no longer owned by the script side.</p> <p><p> 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.</p><p>Usually it's not required to call this method. It has been introduced in version 0.24.</p></p> </td></tr><tr><td rowspan="1"><h3>additionalFormats</h3> </td><td style="padding-bottom: 16px"><a name="method8"/><a name="m_additionalFormats"/><keyword title="API reference - Class QTextLayout, Method additionalFormats" name="QTextLayout#additionalFormats"/> <p><b>Signature</b>: <i>[const] </i><a href="/code/class_QTextLayout_FormatRange.xml">QTextLayout_FormatRange</a>[] <b> additionalFormats </b> </p> <p><b>Description</b>: Method QList<QTextLayout::FormatRange> QTextLayout::additionalFormats()</p> <p><b>Python specific notes:</b><br/>The object exposes a readable attribute 'additionalFormats'. This is the getter. </p> </td></tr><tr><td rowspan="1"><h3>additionalFormats=</h3> </td><td style="padding-bottom: 16px"><a name="method9"/><a name="m_additionalFormats="/><keyword title="API reference - Class QTextLayout, Method additionalFormats=" name="QTextLayout#additionalFormats="/> <p><b>Signature</b>: void <b> additionalFormats= </b> (<a href="/code/class_QTextLayout_FormatRange.xml">QTextLayout_FormatRange</a>[] overrides)</p> <p><b>Description</b>: Method void QTextLayout::setAdditionalFormats(const QList<QTextLayout::FormatRange> &overrides)</p> <p><b>Python specific notes:</b><br/>The object exposes a writable attribute 'additionalFormats'. This is the setter. </p> </td></tr><tr><td rowspan="1"><h3>beginLayout</h3> </td><td style="padding-bottom: 16px"><a name="method10"/><a name="m_beginLayout"/><keyword title="API reference - Class QTextLayout, Method beginLayout" name="QTextLayout#beginLayout"/> <p><b>Signature</b>: void <b> beginLayout </b> </p> <p><b>Description</b>: Method void QTextLayout::beginLayout()</p> </td></tr><tr><td rowspan="1"><h3>boundingRect</h3> </td><td style="padding-bottom: 16px"><a name="method11"/><a name="m_boundingRect"/><keyword title="API reference - Class QTextLayout, Method boundingRect" name="QTextLayout#boundingRect"/> <p><b>Signature</b>: <i>[const] </i><a href="/code/class_QRectF.xml">QRectF</a> <b> boundingRect </b> </p> <p><b>Description</b>: Method QRectF QTextLayout::boundingRect()</p> </td></tr><tr><td rowspan="1"><h3>cacheEnabled</h3> </td><td style="padding-bottom: 16px"><a name="method12"/><a name="m_cacheEnabled"/><keyword title="API reference - Class QTextLayout, Method cacheEnabled" name="QTextLayout#cacheEnabled"/> <p><b>Signature</b>: <i>[const] </i>bool <b> cacheEnabled </b> </p> <p><b>Description</b>: Method bool QTextLayout::cacheEnabled()</p> <p><b>Python specific notes:</b><br/>The object exposes a readable attribute 'cacheEnabled'. This is the getter. </p> </td></tr><tr><td rowspan="1"><h3>cacheEnabled=</h3> </td><td style="padding-bottom: 16px"><a name="method13"/><a name="m_cacheEnabled="/><keyword title="API reference - Class QTextLayout, Method cacheEnabled=" name="QTextLayout#cacheEnabled="/> <p><b>Signature</b>: void <b> cacheEnabled= </b> (bool enable)</p> <p><b>Description</b>: Method void QTextLayout::setCacheEnabled(bool enable)</p> <p><b>Python specific notes:</b><br/>The object exposes a writable attribute 'cacheEnabled'. This is the setter. </p> </td></tr><tr><td rowspan="1"><h3>clearAdditionalFormats</h3> </td><td style="padding-bottom: 16px"><a name="method14"/><a name="m_clearAdditionalFormats"/><keyword title="API reference - Class QTextLayout, Method clearAdditionalFormats" name="QTextLayout#clearAdditionalFormats"/> <p><b>Signature</b>: void <b> clearAdditionalFormats </b> </p> <p><b>Description</b>: Method void QTextLayout::clearAdditionalFormats()</p> </td></tr><tr><td rowspan="1"><h3>clearLayout</h3> </td><td style="padding-bottom: 16px"><a name="method15"/><a name="m_clearLayout"/><keyword title="API reference - Class QTextLayout, Method clearLayout" name="QTextLayout#clearLayout"/> <p><b>Signature</b>: void <b> clearLayout </b> </p> <p><b>Description</b>: Method void QTextLayout::clearLayout()</p> </td></tr><tr><td rowspan="1"><h3>create</h3> </td><td style="padding-bottom: 16px"><a name="method16"/><a name="m_create"/><keyword title="API reference - Class QTextLayout, Method create" name="QTextLayout#create"/> <p><b>Signature</b>: void <b> create </b> </p> <p><b>Description</b>: Ensures the C++ object is created</p> <p>Use of this method is deprecated. Use _create instead</p> </td></tr><tr><td rowspan="1"><h3>createLine</h3> </td><td style="padding-bottom: 16px"><a name="method17"/><a name="m_createLine"/><keyword title="API reference - Class QTextLayout, Method createLine" name="QTextLayout#createLine"/> <p><b>Signature</b>: <a href="/code/class_QTextLine.xml">QTextLine</a> <b> createLine </b> </p> <p><b>Description</b>: Method QTextLine QTextLayout::createLine()</p> </td></tr><tr><td rowspan="1"><h3>destroy</h3> </td><td style="padding-bottom: 16px"><a name="method18"/><a name="m_destroy"/><keyword title="API reference - Class QTextLayout, Method destroy" name="QTextLayout#destroy"/> <p><b>Signature</b>: void <b> destroy </b> </p> <p><b>Description</b>: Explicitly destroys the object</p> <p>Use of this method is deprecated. Use _destroy instead</p> </td></tr><tr><td rowspan="1"><h3>destroyed?</h3> </td><td style="padding-bottom: 16px"><a name="method19"/><a name="m_destroyed?"/><keyword title="API reference - Class QTextLayout, Method destroyed?" name="QTextLayout#destroyed?"/> <p><b>Signature</b>: <i>[const] </i>bool <b> destroyed? </b> </p> <p><b>Description</b>: Returns a value indicating whether the object was already destroyed</p> <p>Use of this method is deprecated. Use _destroyed? instead</p> </td></tr><tr><td rowspan="1"><h3>draw</h3> </td><td style="padding-bottom: 16px"><a name="method20"/><a name="m_draw"/><keyword title="API reference - Class QTextLayout, Method draw" name="QTextLayout#draw"/> <p><b>Signature</b>: <i>[const] </i>void <b> draw </b> (<a href="/code/class_QPainter.xml">QPainter</a> ptr p, const <a href="/code/class_QPointF.xml">QPointF</a> pos, <a href="/code/class_QTextLayout_FormatRange.xml">QTextLayout_FormatRange</a>[] selections = QVector<QTextLayout::FormatRange>(), const <a href="/code/class_QRectF.xml">QRectF</a> clip = QRectF())</p> <p><b>Description</b>: Method void QTextLayout::draw(QPainter *p, const QPointF &pos, const QVector<QTextLayout::FormatRange> &selections, const QRectF &clip)</p> </td></tr><tr><td rowspan="2"><h3>drawCursor</h3> </td><td style="padding-bottom: 16px"><a name="method21"/><a name="m_drawCursor"/><keyword title="API reference - Class QTextLayout, Method drawCursor" name="QTextLayout#drawCursor"/> <p><b>Signature</b>: <i>[const] </i>void <b> drawCursor </b> (<a href="/code/class_QPainter.xml">QPainter</a> ptr p, const <a href="/code/class_QPointF.xml">QPointF</a> pos, int cursorPosition)</p> <p><b>Description</b>: Method void QTextLayout::drawCursor(QPainter *p, const QPointF &pos, int cursorPosition)</p> </td></tr><tr><td style="padding-bottom: 16px"><a name="method22"/><a name="m_drawCursor"/><keyword title="API reference - Class QTextLayout, Method drawCursor" name="QTextLayout#drawCursor"/> <p><b>Signature</b>: <i>[const] </i>void <b> drawCursor </b> (<a href="/code/class_QPainter.xml">QPainter</a> ptr p, const <a href="/code/class_QPointF.xml">QPointF</a> pos, int cursorPosition, int width)</p> <p><b>Description</b>: Method void QTextLayout::drawCursor(QPainter *p, const QPointF &pos, int cursorPosition, int width)</p> </td></tr><tr><td rowspan="1"><h3>endLayout</h3> </td><td style="padding-bottom: 16px"><a name="method23"/><a name="m_endLayout"/><keyword title="API reference - Class QTextLayout, Method endLayout" name="QTextLayout#endLayout"/> <p><b>Signature</b>: void <b> endLayout </b> </p> <p><b>Description</b>: Method void QTextLayout::endLayout()</p> </td></tr><tr><td rowspan="1"><h3>font</h3> </td><td style="padding-bottom: 16px"><a name="method24"/><a name="m_font"/><keyword title="API reference - Class QTextLayout, Method font" name="QTextLayout#font"/> <p><b>Signature</b>: <i>[const] </i><a href="/code/class_QFont.xml">QFont</a> <b> font </b> </p> <p><b>Description</b>: Method QFont QTextLayout::font()</p> <p><b>Python specific notes:</b><br/>The object exposes a readable attribute 'font'. This is the getter. </p> </td></tr><tr><td rowspan="1"><h3>font=</h3> </td><td style="padding-bottom: 16px"><a name="method25"/><a name="m_font="/><keyword title="API reference - Class QTextLayout, Method font=" name="QTextLayout#font="/> <p><b>Signature</b>: void <b> font= </b> (const <a href="/code/class_QFont.xml">QFont</a> f)</p> <p><b>Description</b>: Method void QTextLayout::setFont(const QFont &f)</p> <p><b>Python specific notes:</b><br/>The object exposes a writable attribute 'font'. This is the setter. </p> </td></tr><tr><td rowspan="1"><h3>isValidCursorPosition?</h3> </td><td style="padding-bottom: 16px"><a name="method26"/><a name="m_isValidCursorPosition?"/><keyword title="API reference - Class QTextLayout, Method isValidCursorPosition?" name="QTextLayout#isValidCursorPosition?"/> <p><b>Signature</b>: <i>[const] </i>bool <b> isValidCursorPosition? </b> (int pos)</p> <p><b>Description</b>: Method bool QTextLayout::isValidCursorPosition(int pos)</p> </td></tr><tr><td rowspan="1"><h3>is_const_object?</h3> </td><td style="padding-bottom: 16px"><a name="method27"/><a name="m_is_const_object?"/><keyword title="API reference - Class QTextLayout, Method is_const_object?" name="QTextLayout#is_const_object?"/> <p><b>Signature</b>: <i>[const] </i>bool <b> is_const_object? </b> </p> <p><b>Description</b>: Returns a value indicating whether the reference is a const reference</p> <p>Use of this method is deprecated. Use _is_const_object? instead</p> </td></tr><tr><td rowspan="1"><h3>lineAt</h3> </td><td style="padding-bottom: 16px"><a name="method28"/><a name="m_lineAt"/><keyword title="API reference - Class QTextLayout, Method lineAt" name="QTextLayout#lineAt"/> <p><b>Signature</b>: <i>[const] </i><a href="/code/class_QTextLine.xml">QTextLine</a> <b> lineAt </b> (int i)</p> <p><b>Description</b>: Method QTextLine QTextLayout::lineAt(int i)</p> </td></tr><tr><td rowspan="1"><h3>lineCount</h3> </td><td style="padding-bottom: 16px"><a name="method29"/><a name="m_lineCount"/><keyword title="API reference - Class QTextLayout, Method lineCount" name="QTextLayout#lineCount"/> <p><b>Signature</b>: <i>[const] </i>int <b> lineCount </b> </p> <p><b>Description</b>: Method int QTextLayout::lineCount()</p> </td></tr><tr><td rowspan="1"><h3>lineForTextPosition</h3> </td><td style="padding-bottom: 16px"><a name="method30"/><a name="m_lineForTextPosition"/><keyword title="API reference - Class QTextLayout, Method lineForTextPosition" name="QTextLayout#lineForTextPosition"/> <p><b>Signature</b>: <i>[const] </i><a href="/code/class_QTextLine.xml">QTextLine</a> <b> lineForTextPosition </b> (int pos)</p> <p><b>Description</b>: Method QTextLine QTextLayout::lineForTextPosition(int pos)</p> </td></tr><tr><td rowspan="1"><h3>maximumWidth</h3> </td><td style="padding-bottom: 16px"><a name="method31"/><a name="m_maximumWidth"/><keyword title="API reference - Class QTextLayout, Method maximumWidth" name="QTextLayout#maximumWidth"/> <p><b>Signature</b>: <i>[const] </i>double <b> maximumWidth </b> </p> <p><b>Description</b>: Method double QTextLayout::maximumWidth()</p> </td></tr><tr><td rowspan="1"><h3>minimumWidth</h3> </td><td style="padding-bottom: 16px"><a name="method32"/><a name="m_minimumWidth"/><keyword title="API reference - Class QTextLayout, Method minimumWidth" name="QTextLayout#minimumWidth"/> <p><b>Signature</b>: <i>[const] </i>double <b> minimumWidth </b> </p> <p><b>Description</b>: Method double QTextLayout::minimumWidth()</p> </td></tr><tr><td rowspan="4"><h3>new</h3> </td><td style="padding-bottom: 16px"><a name="method33"/><a name="m_new"/><keyword title="API reference - Class QTextLayout, Method new" name="QTextLayout#new"/> <p><b>Signature</b>: <i>[static] </i>new <a href="/code/class_QTextLayout.xml">QTextLayout</a> <b> new </b> </p> <p><b>Description</b>: Constructor QTextLayout::QTextLayout()</p> <p><p> This method creates an object of class QTextLayout.</p></p> <p><b>Python specific notes:</b><br/>This method is the default initializer of the object </p> </td></tr><tr><td style="padding-bottom: 16px"><a name="method34"/><a name="m_new"/><keyword title="API reference - Class QTextLayout, Method new" name="QTextLayout#new"/> <p><b>Signature</b>: <i>[static] </i>new <a href="/code/class_QTextLayout.xml">QTextLayout</a> <b> new </b> (string text)</p> <p><b>Description</b>: Constructor QTextLayout::QTextLayout(const QString &text)</p> <p><p> This method creates an object of class QTextLayout.</p></p> <p><b>Python specific notes:</b><br/>This method is the default initializer of the object </p> </td></tr><tr><td style="padding-bottom: 16px"><a name="method35"/><a name="m_new"/><keyword title="API reference - Class QTextLayout, Method new" name="QTextLayout#new"/> <p><b>Signature</b>: <i>[static] </i>new <a href="/code/class_QTextLayout.xml">QTextLayout</a> <b> new </b> (string text, const <a href="/code/class_QFont.xml">QFont</a> font, <a href="/code/class_QPaintDevice.xml">QPaintDevice</a> ptr paintdevice = 0)</p> <p><b>Description</b>: Constructor QTextLayout::QTextLayout(const QString &text, const QFont &font, QPaintDevice *paintdevice)</p> <p><p> This method creates an object of class QTextLayout.</p></p> <p><b>Python specific notes:</b><br/>This method is the default initializer of the object </p> </td></tr><tr><td style="padding-bottom: 16px"><a name="method36"/><a name="m_new"/><keyword title="API reference - Class QTextLayout, Method new" name="QTextLayout#new"/> <p><b>Signature</b>: <i>[static] </i>new <a href="/code/class_QTextLayout.xml">QTextLayout</a> <b> new </b> (const <a href="/code/class_QTextBlock.xml">QTextBlock</a> b)</p> <p><b>Description</b>: Constructor QTextLayout::QTextLayout(const QTextBlock &b)</p> <p><p> This method creates an object of class QTextLayout.</p></p> <p><b>Python specific notes:</b><br/>This method is the default initializer of the object </p> </td></tr><tr><td rowspan="1"><h3>nextCursorPosition</h3> </td><td style="padding-bottom: 16px"><a name="method37"/><a name="m_nextCursorPosition"/><keyword title="API reference - Class QTextLayout, Method nextCursorPosition" name="QTextLayout#nextCursorPosition"/> <p><b>Signature</b>: <i>[const] </i>int <b> nextCursorPosition </b> (int oldPos, const <a href="/code/class_QTextLayout_CursorMode.xml">QTextLayout_CursorMode</a> mode = QTextLayout::SkipCharacters)</p> <p><b>Description</b>: Method int QTextLayout::nextCursorPosition(int oldPos, QTextLayout::CursorMode mode)</p> </td></tr><tr><td rowspan="1"><h3>position</h3> </td><td style="padding-bottom: 16px"><a name="method38"/><a name="m_position"/><keyword title="API reference - Class QTextLayout, Method position" name="QTextLayout#position"/> <p><b>Signature</b>: <i>[const] </i><a href="/code/class_QPointF.xml">QPointF</a> <b> position </b> </p> <p><b>Description</b>: Method QPointF QTextLayout::position()</p> <p><b>Python specific notes:</b><br/>The object exposes a readable attribute 'position'. This is the getter. </p> </td></tr><tr><td rowspan="1"><h3>position=</h3> </td><td style="padding-bottom: 16px"><a name="method39"/><a name="m_position="/><keyword title="API reference - Class QTextLayout, Method position=" name="QTextLayout#position="/> <p><b>Signature</b>: void <b> position= </b> (const <a href="/code/class_QPointF.xml">QPointF</a> p)</p> <p><b>Description</b>: Method void QTextLayout::setPosition(const QPointF &p)</p> <p><b>Python specific notes:</b><br/>The object exposes a writable attribute 'position'. This is the setter. </p> </td></tr><tr><td rowspan="1"><h3>preeditAreaPosition</h3> </td><td style="padding-bottom: 16px"><a name="method40"/><a name="m_preeditAreaPosition"/><keyword title="API reference - Class QTextLayout, Method preeditAreaPosition" name="QTextLayout#preeditAreaPosition"/> <p><b>Signature</b>: <i>[const] </i>int <b> preeditAreaPosition </b> </p> <p><b>Description</b>: Method int QTextLayout::preeditAreaPosition()</p> </td></tr><tr><td rowspan="1"><h3>preeditAreaText</h3> </td><td style="padding-bottom: 16px"><a name="method41"/><a name="m_preeditAreaText"/><keyword title="API reference - Class QTextLayout, Method preeditAreaText" name="QTextLayout#preeditAreaText"/> <p><b>Signature</b>: <i>[const] </i>string <b> preeditAreaText </b> </p> <p><b>Description</b>: Method QString QTextLayout::preeditAreaText()</p> </td></tr><tr><td rowspan="1"><h3>previousCursorPosition</h3> </td><td style="padding-bottom: 16px"><a name="method42"/><a name="m_previousCursorPosition"/><keyword title="API reference - Class QTextLayout, Method previousCursorPosition" name="QTextLayout#previousCursorPosition"/> <p><b>Signature</b>: <i>[const] </i>int <b> previousCursorPosition </b> (int oldPos, const <a href="/code/class_QTextLayout_CursorMode.xml">QTextLayout_CursorMode</a> mode = QTextLayout::SkipCharacters)</p> <p><b>Description</b>: Method int QTextLayout::previousCursorPosition(int oldPos, QTextLayout::CursorMode mode)</p> </td></tr><tr><td rowspan="1"><h3>setAdditionalFormats</h3> </td><td style="padding-bottom: 16px"><a name="method43"/><a name="m_setAdditionalFormats"/><keyword title="API reference - Class QTextLayout, Method setAdditionalFormats" name="QTextLayout#setAdditionalFormats"/> <p><b>Signature</b>: void <b> setAdditionalFormats </b> (<a href="/code/class_QTextLayout_FormatRange.xml">QTextLayout_FormatRange</a>[] overrides)</p> <p><b>Description</b>: Method void QTextLayout::setAdditionalFormats(const QList<QTextLayout::FormatRange> &overrides)</p> <p><b>Python specific notes:</b><br/>The object exposes a writable attribute 'additionalFormats'. This is the setter. </p> </td></tr><tr><td rowspan="1"><h3>setCacheEnabled</h3> </td><td style="padding-bottom: 16px"><a name="method44"/><a name="m_setCacheEnabled"/><keyword title="API reference - Class QTextLayout, Method setCacheEnabled" name="QTextLayout#setCacheEnabled"/> <p><b>Signature</b>: void <b> setCacheEnabled </b> (bool enable)</p> <p><b>Description</b>: Method void QTextLayout::setCacheEnabled(bool enable)</p> <p><b>Python specific notes:</b><br/>The object exposes a writable attribute 'cacheEnabled'. This is the setter. </p> </td></tr><tr><td rowspan="1"><h3>setFlags</h3> </td><td style="padding-bottom: 16px"><a name="method45"/><a name="m_setFlags"/><keyword title="API reference - Class QTextLayout, Method setFlags" name="QTextLayout#setFlags"/> <p><b>Signature</b>: void <b> setFlags </b> (int flags)</p> <p><b>Description</b>: Method void QTextLayout::setFlags(int flags)</p> </td></tr><tr><td rowspan="1"><h3>setFont</h3> </td><td style="padding-bottom: 16px"><a name="method46"/><a name="m_setFont"/><keyword title="API reference - Class QTextLayout, Method setFont" name="QTextLayout#setFont"/> <p><b>Signature</b>: void <b> setFont </b> (const <a href="/code/class_QFont.xml">QFont</a> f)</p> <p><b>Description</b>: Method void QTextLayout::setFont(const QFont &f)</p> <p><b>Python specific notes:</b><br/>The object exposes a writable attribute 'font'. This is the setter. </p> </td></tr><tr><td rowspan="1"><h3>setPosition</h3> </td><td style="padding-bottom: 16px"><a name="method47"/><a name="m_setPosition"/><keyword title="API reference - Class QTextLayout, Method setPosition" name="QTextLayout#setPosition"/> <p><b>Signature</b>: void <b> setPosition </b> (const <a href="/code/class_QPointF.xml">QPointF</a> p)</p> <p><b>Description</b>: Method void QTextLayout::setPosition(const QPointF &p)</p> <p><b>Python specific notes:</b><br/>The object exposes a writable attribute 'position'. This is the setter. </p> </td></tr><tr><td rowspan="1"><h3>setPreeditArea</h3> </td><td style="padding-bottom: 16px"><a name="method48"/><a name="m_setPreeditArea"/><keyword title="API reference - Class QTextLayout, Method setPreeditArea" name="QTextLayout#setPreeditArea"/> <p><b>Signature</b>: void <b> setPreeditArea </b> (int position, string text)</p> <p><b>Description</b>: Method void QTextLayout::setPreeditArea(int position, const QString &text)</p> </td></tr><tr><td rowspan="1"><h3>setText</h3> </td><td style="padding-bottom: 16px"><a name="method49"/><a name="m_setText"/><keyword title="API reference - Class QTextLayout, Method setText" name="QTextLayout#setText"/> <p><b>Signature</b>: void <b> setText </b> (string string)</p> <p><b>Description</b>: Method void QTextLayout::setText(const QString &string)</p> <p><b>Python specific notes:</b><br/>The object exposes a writable attribute 'text'. This is the setter. </p> </td></tr><tr><td rowspan="1"><h3>setTextOption</h3> </td><td style="padding-bottom: 16px"><a name="method50"/><a name="m_setTextOption"/><keyword title="API reference - Class QTextLayout, Method setTextOption" name="QTextLayout#setTextOption"/> <p><b>Signature</b>: void <b> setTextOption </b> (const <a href="/code/class_QTextOption.xml">QTextOption</a> option)</p> <p><b>Description</b>: Method void QTextLayout::setTextOption(const QTextOption &option)</p> <p><b>Python specific notes:</b><br/>The object exposes a writable attribute 'textOption'. This is the setter. </p> </td></tr><tr><td rowspan="1"><h3>text</h3> </td><td style="padding-bottom: 16px"><a name="method51"/><a name="m_text"/><keyword title="API reference - Class QTextLayout, Method text" name="QTextLayout#text"/> <p><b>Signature</b>: <i>[const] </i>string <b> text </b> </p> <p><b>Description</b>: Method QString QTextLayout::text()</p> <p><b>Python specific notes:</b><br/>The object exposes a readable attribute 'text'. This is the getter. </p> </td></tr><tr><td rowspan="1"><h3>text=</h3> </td><td style="padding-bottom: 16px"><a name="method52"/><a name="m_text="/><keyword title="API reference - Class QTextLayout, Method text=" name="QTextLayout#text="/> <p><b>Signature</b>: void <b> text= </b> (string string)</p> <p><b>Description</b>: Method void QTextLayout::setText(const QString &string)</p> <p><b>Python specific notes:</b><br/>The object exposes a writable attribute 'text'. This is the setter. </p> </td></tr><tr><td rowspan="1"><h3>textOption</h3> </td><td style="padding-bottom: 16px"><a name="method53"/><a name="m_textOption"/><keyword title="API reference - Class QTextLayout, Method textOption" name="QTextLayout#textOption"/> <p><b>Signature</b>: <i>[const] </i><a href="/code/class_QTextOption.xml">QTextOption</a> <b> textOption </b> </p> <p><b>Description</b>: Method QTextOption QTextLayout::textOption()</p> <p><b>Python specific notes:</b><br/>The object exposes a readable attribute 'textOption'. This is the getter. </p> </td></tr><tr><td rowspan="1"><h3>textOption=</h3> </td><td style="padding-bottom: 16px"><a name="method54"/><a name="m_textOption="/><keyword title="API reference - Class QTextLayout, Method textOption=" name="QTextLayout#textOption="/> <p><b>Signature</b>: void <b> textOption= </b> (const <a href="/code/class_QTextOption.xml">QTextOption</a> option)</p> <p><b>Description</b>: Method void QTextLayout::setTextOption(const QTextOption &option)</p> <p><b>Python specific notes:</b><br/>The object exposes a writable attribute 'textOption'. This is the setter. </p> </td></tr></table></doc> |