neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
units.hpp File Reference

Go to the source code of this file.

Classes

class  neogfx::i_units_context
 
class  neogfx::scoped_units_context
 
class  neogfx::basic_scoped_units< Units >
 
struct  neogfx::basic_scoped_units< Units >::units_scope_ended
 
class  neogfx::basic_length< T >
 
struct  neogfx::basic_length< T >::unknown_unit
 
class  neogfx::units_converter
 
struct  neogfx::units_converter::bad_parameter
 

Namespaces

namespace  neogfx
 
namespace  neogfx::unit_literals
 

Typedefs

typedef basic_length< default_geometry_value_typeneogfx::length
 
typedef basic_scoped_units< unitsneogfx::scoped_units
 

Enumerations

enum class  neogfx::units {
  neogfx::Pixels , neogfx::Default = Pixels , neogfx::ScaledPixels , neogfx::Points ,
  neogfx::Picas , neogfx::Ems , neogfx::Millimetres , neogfx::Millimeters = units::Millimetres ,
  neogfx::Centimetres , neogfx::Centimeters = units::Centimetres , neogfx::Inches , neogfx::Percentage ,
  neogfx::NoUnitsAsMaximumLength
}
 

Functions

template<typename T >
neogfx::convert_units (i_units_context const &aUnitsContext, units aSourceUnits, units aDestinationUnits, const T &aValue)
 
template<typename T >
neogfx::from_units (i_units_context const &aSourceUnitsContext, units aUnits, const T &aValue)
 
template<typename T >
neogfx::from_units (units aUnits, const T &aValue)
 
template<typename T >
neogfx::to_units (i_units_context const &aSourceUnitsContext, units aNewUnits, const T &aValue)
 
template<typename T >
neogfx::to_units (units aNewUnits, const T &aValue)
 
template<typename T >
neogfx::convert_units (i_units_context const &aSourceUnitsContext, i_units_context const &aDestinationUnitsContext, units aSourceUnits, units aDestinationUnits, const T &aValue)
 
template<typename T >
neogfx::from_px (T aValue)
 
template<typename T >
neogfx::from_dip (T aValue)
 
template<typename T >
neogfx::from_pt (T aValue)
 
template<typename T >
neogfx::from_pc (T aValue)
 
template<typename T >
neogfx::from_em (T aValue)
 
template<typename T >
neogfx::from_mm (T aValue)
 
template<typename T >
neogfx::from_cm (T aValue)
 
template<typename T >
neogfx::from_in (T aValue)
 
template<typename T >
neogfx::from_pct (T aValue)
 
template<typename ResultT , typename T >
ResultT neogfx::from_px (T aValue)
 
template<typename ResultT , typename T >
ResultT neogfx::from_dip (T aValue)
 
template<typename ResultT , typename T >
ResultT neogfx::from_pt (T aValue)
 
template<typename ResultT , typename T >
ResultT neogfx::from_pc (T aValue)
 
template<typename ResultT , typename T >
ResultT neogfx::from_em (T aValue)
 
template<typename ResultT , typename T >
ResultT neogfx::from_mm (T aValue)
 
template<typename ResultT , typename T >
ResultT neogfx::from_cm (T aValue)
 
template<typename ResultT , typename T >
ResultT neogfx::from_in (T aValue)
 
template<typename ResultT , typename T >
ResultT neogfx::from_pct (T aValue)
 
template<typename T >
neogfx::to_px (T aValue)
 
template<typename T >
neogfx::to_dip (T aValue)
 
template<typename T >
neogfx::to_pt (T aValue)
 
template<typename T >
neogfx::to_pc (T aValue)
 
template<typename T >
neogfx::to_em (T aValue)
 
template<typename T >
neogfx::to_mm (T aValue)
 
template<typename T >
neogfx::to_cm (T aValue)
 
template<typename T >
neogfx::to_in (T aValue)
 
template<typename T >
neogfx::to_pct (T aValue)
 
template<typename ResultT , typename T >
ResultT neogfx::to_px (T aValue)
 
template<typename ResultT , typename T >
ResultT neogfx::to_dip (T aValue)
 
template<typename ResultT , typename T >
ResultT neogfx::to_pt (T aValue)
 
template<typename ResultT , typename T >
ResultT neogfx::to_pc (T aValue)
 
template<typename ResultT , typename T >
ResultT neogfx::to_em (T aValue)
 
template<typename ResultT , typename T >
ResultT neogfx::to_mm (T aValue)
 
