Class DText (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 !=( DText text )Description: Inequality Return true, if this text object and the given text are not equal
[const] bool <( DText t )Description: Less operator This operator is provided to establish some, not necessarily a certain sorting order
[const] bool ==( DText text )Description: Equality Return true, if this text object and the given text are equal
assign( DText 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] DText dupDescription: Creates a copy of self.
int fontDescription: Get the font number
font=( int )Description: Set the font number
[static] DText from_itext( Text double_text )Description: Construct an floating-point coordinate text object from an integer coordinate text
ref DText move( DPoint 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.
DText moved( DPoint 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] 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) |