SILICON
Loading...
Searching...
No Matches
GraphicalSubcircuitMetadata Struct Reference

Visual metadata used to render a subcircuit as a reusable component. More...

#include <metadata.hpp>

Public Attributes

QSize widthHeight
 Rectangle dimensions in pixels.
bool autoSize = true
 Derive dimensions from port counts until the user edits the size.
PortPositioning positioning = PortPositioning::Automatic
 One positioning mode for all input and output ports of the shape.
std::vector< GraphicalSubcircuitPortMetadata > inputs
 Input boundary ports in core interface order.
std::vector< GraphicalSubcircuitPortMetadata > outputs
 Output boundary ports in core interface order.

Detailed Description

Visual metadata used to render a subcircuit as a reusable component.

The in-memory representation uses pixels because it is consumed directly by QGraphicsItem geometry. Serialization converts width, height, and port positions to grid units.

Definition at line 74 of file metadata.hpp.

Member Data Documentation

◆ autoSize

bool autoSize = true

Derive dimensions from port counts until the user edits the size.

Definition at line 79 of file metadata.hpp.

◆ inputs

std::vector<GraphicalSubcircuitPortMetadata> inputs

Input boundary ports in core interface order.

Definition at line 83 of file metadata.hpp.

◆ outputs

std::vector<GraphicalSubcircuitPortMetadata> outputs

Output boundary ports in core interface order.

Definition at line 85 of file metadata.hpp.

◆ positioning

One positioning mode for all input and output ports of the shape.

Definition at line 81 of file metadata.hpp.

◆ widthHeight

QSize widthHeight
Initial value:
constexpr int GRID_SIZE
Definition grid.hpp:27
constexpr int GRAPHICAL_SUBCIRCUIT_DEFAULT_SIZE
Default subcircuit rectangle size in persisted grid units.
Definition metadata.hpp:44

Rectangle dimensions in pixels.

Definition at line 76 of file metadata.hpp.


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