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::InspectorTextParser Struct Reference

Converts the typed text of a numeric field to its value, or returns std::nullopt to reject it. More...

#include "donner/editor/InspectorNumericInput.h"

Public Attributes

std::optional< double >(* parse )(const void *context, std::string_view text) = nullptr
 Parse function, called with context and the typed text.
const void * context = nullptr
 Caller state passed to parse.

Detailed Description

Converts the typed text of a numeric field to its value, or returns std::nullopt to reject it.

Member Data Documentation

◆ context

const void* donner::editor::InspectorTextParser::context = nullptr

Caller state passed to parse.

◆ parse

std::optional< double >(* donner::editor::InspectorTextParser::parse) (const void *context, std::string_view text) = nullptr

Parse function, called with context and the typed text.


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