Class Text (version 0.18)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.
Method Overview
[const] bool !=( Text text )Description: Inequality Return true, if this text object and the given text are not equal
[const] bool <( Text t )Description: Less operator This operator is provided to establish some, not necessarily a certain sorting order
[const] bool ==( Text text )Description: Equality Return true, if this text object and the given text are equal
assign( Text 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.
destroyDescription: 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 destroyedDescription: 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] Text dupDescription: Creates a copy of self.
int fontDescription: Get the font number
font=( int )Description: Set the font number
[static] Text from_dtext( DText double_text )Description: Construct an integer coordinate text object from a floating-point coordinate text
ref Text move( Point distance )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.
Text moved( Point distance )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] Text newDescription: Default constructor Creates a text with unit transformation and empty text.
[static] Text new( string string, Trans trans )
|
t: | The transformation to apply |
returns: | The transformed text |
Description: Transform the text with the given complex transformation
This method has been introduced in version 0.18.
t: | The magnifying transformation to apply |
returns: | The transformed text (in this case an integer coordinate object now) |
Description: Transform the text with the given complex transformation
t: | The magnifying transformation to apply |
returns: | The transformed text (a DText now) |