Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
donner::editor::SelectionChromeSnapshot::TextBoxDragPreview Struct Reference

Drag-to-create text-box preview: the live rectangle the text tool is dragging out, plus the first baseline it would create and an I-beam marker at the future caret position. Drawn as dedicated text-box chrome (crisp frame + guidance baseline + I-beam), visually distinct from the selection marquee's translucent fill + white outline. More...

#include "donner/editor/OverlayRenderer.h"

Public Member Functions

bool operator== (const TextBoxDragPreview &) const =default

Public Attributes

Box2d boxDoc
 The live drag rectangle.
Vector2d baselineStartDoc
 First-baseline segment endpoints.
Vector2d baselineEndDoc
Vector2d ibeamTopDoc
 I-beam bar endpoints at the future caret position (top, bottom).
Vector2d ibeamBottomDoc

Detailed Description

Drag-to-create text-box preview: the live rectangle the text tool is dragging out, plus the first baseline it would create and an I-beam marker at the future caret position. Drawn as dedicated text-box chrome (crisp frame + guidance baseline + I-beam), visually distinct from the selection marquee's translucent fill + white outline.


The documentation for this struct was generated from the following file: