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::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
bool setFontSize = false
 The user committed a new font size (drag release, typed entry, or preset).
float fontSize = 0.0f
bool toggleBold = false
bool toggleItalic = false
bool toggleUnderline = false

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

◆ fontSize

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

◆ 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

◆ toggleItalic

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

◆ toggleUnderline

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

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