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

#include <units.hpp>

Inheritance diagram for neogfx::i_units_context:
neogfx::i_graphics_context neogfx::i_surface neogfx::graphics_context neogfx::i_surface_window

Public Member Functions

virtual ~i_units_context ()
 
virtual bool device_metrics_available () const =0
 
virtual const i_device_metricsdevice_metrics () const =0
 
dimension x2_dpi_scale_factor () const
 
dimension xn_dpi_scale_factor () const
 
dimension dpi_scale_factor () const
 
template<typename T >
std::enable_if_t< std::is_scalar_v< T >, T > dpi_scale (T aValue) const
 
dimension dpi_scale (dimension aValue) const
 
vector2 dpi_scale (const vector2 &aVector) const
 
size dpi_scale (const size &aSize) const
 
delta dpi_scale (const delta &aDelta) const
 
point dpi_scale (const point &aPoint) const
 
padding dpi_scale (const padding &aPadding) const
 
template<typename T >
T && dpi_select (T &&aLowDpiValue, T &&aHighDpiValue) const
 

Detailed Description

Definition at line 46 of file units.hpp.

Constructor & Destructor Documentation

◆ ~i_units_context()

neogfx::i_units_context::~i_units_context ( )
inlinevirtual

Definition at line 137 of file units.hpp.

Member Function Documentation

◆ device_metrics()

virtual const i_device_metrics & neogfx::i_units_context::device_metrics ( ) const
pure virtual

Implemented in neogfx::graphics_context.

◆ device_metrics_available()

virtual bool neogfx::i_units_context::device_metrics_available ( ) const
pure virtual

Implemented in neogfx::graphics_context.

◆ dpi_scale() [1/7]

delta neogfx::i_units_context::dpi_scale ( const delta aDelta) const
inline

Definition at line 94 of file units.hpp.

◆ dpi_scale() [2/7]

padding neogfx::i_units_context::dpi_scale ( const padding aPadding) const
inline

Definition at line 107 of file units.hpp.

◆ dpi_scale() [3/7]

point neogfx::i_units_context::dpi_scale ( const point aPoint) const
inline

Definition at line 103 of file units.hpp.

◆ dpi_scale() [4/7]

size neogfx::i_units_context::dpi_scale ( const size aSize) const
inline

Definition at line 85 of file units.hpp.

◆ dpi_scale() [5/7]

vector2 neogfx::i_units_context::dpi_scale ( const vector2 aVector) const
inline

Definition at line 81 of file units.hpp.

◆ dpi_scale() [6/7]

dimension neogfx::i_units_context::dpi_scale ( dimension  aValue) const
inline

Definition at line 77 of file units.hpp.

◆ dpi_scale() [7/7]

template<typename T >
std::enable_if_t< std::is_scalar_v< T >, T > neogfx::i_units_context::dpi_scale ( aValue) const
inline

Definition at line 73 of file units.hpp.

◆ dpi_scale_factor()

dimension neogfx::i_units_context::dpi_scale_factor ( ) const
inline

Definition at line 65 of file units.hpp.

◆ dpi_select()

template<typename T >
T && neogfx::i_units_context::dpi_select ( T &&  aLowDpiValue,
T &&  aHighDpiValue 
) const
inline

Definition at line 112 of file units.hpp.

◆ x2_dpi_scale_factor()

dimension neogfx::i_units_context::x2_dpi_scale_factor ( ) const
inline

Definition at line 55 of file units.hpp.

◆ xn_dpi_scale_factor()

dimension neogfx::i_units_context::xn_dpi_scale_factor ( ) const
inline

Definition at line 60 of file units.hpp.


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