DATAKIT API  V2025.1
Dtk_Font Class Reference

This is the font class This class lets you access to font informations (name, type ...) More...

Public Types

enum  FontTypeEnum { FontUnknown = 0, FontTruescript, FontPostscript, FontOpentype }
 

Public Member Functions

 Dtk_Font ()
 Base constructor. More...
 
 Dtk_Font (const Dtk_Font &s)
 Copy constructor. More...
 
 Dtk_Font (Dtk_Font &&s) DTK_NOEXCEPT
 \MoveConstructor{s} More...
 
FontTypeEnumFontType ()
 Retrieves the font type - get/set -. More...
 
const FontTypeEnumFontType () const
 Retrieves the font type - read only -. More...
 
Dtk_Size_tID ()
 Retrieves the font Id - get/set -. More...
 
const Dtk_Size_tID () const
 Retrieves the font Id - read only -. More...
 
Dtk_stringName ()
 Retrieves the font name - get/set -. More...
 
const Dtk_stringName () const
 Retrieves the font name - read only -. More...
 
Dtk_Fontoperator= (const Dtk_Font &inToBeAssigned)
 Assignment Operator. More...
 
Dtk_Fontoperator= (Dtk_Font &&inToBeMoveed) DTK_NOEXCEPT
 \MoveOp{inToBeMoveed} More...
 
 ~Dtk_Font ()
 Destructor. More...
 

Protected Attributes

FontTypeEnum _font_type
 Font type (Postcript, TrueType) More...
 
Dtk_Size_t _ID
 Font ID. More...
 
Dtk_string _name
 Font name. More...
 

Friends

std::ostream & operator<< (std::ostream &o, const Dtk_Font &d)
 

Detailed Description

This is the font class This class lets you access to font informations (name, type ...)

Member Enumeration Documentation

◆ FontTypeEnum

Enumerator
FontUnknown 
FontTruescript 
FontPostscript 
FontOpentype 
192  {
193  FontUnknown = 0,
197  };

Constructor & Destructor Documentation

◆ ~Dtk_Font()

Dtk_Font::~Dtk_Font ( )

Destructor.

◆ Dtk_Font() [1/3]

Dtk_Font::Dtk_Font ( )

Base constructor.

◆ Dtk_Font() [2/3]

Dtk_Font::Dtk_Font ( const Dtk_Font s)

Copy constructor.

Parameters
sObject to copy.

◆ Dtk_Font() [3/3]

Dtk_Font::Dtk_Font ( Dtk_Font &&  s)

\MoveConstructor{s}

Member Function Documentation

◆ FontType() [1/2]

FontTypeEnum& Dtk_Font::FontType ( )

Retrieves the font type - get/set -.

Returns
The font type (FontTruescript, FontPostscript, etc...)
See also
FontTypeEnum() const

◆ FontType() [2/2]

const FontTypeEnum& Dtk_Font::FontType ( ) const

Retrieves the font type - read only -.

Returns
The font type (FontTruescript, FontPostscript, etc...)
See also
FontTypeEnum()

◆ ID() [1/2]

Dtk_Size_t& Dtk_Font::ID ( )

Retrieves the font Id - get/set -.

Returns
The font Id
See also
ID() const

◆ ID() [2/2]

const Dtk_Size_t& Dtk_Font::ID ( ) const

Retrieves the font Id - read only -.

Returns
The font Id
See also
ID()

◆ Name() [1/2]

Dtk_string& Dtk_Font::Name ( )

Retrieves the font name - get/set -.

Returns
The font name
See also
Name() const

◆ Name() [2/2]

const Dtk_string& Dtk_Font::Name ( ) const

Retrieves the font name - read only -.

Returns
The font name
See also
Name()

◆ operator=() [1/2]

Dtk_Font& Dtk_Font::operator= ( const Dtk_Font inToBeAssigned)

Assignment Operator.

Parameters
inToBeAssignedObject to copy.

◆ operator=() [2/2]

Dtk_Font& Dtk_Font::operator= ( Dtk_Font &&  inToBeMoveed)

\MoveOp{inToBeMoveed}

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  o,
const Dtk_Font d 
)
friend

Field Documentation

◆ _font_type

FontTypeEnum Dtk_Font::_font_type
protected

Font type (Postcript, TrueType)

◆ _ID

Dtk_Size_t Dtk_Font::_ID
protected

Font ID.

◆ _name

Dtk_string Dtk_Font::_name
protected

Font name.

Dtk_Font::FontTruescript
@ FontTruescript
Definition: util_draw_dtk.hpp:194
Dtk_Font::FontUnknown
@ FontUnknown
Definition: util_draw_dtk.hpp:193
Dtk_Font::FontOpentype
@ FontOpentype
Definition: util_draw_dtk.hpp:196
Dtk_Font::FontPostscript
@ FontPostscript
Definition: util_draw_dtk.hpp:195