Class for managing DPI-aware fonts. This class provides functionality to handle font scaling based on DPI settings. More...
#include <SDpiAwareFont.h>
Public Member Functions | |
SDpiAwareFont (void) | |
Constructor. | |
~SDpiAwareFont (void) | |
Destructor. | |
IFontS * | GetFontPtr () |
Retrieves the pointer to the current font object. | |
void | SetFontDesc (const SStringW &strDesc, int nScale) |
Sets the font description and scale. | |
void | UpdateFont (int nScale) |
Updates the font based on the provided scale. | |
Protected Member Functions | |
IFontS * | OnGetFont (const SStringW &strDesc, int nScale) |
Retrieves the font object based on the description and scale. | |
Protected Attributes | |
SStringW | m_strDesc |
SAutoRefPtr< IFontS > | m_object |
Class for managing DPI-aware fonts. This class provides functionality to handle font scaling based on DPI settings.
Definition at line 11 of file SDpiAwareFont.h.
SDpiAwareFont::SDpiAwareFont | ( | void | ) |
Constructor.
Definition at line 6 of file SDpiAwareFont.cpp.
SDpiAwareFont::~SDpiAwareFont | ( | void | ) |
Destructor.
Definition at line 11 of file SDpiAwareFont.cpp.
IFontS * SDpiAwareFont::GetFontPtr | ( | ) |
Retrieves the pointer to the current font object.
Definition at line 15 of file SDpiAwareFont.cpp.
Retrieves the font object based on the description and scale.
strDesc | Font description string. |
nScale | DPI scaling factor. |
Definition at line 33 of file SDpiAwareFont.cpp.
void SDpiAwareFont::SetFontDesc | ( | const SStringW & | strDesc, |
int | nScale ) |
Sets the font description and scale.
strDesc | Font description string. |
nScale | DPI scaling factor. |
Definition at line 20 of file SDpiAwareFont.cpp.
void SDpiAwareFont::UpdateFont | ( | int | nScale | ) |
Updates the font based on the provided scale.
nScale | DPI scaling factor. |
Definition at line 26 of file SDpiAwareFont.cpp.
|
protected |
Definition at line 52 of file SDpiAwareFont.h.
|
protected |
Definition at line 51 of file SDpiAwareFont.h.