1.1.0
Public Member Functions | Public Attributes | List of all members
fc::font_size Struct Reference

A wrapper class for fc_font_size. More...

#include <font-size.hpp>

Public Member Functions

 font_size ()
 
 font_size (fc_font_size const &fs)
 Creates a fc::font_size instance from a fc_font_size structure, copying its contents. More...
 
 font_size (font_size const &other)=default
 Default copy-constructor for fc::font_size. More...
 
 font_size (float value, enum fc_font_size_type type)
 Constructs a font size from a value and a type. More...
 

Public Attributes

fc_font_size data
 the actual fc_font_size data. You can and are encouraged to use it directly, if needed.
 

Detailed Description

A wrapper class for fc_font_size.

Constructor & Destructor Documentation

◆ font_size() [1/4]

fc::font_size::font_size ( )
inline

Empty font_size constructor

◆ font_size() [2/4]

fc::font_size::font_size ( fc_font_size const &  fs)
inline

Creates a fc::font_size instance from a fc_font_size structure, copying its contents.

This constructor exists mainly to provide implicit automatic conversion from fc_font_size to fc::font_size

Parameters
fsthe fc_font_size value to copy from
See also
fc_px
fc_pt

◆ font_size() [3/4]

fc::font_size::font_size ( font_size const &  other)
default

Default copy-constructor for fc::font_size.

Parameters
otherThe fc::font_size instance to copy from

◆ font_size() [4/4]

fc::font_size::font_size ( float  value,
enum fc_font_size_type  type 
)
inline

Constructs a font size from a value and a type.

Parameters
valueThe value for the font-size
typeThe type (pt or px) for this instance

The documentation for this struct was generated from the following file: