Scoop API

scoop:scoop.graphics.text:0.1.0

scoop.graphics.text

API

  • struct CaretMove

    The preferred column survives vertical movement through shorter lines.

  • enum CaretMovement

    Physical character/word movement and explicit logical or physical line edges.

  • struct FontAxis
  • class FontCatalog

    A snapshot of system families or the actual faces stored in one font file.

  • class FontCollection

    Owns explicit font data and optional system fallback. Existing paragraphs retain a snapshot.

  • class FontFace

    Owns an exact typeface; metadata is copied and remains readable after close.

  • class FontFaceId
  • class FontFaceInfo
  • class FontFamilyId
  • struct FontFamilyInfo
  • struct FontFeature
  • class FontNamedInstance
  • enum FontSlant
  • struct FontVariation
  • enum InlineAlignment
  • struct InlineBox
  • enum InlineKey

    Identifies one occurrence in a StyledText, independently of its byte position.

  • struct InlineMetrics

    Complete measurements for one layout request; the text library owns no child resources.

  • struct InlineObject

    Content metadata; alternate text does not participate in shaping or position counting.

  • struct InlinePlacement

    None means elided; a zero-sized visible object still has Some(box).

  • class Paragraph

    Owns UTF-8 text, run settings and font sources. Each layout is an independent result.

  • class ParagraphStyle
  • class ParagraphStyleBuilder

    Mutable configuration whose later changes do not alter published values.

  • class SpanStyle

    Unspecified fields inherit; specified arrays replace the entire parent value.

  • class SpanStyleBuilder

    Mutable configuration whose later changes do not alter published values.

  • class StyledText

    Resolves inherited styles once; every Paragraph can reuse the same content.

  • class StyledTextBuilder

    Configures the complete base style and collects the paragraph's content.

  • enum TextAffinity
  • enum TextAlignment
  • enum TextBaseline
  • struct TextBox
  • class TextChildrenBuilder

    Ordered content operations shared by complete text and nested fragments.

  • enum TextDirection
  • class TextLayout

    One immutable layout snapshot; all geometry is local logical coordinates.

  • struct TextLine
  • struct TextPosition
  • struct TextRange

    Half-open UTF-8 byte range, checked against the text by layout queries.

  • class TextSpan

    A reusable immutable text description, without native resources or UI ownership.

  • class TextSpanBuilder

    Configures inherited overrides and collects one nested fragment.

  • class TextStyle

    Immutable shaping and painting settings; family order also controls explicit fallback.

  • class TextStyleBuilder

    Mutable configuration whose later changes do not alter published values.

  • function drawText

    Paints the same shaped runs used by hit testing and caret queries.

  • function logicalLineRange

    Includes the hard break and all soft-wrapped parts of a logical line.

  • function moveCaret

    Uses the actual shaped glyph edges and keeps affinity across visual lines.

  • function moveGrapheme

    Accepts scalar boundaries, including positions inside a grapheme.

  • function moveWord

    Moves to a segment edge, skipping intervening Unicode whitespace segments.

  • function paragraphStyle

    Runs the configuration once and returns an immutable ParagraphStyle description.

  • function spanStyle

    Runs the configuration once and returns an immutable SpanStyle description.

  • function styledText

    Collects text and inline objects, then normalizes one immutable description.

  • function textSpan

    Creates a reusable styled fragment without allocating native text resources.

  • function textStyle

    Runs the configuration once and returns an immutable TextStyle description.

  • function wordRange

    Unicode word segment containing a scalar position; affinity resolves an exact boundary.