| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/text/fontsize.h>

Public Member Functions | |
| FontSize () | |
| Constructor. | |
| FontSize (float value, bool absolute) | |
| Constructor. | |
| FontSize (SO< FontSize > size) | |
| Copy Constructor. | |
| virtual | ~FontSize () |
| Destructor. | |
| float | toPoint (unsigned int dpi) const |
| Returns the value of this FontSize in point. | |
| float | toPixel (unsigned int dpi) const |
| Returns the value of this FontSize in pixel. | |
| float | toMillimeter (unsigned int dpi) const |
| Returns the value of this FontSize in millimeters. | |
| float | toInch (unsigned int dpi) const |
| Returns the value of this FontSize in inch. | |
| float | toCentimeter (unsigned int dpi) const |
| Returns the value of this FontSize in centimeters. | |
| bool | isAbsolute () const |
| Returns if the size is absolute, meaning pixel-sized. | |
| float | getSizeValue () const |
| Returns the size (if absolute it represents pixels, otherwise points). | |
| VRS_TYPEINFO (FontSize, SharedObj) | |
| VRS_SERIALIZABLE (FontSize) | |
Static Public Member Functions | |
| static SO< FontSize > | fromPoint (float points) |
| Creates a FontSize from the given points. | |
| static SO< FontSize > | fromPixel (float pixels) |
| Creates a FontSize from the given pixels. | |
| static SO< FontSize > | fromMillimeter (float mm) |
| Creates a FontSize from the given mm. | |
| static SO< FontSize > | fromInch (float inch) |
| Creates a FontSize from the given inch. | |
| static SO< FontSize > | fromCentimeter (float cm) |
| Creates a FontSize from the given cm. | |
| VRS::TEXT::FontSize::FontSize | ( | ) |
Constructor.
| VRS::TEXT::FontSize::FontSize | ( | float | value, | |
| bool | absolute | |||
| ) |
Constructor.
| virtual VRS::TEXT::FontSize::~FontSize | ( | ) | [virtual] |
Destructor.
Creates a FontSize from the given points.
Creates a FontSize from the given pixels.
Creates a FontSize from the given mm.
Creates a FontSize from the given inch.
Creates a FontSize from the given cm.
| float VRS::TEXT::FontSize::toPoint | ( | unsigned int | dpi | ) | const |
Returns the value of this FontSize in point.
| float VRS::TEXT::FontSize::toPixel | ( | unsigned int | dpi | ) | const |
Returns the value of this FontSize in pixel.
| float VRS::TEXT::FontSize::toMillimeter | ( | unsigned int | dpi | ) | const |
Returns the value of this FontSize in millimeters.
| float VRS::TEXT::FontSize::toInch | ( | unsigned int | dpi | ) | const |
Returns the value of this FontSize in inch.
| float VRS::TEXT::FontSize::toCentimeter | ( | unsigned int | dpi | ) | const |
Returns the value of this FontSize in centimeters.
| bool VRS::TEXT::FontSize::isAbsolute | ( | ) | const |
Returns if the size is absolute, meaning pixel-sized.
| float VRS::TEXT::FontSize::getSizeValue | ( | ) | const |
Returns the size (if absolute it represents pixels, otherwise points).
| VRS::TEXT::FontSize::VRS_SERIALIZABLE | ( | FontSize | ) |