Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
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 &other) const =default
 Compare all members for value equality.

Public Attributes

Box2d boxDoc
 The live drag rectangle.
Vector2d baselineStartDoc
 First-baseline segment endpoints.
Vector2d baselineEndDoc
 End of the text-box baseline guide in document coordinates.
Vector2d ibeamTopDoc
 I-beam bar endpoints at the future caret position (top, bottom).
Vector2d ibeamBottomDoc
 Bottom endpoint of the placement I-beam in document coordinates.

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.

Member Function Documentation

◆ operator==()

bool donner::editor::SelectionChromeSnapshot::TextBoxDragPreview::operator== ( const TextBoxDragPreview & other) const
default

Compare all members for value equality.

Parameters
otherValue to compare.

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