libsub
 All Classes Files Functions Variables
Public Member Functions | List of all members
sub::FontSize Class Reference

A description of a font's size in one of a number of ways. More...

#include <font_size.h>

Public Member Functions

void set_proportional (float p)
 
void set_points (int p)
 
boost::optional< float > proportional () const
 
boost::optional< int > points () const
 
float proportional (int screen_height_in_points) const
 
int points (int screen_height_in_points) const
 

Detailed Description

A description of a font's size in one of a number of ways.

An object of this class holds a font's size in one way, and it can convert to another on supply of the required conversion parameters.


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