neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::units_converter Class Reference

#include <units.hpp>

Classes

struct  bad_parameter
 

Public Member Functions

 units_converter ()=delete
 
 units_converter (i_units_context const &aContext)
 
 units_converter (i_units_context const &aContext, neogfx::units aUnits)
 
 ~units_converter ()
 
neogfx::units units () const
 
void set_units (neogfx::units aUnits)
 
vector2 to_device_units (const vector2 &aValue) const
 
dimension to_device_units (dimension aValue) const
 
delta to_device_units (const delta &aValue) const
 
size to_device_units (const size &aValue) const
 
point to_device_units (const point &aValue) const
 
rect to_device_units (const rect &aValue) const
 
padding to_device_units (const padding &aValue) const
 
vector2 to_device_units (const size &aExtents, const vector2 &aValue) const
 
dimension to_device_units (const size &aExtents, dimension aValue) const
 
delta to_device_units (const size &aExtents, const delta &aValue) const
 
size to_device_units (const size &aExtents, const size &aValue) const
 
point to_device_units (const size &aExtents, const point &aValue) const
 
rect to_device_units (const size &aExtents, const rect &aValue) const
 
vector2 from_device_units (const vector2 &aValue) const
 
dimension from_device_units (dimension aValue) const
 
delta from_device_units (const delta &aValue) const
 
size from_device_units (const size &aValue) const
 
point from_device_units (const point &aValue) const
 
rect from_device_units (const rect &aValue) const
 
padding from_device_units (const padding &aValue) const
 
vector2 from_device_units (const size &aExtents, const vector2 &aValue) const
 
dimension from_device_units (const size &aExtents, dimension aValue) const
 
delta from_device_units (const size &aExtents, const delta &aValue) const
 
size from_device_units (const size &aExtents, const size &aValue) const
 
point from_device_units (const size &aExtents, const point &aValue) const
 
rect from_device_units (const size &aExtents, const rect &aValue) const
 
template<typename T , uint32_t D>
basic_vector< T, Dto_device_units (const basic_vector< T, D > &aValue)
 
template<typename T , uint32_t D>
basic_vector< T, Dto_device_units (const size &aExtents, const basic_vector< T, D > &aValue)
 
template<typename T , uint32_t D>
basic_vector< T, Dfrom_device_units (const basic_vector< T, D > &aValue)
 
template<typename T , uint32_t D>
basic_vector< T, Dfrom_device_units (const size &aExtents, const basic_vector< T, D > &aValue)
 

Detailed Description

Definition at line 327 of file units.hpp.

Constructor & Destructor Documentation

◆ units_converter() [1/3]

neogfx::units_converter::units_converter ( )
delete

◆ units_converter() [2/3]

neogfx::units_converter::units_converter ( i_units_context const &  aContext)

◆ units_converter() [3/3]

neogfx::units_converter::units_converter ( i_units_context const &  aContext,
neogfx::units  aUnits 
)

◆ ~units_converter()

neogfx::units_converter::~units_converter ( )

Member Function Documentation

◆ from_device_units() [1/15]

template<typename T , uint32_t D>
basic_vector< T, D > neogfx::units_converter::from_device_units ( const basic_vector< T, D > &  aValue)
inline

Definition at line 386 of file units.hpp.

◆ from_device_units() [2/15]

delta neogfx::units_converter::from_device_units ( const delta aValue) const

◆ from_device_units() [3/15]

padding neogfx::units_converter::from_device_units ( const padding aValue) const

◆ from_device_units() [4/15]

point neogfx::units_converter::from_device_units ( const point aValue) const

◆ from_device_units() [5/15]

rect neogfx::units_converter::from_device_units ( const rect aValue) const

◆ from_device_units() [6/15]

template<typename T , uint32_t D>
basic_vector< T, D > neogfx::units_converter::from_device_units ( const size aExtents,
const basic_vector< T, D > &  aValue 
)
inline

Definition at line 394 of file units.hpp.

◆ from_device_units() [7/15]

delta neogfx::units_converter::from_device_units ( const size aExtents,
const delta aValue 
) const

◆ from_device_units() [8/15]

point neogfx::units_converter::from_device_units ( const size aExtents,
const point aValue 
) const

◆ from_device_units() [9/15]

rect neogfx::units_converter::from_device_units ( const size aExtents,
const rect aValue 
) const

◆ from_device_units() [10/15]

size neogfx::units_converter::from_device_units ( const size aExtents,
const size aValue 
) const

◆ from_device_units() [11/15]

vector2 neogfx::units_converter::from_device_units ( const size aExtents,
const vector2 aValue 
) const

◆ from_device_units() [12/15]

dimension neogfx::units_converter::from_device_units ( const size aExtents,
dimension  aValue 
) const

◆ from_device_units() [13/15]

size neogfx::units_converter::from_device_units ( const size aValue) const

◆ from_device_units() [14/15]

vector2 neogfx::units_converter::from_device_units ( const vector2 aValue) const

◆ from_device_units() [15/15]

dimension neogfx::units_converter::from_device_units ( dimension  aValue) const

◆ set_units()

void neogfx::units_converter::set_units ( neogfx::units  aUnits)

◆ to_device_units() [1/15]

template<typename T , uint32_t D>
basic_vector< T, D > neogfx::units_converter::to_device_units ( const basic_vector< T, D > &  aValue)
inline

Definition at line 370 of file units.hpp.

◆ to_device_units() [2/15]

delta neogfx::units_converter::to_device_units ( const delta aValue) const

◆ to_device_units() [3/15]

padding neogfx::units_converter::to_device_units ( const padding aValue) const

◆ to_device_units() [4/15]

point neogfx::units_converter::to_device_units ( const point aValue) const

◆ to_device_units() [5/15]

rect neogfx::units_converter::to_device_units ( const rect aValue) const

◆ to_device_units() [6/15]

template<typename T , uint32_t D>
basic_vector< T, D > neogfx::units_converter::to_device_units ( const size aExtents,
const basic_vector< T, D > &  aValue 
)
inline

Definition at line 378 of file units.hpp.

◆ to_device_units() [7/15]

delta neogfx::units_converter::to_device_units ( const size aExtents,
const delta aValue 
) const

◆ to_device_units() [8/15]

point neogfx::units_converter::to_device_units ( const size aExtents,
const point aValue 
) const

◆ to_device_units() [9/15]

rect neogfx::units_converter::to_device_units ( const size aExtents,
const rect aValue 
) const

◆ to_device_units() [10/15]

size neogfx::units_converter::to_device_units ( const size aExtents,
const size aValue 
) const

◆ to_device_units() [11/15]

vector2 neogfx::units_converter::to_device_units ( const size aExtents,
const vector2 aValue 
) const

◆ to_device_units() [12/15]

dimension neogfx::units_converter::to_device_units ( const size aExtents,
dimension  aValue 
) const

◆ to_device_units() [13/15]

size neogfx::units_converter::to_device_units ( const size aValue) const

◆ to_device_units() [14/15]

vector2 neogfx::units_converter::to_device_units ( const vector2 aValue) const

◆ to_device_units() [15/15]

dimension neogfx::units_converter::to_device_units ( dimension  aValue) const

◆ units()

neogfx::units neogfx::units_converter::units ( ) const

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