Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::FormatBarActions Struct Reference

Edge-triggered requests emitted by the format bar in one frame. Each set* / toggle* flag is true only on the frame the user committed the control. More...

#include "donner/editor/TextFormatBarPresenter.h"

Public Attributes

bool setFontFamily = false
 The user chose a family from the dropdown or committed the free-text box.
std::string fontFamily
 Selected CSS font-family value for a family change.
bool setFontSize = false
 The user committed a new font size (drag release, typed entry, or preset).
float fontSize = 0.0f
 Selected font size for a size change.
bool toggleBold = false
 Request toggling bold at the active text selection.
bool toggleItalic = false
 Request toggling italic at the active text selection.
bool toggleUnderline = false
 Request toggling underline at the active text selection.
std::vector< std::string > requestFontPreviews
 Visible dropdown rows whose family-name previews are not cached yet.
std::vector< std::string > visibleFontFamilies
 All currently visible rows, including rows whose preview is already cached.
std::vector< std::string > retryFontFamilies
 Explicit retry actions; the transport broker enforces its per-asset cooldown.

Detailed Description

Edge-triggered requests emitted by the format bar in one frame. Each set* / toggle* flag is true only on the frame the user committed the control.

Member Data Documentation

◆ fontFamily

std::string donner::editor::FormatBarActions::fontFamily

Selected CSS font-family value for a family change.

◆ fontSize

float donner::editor::FormatBarActions::fontSize = 0.0f

Selected font size for a size change.

◆ requestFontPreviews

std::vector<std::string> donner::editor::FormatBarActions::requestFontPreviews

Visible dropdown rows whose family-name previews are not cached yet.

◆ retryFontFamilies

std::vector<std::string> donner::editor::FormatBarActions::retryFontFamilies

Explicit retry actions; the transport broker enforces its per-asset cooldown.

◆ setFontFamily

bool donner::editor::FormatBarActions::setFontFamily = false

The user chose a family from the dropdown or committed the free-text box.

◆ setFontSize

bool donner::editor::FormatBarActions::setFontSize = false

The user committed a new font size (drag release, typed entry, or preset).

◆ toggleBold

bool donner::editor::FormatBarActions::toggleBold = false

Request toggling bold at the active text selection.

◆ toggleItalic

bool donner::editor::FormatBarActions::toggleItalic = false

Request toggling italic at the active text selection.

◆ toggleUnderline

bool donner::editor::FormatBarActions::toggleUnderline = false

Request toggling underline at the active text selection.

◆ visibleFontFamilies

std::vector<std::string> donner::editor::FormatBarActions::visibleFontFamilies

All currently visible rows, including rows whose preview is already cached.


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