eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::EFont Class Reference

Font. More...

#include <eVision/Easy/EFont.h>

Collaboration diagram for eVision::EFont:

Public Member Functions

 EFont ()
 Constructs a EFont.
 EFont (const std::string &fontFamily, int32_t pointSize, eVision::EFontStyle style)
 Constructs a EFont.
 EFont (const std::string &fontFamily, int32_t pointSize)
 Constructs a EFont.
 EFont (const eVision::EFont &other)
 Constructs a EFont.
virtual ~EFont () throw ()
eVision::EFont & operator= (const eVision::EFont &other)
 Assignment operator.
bool operator== (const eVision::EFont &other) const
 Equality operator.
bool operator!= (const eVision::EFont &other) const
 Inequality operator.
bool IsValid () const
 Whether the font is valid (Size != 0 and Family defined).
std::string GetFamily () const
 Font family name.
void SetFamily (const std::string &family)
 Font family name.
int32_t GetSize () const
 Size of the font.
void SetSize (int32_t size)
 Size of the font.
eVision::EFontStyle GetStyle () const
 Font style.
void SetStyle (eVision::EFontStyle style)
 Font style.
void Serialize (eVision::ESerializer *serializer)
 Serializes the EFont.
void Load (const std::string &path)
 Loads the EFont. The given ESerializer must have been created for reading.
void Load (eVision::ESerializer *serializer)
 Loads the EFont. The given ESerializer must have been created for reading.
void Save (const std::string &path)
 Saves the EFont. The given ESerializer must have been created for writing.
void Save (eVision::ESerializer *serializer)
 Saves the EFont. The given ESerializer must have been created for writing.
 EFont (CppWrapperInternal::InternalConstructor)

Public Attributes

CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

Font.

License(s): None

Constructor & Destructor Documentation

◆ EFont() [1/5]

eVision::EFont::EFont ( )

Constructs a EFont.

◆ EFont() [2/5]

eVision::EFont::EFont ( const std::string & fontFamily,
int32_t pointSize,
eVision::EFontStyle style )

Constructs a EFont.

Parameters
fontFamilyFont family
pointSizeFont size
styleFont style

◆ EFont() [3/5]

eVision::EFont::EFont ( const std::string & fontFamily,
int32_t pointSize )

Constructs a EFont.

Parameters
fontFamilyFont family
pointSizeFont size

◆ EFont() [4/5]

eVision::EFont::EFont ( const eVision::EFont & other)

Constructs a EFont.

Parameters
otherThe other EFont that will be copied into this one.

◆ ~EFont()

eVision::EFont::~EFont ( )
throw ( )
virtual

◆ EFont() [5/5]

eVision::EFont::EFont ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ GetFamily()

std::string eVision::EFont::GetFamily ( ) const

Font family name.

◆ GetSize()

int32_t eVision::EFont::GetSize ( ) const

Size of the font.

◆ GetStyle()

eVision::EFontStyle eVision::EFont::GetStyle ( ) const

Font style.

◆ IsValid()

bool eVision::EFont::IsValid ( ) const

Whether the font is valid (Size != 0 and Family defined).

◆ Load() [1/2]

void eVision::EFont::Load ( const std::string & path)

Loads the EFont. The given ESerializer must have been created for reading.

Parameters
pathThe file path.

◆ Load() [2/2]

void eVision::EFont::Load ( eVision::ESerializer * serializer)

Loads the EFont. The given ESerializer must have been created for reading.

Parameters
serializerThe serializer.

◆ operator!=()

bool eVision::EFont::operator!= ( const eVision::EFont & other) const

Inequality operator.

Parameters
otherOther font to compare with.

◆ operator=()

eVision::EFont & eVision::EFont::operator= ( const eVision::EFont & other)

Assignment operator.

Parameters
otherThe other EFont that will be copied into this one.

◆ operator==()

bool eVision::EFont::operator== ( const eVision::EFont & other) const

Equality operator.

Parameters
otherOther font to compare with.

◆ Save() [1/2]

void eVision::EFont::Save ( const std::string & path)

Saves the EFont. The given ESerializer must have been created for writing.

Parameters
pathThe file path.

◆ Save() [2/2]

void eVision::EFont::Save ( eVision::ESerializer * serializer)

Saves the EFont. The given ESerializer must have been created for writing.

Parameters
serializerThe ESerializer object that is written to.

◆ Serialize()

void eVision::EFont::Serialize ( eVision::ESerializer * serializer)

Serializes the EFont.

Parameters
serializerSerializer
Deprecated

Use EFont::Save or EFont::Load instead.

Deprecated in version 24.10. Scheduled to be removed in version 27.6.

◆ SetFamily()

void eVision::EFont::SetFamily ( const std::string & family)

Font family name.

Parameters
familyThe font family.

◆ SetSize()

void eVision::EFont::SetSize ( int32_t size)

Size of the font.

Parameters
sizeThe size.

◆ SetStyle()

void eVision::EFont::SetStyle ( eVision::EFontStyle style)

Font style.

Parameters
styleThe font style.

Member Data Documentation

◆ wrappedClass_

CppWrapperInternal::WrappedClass eVision::EFont::wrappedClass_