Hide menu
Loading...
Searching...
No Matches

Defines a text for drawing. More...

#include <cadex/Text.hxx>

Inheritance diagram for cadex::Drawing::Text:
cadex::Drawing::Element cadex::BaseObject

Public Member Functions

 Text ()
 Constructor.
 
 Text (const UTF16String &theText)
 Constructor.
 
void SetText (const UTF16String &theText)
 Sets a text.
 
const UTF16StringGetText () const
 Returns a text.
 
void SetTextOrigin (const Geom::Point2d &theTextOrigin)
 Sets a position of the text.
 
const Geom::Point2dTextOrigin () const
 Returns a position of the text on the 2d plane.
 
void SetFontSize (float theFontSize)
 
float FontSize () const
 Returns size of the font in points.
 
void SetTextProperties (const Properties &theTextProperties)
 Sets the properties of dimension text.
 
Properties TextProperties () const
 Returns the properties of dimension text.
 
- Public Member Functions inherited from cadex::Drawing::Element
void SetUuid (const Uuid &theUuid)
 
cadex::Uuid Uuid () const
 
void Accept (ElementVisitor &theVisitor) const
 
- Public Member Functions inherited from cadex::BaseObject
size_t Id () const
 Return unique identifier of public object.
 
internal::BaseObjectImpl * Impl () const
 
bool IsNull () const
 
 operator bool () const
 
template<typename T >
bool IsOfType () const
 
template<typename T >
T * Impl () const
 Reserved for internal use.
 

Static Public Member Functions

static bool CompareType (const BaseObject &theObject)
 
- Static Public Member Functions inherited from cadex::Drawing::Element
static bool CompareType (const BaseObject &theObject)
 

Additional Inherited Members

- Public Types inherited from cadex::BaseObject
typedef std::shared_ptr< internal::BaseObjectImpl > ImplType
 
- Protected Member Functions inherited from cadex::Drawing::Element
 Element (const ImplType &theImpl)
 
- Protected Member Functions inherited from cadex::BaseObject
 BaseObject (const ImplType &theImpl)
 

Detailed Description

Defines a text for drawing.

Example of text

Member Function Documentation

◆ FontSize()

float cadex::Drawing::Text::FontSize ( ) const

Returns size of the font in points.

Returns 16 by default.