#if defined(Hiro_Monitor) struct Monitor { Monitor() = delete; static auto count() -> uint; static auto dpi(maybe monitor = nothing) -> Position; static auto geometry(maybe monitor = nothing) -> Geometry; static auto primary() -> uint; static auto workspace(maybe monitor = nothing) -> Geometry; }; //DPI scale X inline auto sx(float x) -> float { static auto scale = Monitor::dpi().x() / 96.0; return x * scale; } //DPI scale y inline auto sy(float y) -> float { static auto scale = Monitor::dpi().y() / 96.0; return y * scale; } inline auto operator"" _sx(unsigned long long x) -> float { return sx(x); } inline auto operator"" _sy(unsigned long long y) -> float { return sy(y); } #endif