|
|
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.
|
Contextual text-formatting bar shown as a floating canvas toolbar. More...
#include "donner/editor/TextFormatBarPresenter.h"
Public Member Functions | |
| FormatBarActions | render (const FormatBarState &state, const ImVec2 &topLeft, float width) |
| Render the bar and report the actions requested this frame. | |
Contextual text-formatting bar shown as a floating canvas toolbar.
|
nodiscard |
Render the bar and report the actions requested this frame.
Draws nothing and returns an empty result when state.visible is false. The bar is a floating rounded container at topLeft with a stable width.
| state | Current formatting context (visibility, values, families). |
| topLeft | Top-left edge in screen coordinates. |
| width | Bar width in pixels, normally PreferredWidth(). |