|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API glm::uvec2 MayaFlux::Portal::Forma::row_pixel_dims | ( | const std::shared_ptr< Core::Window > & | window, |
| float | x_min, | ||
| float | x_max, | ||
| float | row_h | ||
| ) |
Convert an NDC row rect into integer pixel dimensions.
Clamps width to at least 1 pixel and height to at least the default atlas pixel size to avoid degenerate layouts.
| window | Target window for pixel dimension calculation. |
| x_min | Left edge in NDC. |
| x_max | Right edge in NDC. |
| row_h | Row height in NDC units. |
Definition at line 12 of file Entry.cpp.
References MayaFlux::Portal::Text::TypeFaceFoundry::get_default_glyph_atlas(), h, MayaFlux::Portal::Text::TypeFaceFoundry::instance(), MayaFlux::Journal::Portal, MayaFlux::Journal::Runtime, and window.
Referenced by make_entry(), MayaFlux::Portal::Forma::Collapsible::place(), and MayaFlux::Portal::Forma::Dropdown::place().
Here is the call graph for this function:
Here is the caller graph for this function: