Skip to main content

Module naming

Module naming 

Source
Expand description

The naming and flag family: one- or two-register updates on an existing entity.

Structs§

LabelFitWidth
The width, in grid cells, that fits a pin’s labels — the gesture’s text measurement, which the emitter cannot make for itself.
LabelPlacement
A committed label drag: the offset the gesture resolved, and the side the release height chose, when it chose one.

Enums§

AccentTarget
What an accent pick lands on — the five accent-bearing entities. A port’s accent is its own register (PortAccent); the stub and port-pin accents are derived state, never in the log.
Authoring
Whether the affordances that add something are offered: the faint “Add name”/“Add type” prompts, the free-slot pin dots, the route-start targets, a wire’s waypoint handles and text anchors — and, with them, the gestures those affordances begin.
InterfaceLock
Whether a block’s pin interface accepts edits — the parameter form of the block’s Locked register.
LabelTarget
What a label drag lands on — the three placeable labels.
TagVisibility
Whether a pin draws its location tag — the parameter form of the pin’s TagHidden register.
TitleTarget
What a title rename lands on — the two entities carrying a title label.

Functions§

clear_wire_label
Inventory row “Delete Wire Label (empty rename)”: clearing a wire label’s text drops the label and unnames the wire it labelled.
cycle_dir
Inventory row “Cycle Pin Direction”: clicking the selected pin’s stub advances its signal direction.
cycled 🔒
InOut → Input → Output → InOut.
edit_text
Inventory rows “Edit Text Box” and “Delete Text Box (emptied)”: a text box commits its content, or is discarded when that content is blank rather than left invisible.
place_label
Inventory row “Move Title / Type Label”: reposition a block’s or area’s title, or a block’s type label.
placement_updates 🔒
The two placement registers filter independently: a drag along one side writes no side, and a side change at the same offset writes no offset.
rename_pin
Inventory row “Rename Pin”: a pin’s name, widening the port body to fit.
rename_route
Inventory row “Rename Route”: name a wire. A blank name is the wire label’s deletion instead (clear_wire_label), never a name write.
rename_title
Inventory row “Rename Title”: a block’s or area’s title label gets a new name.
rename_type
Inventory row “Rename Block Type”: a block’s type label gets a new name.
retype_pin
Inventory row “Retype Pin”: a pin’s type line, widening the port body to fit.
set_accent
Inventory row “Set Accent”: recolor a block, wire, area, text, or port. accent is the picker’s vocabulary (None = plain).
set_dirs
Inventory row “Set Pin Direction (bulk)”: one direction across a pin selection, leaving locked owners’ interfaces frozen.
set_locked
Inventory row “Lock/Unlock Block”: freeze or thaw a block’s pin interface.
set_tag
Inventory row “Set Pin Tag”: a pin’s location designator. Tags extend outward over the stub, so there is no widening rider.
set_tag_visibility
Inventory row “Show/Hide Pin Tags”: tag visibility across a pin selection.
widened 🔒
The rename/retype rider: the port body grows to fit its labels and never narrows, so a body the user widened keeps its width.