Photon microGUI widgets library 0.6.0
|
Defines a group of type faces having a similar basic design and certain variations in styles. This class cannot be inherited. More...
#include <Font.h>
Public Member Functions | |
FontFamily (GenericFontFamilies::eGenericFontFamilies ffamily) | |
(constructor) More... | |
FontFamily (const FontDetails &fdetails) | |
(constructor) More... | |
FontFamily (std::string name) | |
(constructor) More... | |
FontFamily (std::string name, const FontCollection &fcollection) | |
(constructor) More... | |
FontFamily (const FontFamily &other) | |
(copy constructor) More... | |
FontFamily & | operator= (const FontFamily &other) |
Assigns value in FontFamily. More... | |
bool | operator== (const FontFamily &other) const |
Compares FontFamilys. More... | |
bool | operator!= (const FontFamily &other) const |
Compares FontFamilys. More... | |
bool | operator< (const FontFamily &other) const |
Compares FontFamilys. More... | |
int | GetLineSpacing (typedefs::font_style_bitmask fstyle) const |
bool | IsStyleAvailable (typedefs::font_style_bitmask fstyle) const |
Indicates whether the specified FontStyle::eFontStyle enumeration is available. More... | |
Public Attributes | |
const std::string & | Name |
Gets the name of this FontFamily. More... | |
Defines a group of type faces having a similar basic design and certain variations in styles. This class cannot be inherited.
PhWidgets::Drawing::FontFamily::FontFamily | ( | GenericFontFamilies::eGenericFontFamilies | ffamily | ) |
(constructor)
Initializes a new FontFamily from the specified generic font family.
[in] | ffamily | The GenericFontFamilies::eGenericFontFamilies from which to create the new FontFamily. |
std::invalid_argument |
PhWidgets::Drawing::FontFamily::FontFamily | ( | const FontDetails & | fdetails | ) |
(constructor)
Initializes a new FontFamily from the specified photon FontDetails.
[in] | fdetails | The FontDetails from which to create the new FontFamily. |
std::invalid_argument |
PhWidgets::Drawing::FontFamily::FontFamily | ( | std::string | name | ) |
(constructor)
Initializes a new FontFamily with the specified name.
[in] | name | The name of the new FontFamily. |
std::invalid_argument |
PhWidgets::Drawing::FontFamily::FontFamily | ( | std::string | name, |
const FontCollection & | fcollection | ||
) |
(constructor)
Initializes a new FontFamily with the specified name.
[in] | name | A std::string that represents the name of the new FontFamily. |
[in] | fcollection | The FontCollection that contains this FontFamily. |
std::invalid_argument |
PhWidgets::Drawing::FontFamily::FontFamily | ( | const FontFamily & | other | ) |
(copy constructor)
Constructs a FontFamily by copy.
[in] | other | another FontFamily to be used as source to initialize the elements of the container with. |
int PhWidgets::Drawing::FontFamily::GetLineSpacing | ( | typedefs::font_style_bitmask | fstyle | ) | const |
Returns the line spacing, in design units, of the FontFamily of the specified style. The line spacing is the vertical distance between the base lines of two consecutive lines of text.
[in] | fstyle | The FontStyle::eFontStyle to apply. |
bool PhWidgets::Drawing::FontFamily::IsStyleAvailable | ( | typedefs::font_style_bitmask | fstyle | ) | const |
Indicates whether the specified FontStyle::eFontStyle enumeration is available.
[in] | fstyle | The FontStyle::eFontStyle to test. |
bool PhWidgets::Drawing::FontFamily::operator!= | ( | const FontFamily & | other | ) | const |
Compares FontFamilys.
Compares the FontFamilys by their Photon FontDetails.
[in] | other | FontFamily whose contents to compare. |
bool PhWidgets::Drawing::FontFamily::operator< | ( | const FontFamily & | other | ) | const |
Compares FontFamilys.
Compares the FontFamilys by their Photon FontDetails.
[in] | other | FontFamily whose contents to compare. |
FontFamily & PhWidgets::Drawing::FontFamily::operator= | ( | const FontFamily & | other | ) |
Assigns value in FontFamily.
Replaces the contents of the FontFamily.
[in] | other | another FontFamily to use as data source. |
bool PhWidgets::Drawing::FontFamily::operator== | ( | const FontFamily & | other | ) | const |
Compares FontFamilys.
Compares the FontFamilys by their Photon FontDetails.
[in] | other | FontFamily whose contents to compare. |
const std::string& PhWidgets::Drawing::FontFamily::Name |
Gets the name of this FontFamily.
std::string
A std::string
that represents the name of this FontFamily.