wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
ElementInfo< Text > Struct Reference

Static Public Member Functions

static ElementMetadata metadata ()

Static Public Attributes

static constexpr ElementConstraints constraints
static const bool registered

Detailed Description

Definition at line 13 of file Text.cpp.

Member Function Documentation

◆ metadata()

ElementMetadata ElementInfo< Text >::metadata ( )
inlinestatic

Definition at line 21 of file Text.cpp.

References constraints, and metadataFromConstraints().

Member Data Documentation

◆ constraints

ElementConstraints ElementInfo< Text >::constraints
staticconstexpr
Initial value:
{
.type = ElementType::Text,
.group = ElementGroup::Other,
.hasLabel = true,
}

Definition at line 14 of file Text.cpp.

Referenced by metadata().

◆ registered

const bool ElementInfo< Text >::registered
inlinestatic
Initial value:
= []() {
ElementFactory::registerCreator(constraints.type, [] { return new Text(); });
return true;
}()
static void registerCreator(ElementType type, std::function< GraphicElement *()> creator)
Registers a creator lambda for type, used by buildElement().
static void registerMetadata(const ElementMetadata &meta)
Registers meta in the global map (called once per element type at startup).
static constexpr ElementConstraints constraints
Definition And.cpp:12
static ElementMetadata metadata()
Definition Text.cpp:21

Definition at line 40 of file Text.cpp.


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