MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
TypeSetter.hpp File Reference
#include "GlyphAtlas.hpp"
+ Include dependency graph for TypeSetter.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MayaFlux::Portal::Text::CopiedText
 Result of copy(): a byte range's text plus the quads that render it. More...
 
struct  MayaFlux::Portal::Text::GlyphQuad
 Screen-space quad for one rasterized glyph. More...
 
struct  MayaFlux::Portal::Text::LayoutResult
 Result of lay_out(), carrying the quads and the final pen position. More...
 
struct  MayaFlux::Portal::Text::PenPosition
 Pen coordinates returned by x_at(), in the same space as GlyphQuad. More...
 

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
 
namespace  MayaFlux::Portal
 
namespace  MayaFlux::Portal::Text
 

Functions

CopiedText MayaFlux::Portal::Text::copy (std::string_view text, const LayoutResult &layout, size_t a, size_t b)
 Copy a byte range: the text it spans, and the quads that render it.
 
std::string MayaFlux::Portal::Text::encode_utf8 (uint32_t codepoint)
 Encode a Unicode codepoint as a UTF-8 byte sequence.
 
size_t MayaFlux::Portal::Text::index_at (std::string_view text, const LayoutResult &layout, GlyphAtlas &atlas, float x, float y, float pen_x=0.F, float pen_y=0.F, uint32_t wrap_w=0, uint32_t tab_width=4)
 Byte offset of the codepoint boundary nearest a screen-space point.
 
bool MayaFlux::Portal::Text::is_control (uint32_t codepoint) noexcept
 True if a codepoint must never be rasterized or treated as printable content.
 
LayoutResult MayaFlux::Portal::Text::lay_out (std::string_view text, GlyphAtlas &atlas, float pen_x=0.F, float pen_y=0.F, uint32_t wrap_w=0, uint32_t tab_width=4)
 Lay out a UTF-8 string into a sequence of screen-space quads.
 
size_t MayaFlux::Portal::Text::next_codepoint_offset (std::string_view text, size_t byte_offset)
 Byte offset of the codepoint boundary after byte_offset.
 
size_t MayaFlux::Portal::Text::previous_codepoint_offset (std::string_view text, size_t byte_offset)
 Byte offset of the codepoint boundary before byte_offset.
 
PenPosition MayaFlux::Portal::Text::x_at (std::string_view text, GlyphAtlas &atlas, size_t byte_offset, float pen_x=0.F, float pen_y=0.F, uint32_t wrap_w=0, uint32_t tab_width=4)
 Pen position immediately before byte_offset, in lay_out()'s space.