Class DText (version 0.20)
Description: A text object
A text object has a point (location), a text, a text transformation, a text size and a font id. Text size and font id are provided to be be able to render the text correctly.
Return true, if this text object and the given text are not equal
Description: Less operator
This operator is provided to establish some, not necessarily a certain sorting order
Return true, if this text object and the given text are equal
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.
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: Tell, if the object was 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] DText dup
Description: Creates a copy of self.
Description: Get the font number
Description: Set the font number
Description: Construct an floating-point coordinate text object from an integer coordinate text
Description: Moves the text by a certain distance
Moves the text by a given offset and returns the moved text. Does not check for coordinate overflows.
Description: Returns the text moved by a certain distance
Moves the text by a given offset and returns the moved text. Does not modify *this. Does not check for coordinate overflows.
[static] DText new( string string, DTrans trans )
|t:||The transformation to apply|
|returns:||The transformed text|
Description: Transform the text with the given complex transformation
|t:||The magnifying transformation to apply|
|returns:||The transformed text (a DText now)|