template<typename ResultT , typename T >
ResultT neogfx::to_cm (T aValue)
 
template<typename ResultT , typename T >
ResultT neogfx::to_in (T aValue)
 
template<typename ResultT , typename T >
ResultT neogfx::to_pct (T aValue)
 
template<typename T >
basic_length< T > neogfx::px (T aValue)
 
template<typename T >
basic_length< T > neogfx::dip (T aValue)
 
template<typename T >
basic_length< T > neogfx::pt (T aValue)
 
template<typename T >
basic_length< T > neogfx::pc (T aValue)
 
template<typename T >
basic_length< T > neogfx::em (T aValue)
 
template<typename T >
basic_length< T > neogfx::mm (T aValue)
 
template<typename T >
basic_length< T > neogfx::cm (T aValue)
 
template<typename T >
basic_length< T > neogfx::in (T aValue)
 
template<typename T >
basic_length< T > neogfx::pct (T aValue)
 
template<typename T >
neogfx::ceil_rasterized (T aValue)
 
template<typename T >
basic_delta< T > neogfx::ceil_rasterized (const basic_delta< T > &aDelta)
 
template<typename T >
basic_size< T > neogfx::ceil_rasterized (const basic_size< T > &aSize)
 
template<typename T >
basic_point< T > neogfx::ceil_rasterized (const basic_point< T > &aPoint)
 
template<typename T >
basic_box_areas< T > neogfx::ceil_rasterized (const basic_box_areas< T > &aAreas)
 
template<typename T >
basic_rect< T > neogfx::ceil_rasterized (const basic_rect< T > &aRect)
 
template<typename T >
neogfx::ceil_rasterized (const basic_length< T > &aLength)
 
template<typename T >
neogfx::floor_rasterized (T aValue)
 
template<typename T >
basic_delta< T > neogfx::floor_rasterized (const basic_delta< T > &aDelta)
 
template<typename T >
basic_size< T > neogfx::floor_rasterized (const basic_size< T > &aSize)
 
template<typename T >
basic_point< T > neogfx::floor_rasterized (const basic_point< T > &aPoint)
 
template<typename T >
basic_rect< T > neogfx::floor_rasterized (const basic_rect< T > &aRect)
 
template<typename T >
neogfx::floor_rasterized (const basic_length< T > &aLength)
 
basic_length< default_geometry_value_typeneogfx::unit_literals::operator""_px (long double aValue)
 
basic_length< default_geometry_value_typeneogfx::unit_literals::operator""_dip (long double aValue)
 
basic_length< default_geometry_value_typeneogfx::unit_literals::operator""_dp (long double aValue)
 
basic_length< default_geometry_value_typeneogfx::unit_literals::operator""_pt (long double aValue)
 
basic_length< default_geometry_value_typeneogfx::unit_literals::operator""_pc (long double aValue)
 
basic_length< default_geometry_value_typeneogfx::unit_literals::operator""_em (long double aValue)
 
basic_length< default_geometry_value_typeneogfx::unit_literals::operator""_mm (long double aValue)
 
basic_length< default_geometry_value_typeneogfx::unit_literals::operator""_cm (long double aValue)
 
basic_length< default_geometry_value_typeneogfx::unit_literals::operator""_in (long double aValue)
 
basic_length< default_geometry_value_typeneogfx::unit_literals::operator""_pct (long double aValue)
 
basic_length< default_geometry_value_typeneogfx::unit_literals::operator""_px (unsigned long long int aValue)
 
basic_length< default_geometry_value_typeneogfx::unit_literals::operator""_dip (unsigned long long int aValue)
 
basic_length< default_geometry_value_typeneogfx::unit_literals::operator""_dp (unsigned long long int aValue)
 
basic_length< default_geometry_value_typeneogfx::unit_literals::operator""_pt (unsigned long long int aValue)
 
basic_length< default_geometry_value_typeneogfx::unit_literals::operator""_pc (unsigned long long int aValue)
 
basic_length< default_geometry_value_typeneogfx::unit_literals::operator""_em (unsigned long long int aValue)
 
basic_length< default_geometry_value_typeneogfx::unit_literals::operator""_mm (unsigned long long int aValue)
 
basic_length< default_geometry_value_typeneogfx::unit_literals::operator""_cm (unsigned long long int aValue)
 
basic_length< default_geometry_value_typeneogfx::unit_literals::operator""_in (unsigned long long int aValue)
 
basic_length< default_geometry_value_typeneogfx::unit_literals::operator""_pct (unsigned long long int aValue)