Donner SVG 0.8.0-pre
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
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
std::vector< std::string > requestFontPreviews
 Visible dropdown rows whose family-name previews are not cached yet.

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

◆ requestFontPreviews

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

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

◆ 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: