|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| Kinesis::AABB2D MayaFlux::Portal::Text::TextRun::caret | ( | size_t | byte_offset, |
| float | width_px | ||
| ) |
Pixel rectangle of a caret at a byte offset of the text.
Spans one line height on the line the offset falls on, in layout pixels with y down, so min.y is the top.
| byte_offset | Codepoint boundary in the text. |
| width_px | Caret width in pixels. |
Definition at line 108 of file TextRun.cpp.
References MayaFlux::Portal::Text::GlyphAtlas::ascender(), atlas(), current, lay_out_text(), m_atlas, m_params, m_text, MayaFlux::Portal::Text::PressParams::render_bounds, stale(), MayaFlux::Portal::Text::PenPosition::x, MayaFlux::Portal::Text::x_at(), and MayaFlux::Portal::Text::PenPosition::y.
Here is the call graph for this function: