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::internal::ToolbarPaintSlotState Struct Reference

Paint slot presentation state for the fill/stroke toolbar. More...

#include "donner/editor/EditorShellInternal.h"

Public Attributes

css::RGBA color
 Resolved solid color displayed by the paint swatch.
bool isNone = true
 Whether the slot represents no paint.
bool isCustom
 Whether the slot requires a custom-paint label instead of a solid swatch.
std::optional< ToolbarPaintReferenceState > reference
 Referenced paint-server state, when the slot uses a reference.
std::string customLabel
 Display label for paint not represented by a solid swatch.

Detailed Description

Paint slot presentation state for the fill/stroke toolbar.

Member Data Documentation

◆ color

css::RGBA donner::editor::internal::ToolbarPaintSlotState::color
Initial value:
=
css::RGBA::RGB(0, 0, 0)
static constexpr RGBA RGB(uint8_t r, uint8_t g, uint8_t b)
Constructor, for RGB colors, which are fully opaque.
Definition Color.h:38

Resolved solid color displayed by the paint swatch.

◆ customLabel

std::string donner::editor::internal::ToolbarPaintSlotState::customLabel

Display label for paint not represented by a solid swatch.

◆ isCustom

bool donner::editor::internal::ToolbarPaintSlotState::isCustom
Initial value:
=
false

Whether the slot requires a custom-paint label instead of a solid swatch.

◆ isNone

bool donner::editor::internal::ToolbarPaintSlotState::isNone = true

Whether the slot represents no paint.

◆ reference

std::optional<ToolbarPaintReferenceState> donner::editor::internal::ToolbarPaintSlotState::reference

Referenced paint-server state, when the slot uses a reference.


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