API reference - Class QTextInlineObject

Notation used in Ruby API documentation

Description: Binding of QTextInlineObject

Public constructors

new QTextInlineObjectnewConstructor QTextInlineObject::QTextInlineObject()

Public methods

[const]doubleascentMethod double QTextInlineObject::ascent()
voidascent=(double a)Method void QTextInlineObject::setAscent(double a)
[const]voidassign(const QTextInlineObject other)Assign the contents of another object to self
voidcreateEnsures the C++ object is created
[const]doubledescentMethod double QTextInlineObject::descent()
voiddescent=(double d)Method void QTextInlineObject::setDescent(double d)
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]QTextInlineObjectdupCreates a copy of self
[const]QTextFormatformatMethod QTextFormat QTextInlineObject::format()
[const]intformatIndexMethod int QTextInlineObject::formatIndex()
[const]doubleheightMethod double QTextInlineObject::height()
[const]boolisValidMethod bool QTextInlineObject::isValid()
[const]boolisValid?Method bool QTextInlineObject::isValid()
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]QRectFrectMethod QRectF QTextInlineObject::rect()
voidsetAscent(double a)Method void QTextInlineObject::setAscent(double a)
voidsetDescent(double d)Method void QTextInlineObject::setDescent(double d)
voidsetWidth(double w)Method void QTextInlineObject::setWidth(double w)
[const]Qt_LayoutDirectiontextDirectionMethod Qt::LayoutDirection QTextInlineObject::textDirection()
[const]inttextPositionMethod int QTextInlineObject::textPosition()
[const]doublewidthMethod double QTextInlineObject::width()
voidwidth=(double w)Method void QTextInlineObject::setWidth(double w)

Detailed description

[const] double ascent

Description: Method double QTextInlineObject::ascent()

void ascent=(double a)

Description: Method void QTextInlineObject::setAscent(double a)

[const] void assign(const QTextInlineObject other)

Description: Assign the contents of another object to self

This method assigns the contents of another object to self. This is a deep copy that does not only copy the reference but the actual content.

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.

[const] double descent

Description: Method double QTextInlineObject::descent()

void descent=(double d)

Description: Method void QTextInlineObject::setDescent(double d)

void destroy

Description: Explicitly destroy the object

Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.

[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.

[const] QTextInlineObject dup

Description: Creates a copy of self

[const] QTextFormat format

Description: Method QTextFormat QTextInlineObject::format()

[const] int formatIndex

Description: Method int QTextInlineObject::formatIndex()

[const] double height

Description: Method double QTextInlineObject::height()

[const] bool isValid

Description: Method bool QTextInlineObject::isValid()

[const] bool isValid?

Description: Method bool QTextInlineObject::isValid()

[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.

[static] new QTextInlineObject new

Description: Constructor QTextInlineObject::QTextInlineObject()

This method creates an object of class QTextInlineObject.

[const] QRectF rect

Description: Method QRectF QTextInlineObject::rect()

void setAscent(double a)

Description: Method void QTextInlineObject::setAscent(double a)

void setDescent(double d)

Description: Method void QTextInlineObject::setDescent(double d)

void setWidth(double w)

Description: Method void QTextInlineObject::setWidth(double w)

[const] Qt_LayoutDirection textDirection

Description: Method Qt::LayoutDirection QTextInlineObject::textDirection()

[const] int textPosition

Description: Method int QTextInlineObject::textPosition()

[const] double width

Description: Method double QTextInlineObject::width()

void width=(double w)

Description: Method void QTextInlineObject::setWidth(double w)