.. index:: pair: class; EE::Graphics::PixelDensity .. _doxid-class_e_e_1_1_graphics_1_1_pixel_density: class EE::Graphics::PixelDensity ================================ .. toctree:: :hidden: .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class PixelDensity { public: // methods static :ref:`Float` :target:`toFloat`(:ref:`PixelDensitySize` pd); static :ref:`Float` :target:`toFloat`(:ref:`Uint32` pd); static :ref:`PixelDensitySize` :target:`fromString`(std::string str); static :ref:`PixelDensitySize` :target:`fromString`(:ref:`String` str); static :ref:`PixelDensitySize` :target:`fromDPI`(:ref:`Float` dpi); static const :ref:`Float`& :target:`getPixelDensity`(); static void :target:`setPixelDensity`(const :ref:`Float`& pixelDensity); static void :target:`setPixelDensity`(const :ref:`PixelDensitySize`& pixelDensity); static :ref:`Float` :target:`pxToDp`(:ref:`Float` px); static :ref:`Int32` :target:`pxToDpI`(:ref:`Float` px); static :ref:`Float` :target:`dpToPx`(:ref:`Float` dp); static :ref:`Int32` :target:`dpToPxI`(:ref:`Float` dp); static :ref:`Sizei` :target:`dpToPxI`(:ref:`Sizei` size); static :ref:`Sizei` :target:`pxToDpI`(:ref:`Sizei` size); static :ref:`Rect` :target:`dpToPxI`(:ref:`Rect` size); static :ref:`Rect` :target:`pxToDpI`(:ref:`Rect` size); static :ref:`Rectf` :target:`dpToPx`(:ref:`Rectf` size); static :ref:`Rectf` :target:`pxToDp`(:ref:`Rectf` size); static :ref:`Sizef` :target:`dpToPx`(:ref:`Sizef` size); static :ref:`Sizef` :target:`pxToDp`(:ref:`Sizef` size); static :ref:`Sizei` :target:`dpToPxI`(:ref:`Sizef` size); static :ref:`Sizei` :target:`pxToDpI`(:ref:`Sizef` size); static :ref:`Vector2i` :target:`dpToPxI`(:ref:`Vector2i` pos); static :ref:`Vector2i` :target:`pxToDpI`(:ref:`Vector2i` pos); static :ref:`Vector2f` :target:`dpToPx`(:ref:`Vector2f` pos); static :ref:`Vector2f` :target:`pxToDp`(:ref:`Vector2f` pos); static :ref:`Float` :target:`toDpFromString`(const std::string& str); static :ref:`Float` :target:`toDpFromStringI`(const std::string& str); };