CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
CFxUIFont Class Reference

#include <FxUIFont.h>

Public Member Functions

 CFxUIFont ()
 
 CFxUIFont (const CFxUIFont &font)
 
 CFxUIFont (const FxNativeFont &font)
 
CFxUIFontoperator= (const CFxUIFont &font)
 
 ~CFxUIFont ()
 
 operator const FxNativeFont & () const
 
void setBold (bool enable)
 
void setPointSize (int pointSize)
 
void setPixelSize (int pixelSize)
 

Protected Attributes

CFxUIFontImpl * m_pImpl = nullptr
 

Detailed Description

Definition at line 39 of file FxUIFont.h.

Constructor & Destructor Documentation

◆ CFxUIFont() [1/3]

CFxUIFont::CFxUIFont ( )

Constructor

◆ CFxUIFont() [2/3]

CFxUIFont::CFxUIFont ( const CFxUIFont & font)

Copy Constructor

◆ CFxUIFont() [3/3]

CFxUIFont::CFxUIFont ( const FxNativeFont & font)

◆ ~CFxUIFont()

CFxUIFont::~CFxUIFont ( )

Destructor

Member Function Documentation

◆ operator const FxNativeFont &()

CFxUIFont::operator const FxNativeFont & ( ) const

◆ operator=()

CFxUIFont & CFxUIFont::operator= ( const CFxUIFont & font)

Assignment operator

◆ setBold()

void CFxUIFont::setBold ( bool enable)

If enable is true sets the font's weight to CFxUIFont::Bold; otherwise sets the weight to CFxUIFont::Normal.

Parameters
bool

◆ setPixelSize()

void CFxUIFont::setPixelSize ( int pixelSize)

Sets the font size to pixelSize pixels, with a maxiumum size of an unsigned 16-bit integer.

Parameters
pixelSizeas integer

◆ setPointSize()

void CFxUIFont::setPointSize ( int pointSize)

Sets the point size to pointSize. The point size must be greater than zero.

Parameters
pointSizeas integer

Member Data Documentation

◆ m_pImpl

CFxUIFontImpl* CFxUIFont::m_pImpl = nullptr
protected

Definition at line 80 of file FxUIFont.h.


The documentation for this class was generated from the following file: