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. | |
| std::optional< Box2d > | fontSizePresetRectForTesting (std::size_t index) const |
| Screen-space bounds of a visible font-size preset row in the last 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(). |