JNGL
ScaleablePixels.hpp
Go to the documentation of this file.
1 // Copyright 2021 Jan Niklas Hasse <[email protected]>
2 // For conditions of distribution and use, see copyright notice in LICENSE.txt
5 #pragma once
6 
7 namespace jngl {
8 
9 class Pixels;
10 
13 public:
14  explicit ScaleablePixels(double);
15 
16  explicit operator double() const;
17 
18  explicit operator Pixels() const;
19 
20 private:
21  double value;
22 };
23 
24 } // namespace jngl
25 
26 jngl::ScaleablePixels operator"" _sp(long double);
Scale-dependent pixels, corresponds to actual pixels on the screen.
Definition: Pixels.hpp:14
Scale-independent pixels, see jngl::getScaleFactor()
JNGL's main namespace.
Definition: App.hpp:10