PixelLightAPI
.
|
#include <Font.h>
Public Member Functions | |
PLGUI_API | Font (Gui &cGui) |
Constructor. | |
PLGUI_API | Font (Gui &cGui, const PLCore::String &sFamily, PLCore::uint32 nHeight=0, EFontWeight nWeight=WeightNormal, EFontStyle nStyle=StyleNormal) |
Constructor. | |
PLGUI_API | Font (Gui &cGui, const FontInfo &cFontInfo) |
Constructor. | |
PLGUI_API | Font (const Font &cFont) |
Copy constructor. | |
PLGUI_API | ~Font () |
Destructor. | |
PLGUI_API Font & | operator= (const Font &cFont) |
Assignment operator. | |
PLGUI_API Gui * | GetGui () const |
Get owner GUI. | |
PLGUI_API FontImpl * | GetImpl () const |
Get implementation. | |
PLGUI_API bool | Load (const PLCore::String &sFamily, PLCore::uint32 nHeight=0, EFontWeight nWeight=WeightNormal, EFontStyle nStyle=StyleNormal) |
Load font. | |
PLGUI_API bool | LoadFromFile (const PLCore::String &sFilename, PLCore::uint32 nHeight=0) |
Load font from file. | |
PLGUI_API FontInfo | GetFontInfo () const |
Get font information. | |
PLGUI_API PLCore::String | GetFilename () const |
Get font file name. | |
PLGUI_API PLCore::String | GetFamily () const |
Get font family. | |
PLGUI_API void | SetFamily (const PLCore::String &sFamily) |
Set font family. | |
PLGUI_API PLCore::uint32 | GetHeight () const |
Get font height. | |
PLGUI_API void | SetHeight (PLCore::uint32 nHeight) |
Set font height. | |
PLGUI_API EFontWeight | GetWeight () const |
Get font weight. | |
PLGUI_API void | SetWeight (EFontWeight nWeight) |
Set font weight. | |
PLGUI_API EFontStyle | GetStyle () const |
Get font style. | |
PLGUI_API void | SetStyle (EFontStyle nStyle) |
Set font style. | |
Protected Attributes | |
Gui * | m_pGui |
FontImpl * | m_pFontImpl |
PLCore::String | m_sFamily |
PLCore::uint32 | m_nHeight |
EFontWeight | m_nWeight |
EFontStyle | m_nStyle |
PLCore::String | m_sFilename |
Font class.
PLGUI_API PLGui::Font::Font | ( | Gui & | cGui | ) |
Constructor.
[in] | cGui | Owner GUI |
PLGUI_API PLGui::Font::Font | ( | Gui & | cGui, |
const PLCore::String & | sFamily, | ||
PLCore::uint32 | nHeight = 0 , |
||
EFontWeight | nWeight = WeightNormal , |
||
EFontStyle | nStyle = StyleNormal |
||
) |
Constructor.
[in] | cGui | Owner GUI |
[in] | sFamily | Font family name |
[in] | nHeight | Font height |
[in] | nWeight | Font weight ( |
[in] | nStyle | Font style |
PLGUI_API PLGui::Font::Font | ( | Gui & | cGui, |
const FontInfo & | cFontInfo | ||
) |
Constructor.
[in] | cGui | Owner GUI |
[in] | cFontInfo | Font information |
PLGUI_API PLGui::Font::Font | ( | const Font & | cFont | ) |
Copy constructor.
[in] | cFont | Font that is copied |
PLGUI_API PLGui::Font::~Font | ( | ) |
Destructor.
Assignment operator.
[in] | cFont | Font that is copied |
PLGUI_API Gui* PLGui::Font::GetGui | ( | ) | const |
Get owner GUI.
PLGUI_API FontImpl* PLGui::Font::GetImpl | ( | ) | const |
Get implementation.
PLGUI_API bool PLGui::Font::Load | ( | const PLCore::String & | sFamily, |
PLCore::uint32 | nHeight = 0 , |
||
EFontWeight | nWeight = WeightNormal , |
||
EFontStyle | nStyle = StyleNormal |
||
) |
Load font.
[in] | nStyle | Font style |
PLGUI_API bool PLGui::Font::LoadFromFile | ( | const PLCore::String & | sFilename, |
PLCore::uint32 | nHeight = 0 |
||
) |
PLGUI_API FontInfo PLGui::Font::GetFontInfo | ( | ) | const |
Get font information.
PLGUI_API PLCore::String PLGui::Font::GetFilename | ( | ) | const |
Get font file name.
PLGUI_API PLCore::String PLGui::Font::GetFamily | ( | ) | const |
Get font family.
PLGUI_API void PLGui::Font::SetFamily | ( | const PLCore::String & | sFamily | ) |
Set font family.
[in] | sFamily | Font family name |
PLGUI_API PLCore::uint32 PLGui::Font::GetHeight | ( | ) | const |
Get font height.
PLGUI_API void PLGui::Font::SetHeight | ( | PLCore::uint32 | nHeight | ) |
Set font height.
[in] | nHeight | Font height |
PLGUI_API EFontWeight PLGui::Font::GetWeight | ( | ) | const |
Get font weight.
PLGUI_API void PLGui::Font::SetWeight | ( | EFontWeight | nWeight | ) |
PLGUI_API EFontStyle PLGui::Font::GetStyle | ( | ) | const |
Get font style.
PLGUI_API void PLGui::Font::SetStyle | ( | EFontStyle | nStyle | ) |
Set font style.
[in] | nStyle | Font style |
Gui* PLGui::Font::m_pGui [protected] |
Pointer to GUI
FontImpl* PLGui::Font::m_pFontImpl [protected] |
Font implementation
PLCore::String PLGui::Font::m_sFamily [protected] |
Font family
PLCore::uint32 PLGui::Font::m_nHeight [protected] |
Font height
EFontWeight PLGui::Font::m_nWeight [protected] |
Font weight
EFontStyle PLGui::Font::m_nStyle [protected] |
Font style (normal, italics, ...)
PLCore::String PLGui::Font::m_sFilename [protected] |
Filename for directly loaded fonts
|