8#include "../geometry/module.hpp"
9#include "../macros.hpp"
11hi_export_module(hikogui.font.glyph_atlas_info);
13namespace hi::inline
v1 {
15hi_export
class glyph_atlas_info {
38 [[nodiscard]]
constexpr bool empty() const noexcept
40 return size == extent2{};
43 [[nodiscard]]
constexpr operator bool() const noexcept
48 constexpr glyph_atlas_info() noexcept = default;
63 hi_axiom(position ==
floor(position));
64 hi_axiom(size ==
ceil(size));
DOXYGEN BUG.
Definition algorithm.hpp:16
constexpr T ceil(T value, T alignment) noexcept
The smallest multiple of alignment greater than or equal to value.
Definition math.hpp:130
constexpr T floor(T value, T alignment) noexcept
The greatest multiple of alignment less than or equal to value.
Definition math.hpp:119
scale2 border_scale
The scaling factor used for scaling a quad to include the border.
Definition glyph_atlas_info.hpp:30
point3 position
pixel coordinates.
Definition glyph_atlas_info.hpp:22
extent2 size
Size of the glyph in pixels in the texture map.
Definition glyph_atlas_info.hpp:26
aarectangle texture_coordinates
The position and size of the glyph in the texture in UV coordinates.
Definition glyph_atlas_info.hpp:36
A high-level geometric point Part of the high-level vec, point, mat and color types.
Definition point3.hpp:27