TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::NodeModel Struct Reference

One node of a node view. More...

#include <gui_controls/gui_node_view_types.h>

Public Attributes

tachyon::ID stableID = tachyon::ID::Invalid()
 Assigned once on creation; the node's element ID and the salt for its sub-IDs, so ID-keyed state survives z-order changes (dynamic IDs depend on render order).
std::string title
 header text
std::string category
 Category name, shown right-aligned in the header.
tachyon::color4f categoryColor = {}
 Color of the header's category square; alpha 0 uses the accent.
tachyon::int2 pos = {}
 Top-left in canvas layout space (whole pixels relative to the canvas, before pan/zoom).
tachyon::int2 startPos = {}
 internal: pos at drag start
tachyon::int2 lastSize = {}
 outer-rect size from last frame's layout
bool collapsed = false
 rows hidden, header only (double-click toggles)
bool reroute = false
 A reroute: a dot that a wire passes through, a waypoint, instead of a box.
std::vector< NodeProperty > properties
 the rows, top to bottom

Detailed Description

One node of a node view.

Member Data Documentation

◆ stableID

tachyon::ID tachyon::NodeModel::stableID = tachyon::ID::Invalid()

Assigned once on creation; the node's element ID and the salt for its sub-IDs, so ID-keyed state survives z-order changes (dynamic IDs depend on render order).

◆ title

std::string tachyon::NodeModel::title

header text

◆ category

std::string tachyon::NodeModel::category

Category name, shown right-aligned in the header.

◆ categoryColor

tachyon::color4f tachyon::NodeModel::categoryColor = {}

Color of the header's category square; alpha 0 uses the accent.

◆ pos

tachyon::int2 tachyon::NodeModel::pos = {}

Top-left in canvas layout space (whole pixels relative to the canvas, before pan/zoom).

◆ startPos

tachyon::int2 tachyon::NodeModel::startPos = {}

internal: pos at drag start

◆ lastSize

tachyon::int2 tachyon::NodeModel::lastSize = {}

outer-rect size from last frame's layout

◆ collapsed

bool tachyon::NodeModel::collapsed = false

rows hidden, header only (double-click toggles)

◆ reroute

bool tachyon::NodeModel::reroute = false

A reroute: a dot that a wire passes through, a waypoint, instead of a box.

Its first row's input (one wire in) and output (any number out) meet in the dot; no header or other rows show. pos is the top-left of its two-grid-cell square, so the dot sits on a grid point. See RerouteWireEdit.

◆ properties

std::vector<NodeProperty> tachyon::NodeModel::properties

the rows, top to bottom


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