API reference - Class QTextLength

Notation used in Ruby API documentation

Description: Binding of QTextLength

Public constructors

new QTextLengthnewConstructor QTextLength::QTextLength()
new QTextLengthnew(const QTextLength_Type type,
double value)
Constructor QTextLength::QTextLength(QTextLength::Type type, double value)

Public methods

[const]bool!=(const QTextLength other)Method bool QTextLength::operator!=(const QTextLength &other)
[const]bool==(const QTextLength other)Method bool QTextLength::operator==(const QTextLength &other)
[const]voidassign(const QTextLength other)Assign the contents of another object to self
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]QTextLengthdupCreates a copy of self
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]doublerawValueMethod double QTextLength::rawValue()
[const]QTextLength_TypetypeMethod QTextLength::Type QTextLength::type()
[const]doublevalue(double maximumLength)Method double QTextLength::value(double maximumLength)

Public static methods and constants

QTextLength_TypeFixedLengthEnum constant QTextLength::FixedLength
QTextLength_TypePercentageLengthEnum constant QTextLength::PercentageLength
QTextLength_TypeVariableLengthEnum constant QTextLength::VariableLength

Detailed description

[const] bool !=(const QTextLength other)

Description: Method bool QTextLength::operator!=(const QTextLength &other)

[const] bool ==(const QTextLength other)

Description: Method bool QTextLength::operator==(const QTextLength &other)

[static] QTextLength_Type FixedLength

Description: Enum constant QTextLength::FixedLength

[static] QTextLength_Type PercentageLength

Description: Enum constant QTextLength::PercentageLength

[static] QTextLength_Type VariableLength

Description: Enum constant QTextLength::VariableLength

[const] void assign(const QTextLength 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.

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] QTextLength dup

Description: Creates a copy of self

[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 QTextLength new

Description: Constructor QTextLength::QTextLength()

This method creates an object of class QTextLength.

[static] new QTextLength new(const QTextLength_Type type,double value)

Description: Constructor QTextLength::QTextLength(QTextLength::Type type, double value)

This method creates an object of class QTextLength.

[const] double rawValue

Description: Method double QTextLength::rawValue()

[const] QTextLength_Type type

Description: Method QTextLength::Type QTextLength::type()

[const] double value(double maximumLength)

Description: Method double QTextLength::value(double maximumLength)