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

One thing the user did in a node view, as values before and after, so a host can keep the undo history (NodeGraph::onEdit) and undo or redo it (ApplyNodeViewEdit). More...

#include <gui_controls/gui_node_view_types.h>

Classes

struct  Move
 A node (index) moved; positions in node.pos space. More...
struct  Rewire
 An input's source changed; an invalid endpoint means unwired. More...
struct  Collapse
 A node (index) collapsed or expanded. More...
struct  Lanes
 A wire's (by WireKey) lane overrides changed; default means no overrides. More...
struct  Node
 A node added at index (or, when !added, taken from there), with the wires from its outputs into other nodes' inputs and the lane overrides of every wire into or out of it. More...
struct  FrameChange
 A frame (index) moved, resized, renamed or recolored: all of it before and after. More...
struct  Frame
 A frame added at index (or, when !added, taken from there); the frames after it move up or down one. More...
struct  Transition
 A transition added at index (or, when !added, taken from there); the ones after it move up or down one. More...
struct  TransitionChange
 A transition (index) relabelled or redirected: all of it before and after. More...
struct  Initial
 The initial state changed (by stableID; Invalid: none). More...

Public Member Functions

bool empty () const
 True when nothing changed.

Public Attributes

std::vector< Move > moves
std::vector< Rewire > rewires
std::vector< Collapse > collapses
std::vector< Lanes > lanes
std::vector< Node > nodes
 Applied before the others (so a rewire may name an added node) and undone after.
std::vector< FrameChange > frameChanges
std::vector< Frame > frames
 Applied before frameChanges, as nodes are, and undone after.
std::vector< Transition > transitions
 Applied before transitionChanges, and undone after.
std::vector< TransitionChange > transitionChanges
std::optional< Initial > initial

Detailed Description

One thing the user did in a node view, as values before and after, so a host can keep the undo history (NodeGraph::onEdit) and undo or redo it (ApplyNodeViewEdit).

Member Function Documentation

◆ empty()

bool tachyon::NodeViewEdit::empty ( ) const
inline

True when nothing changed.

Member Data Documentation

◆ moves

std::vector<Move> tachyon::NodeViewEdit::moves

◆ rewires

std::vector<Rewire> tachyon::NodeViewEdit::rewires

◆ collapses

std::vector<Collapse> tachyon::NodeViewEdit::collapses

◆ lanes

std::vector<Lanes> tachyon::NodeViewEdit::lanes

◆ nodes

std::vector<Node> tachyon::NodeViewEdit::nodes

Applied before the others (so a rewire may name an added node) and undone after.

◆ frameChanges

std::vector<FrameChange> tachyon::NodeViewEdit::frameChanges

◆ frames

std::vector<Frame> tachyon::NodeViewEdit::frames

Applied before frameChanges, as nodes are, and undone after.

◆ transitions

std::vector<Transition> tachyon::NodeViewEdit::transitions

Applied before transitionChanges, and undone after.

◆ transitionChanges

std::vector<TransitionChange> tachyon::NodeViewEdit::transitionChanges

◆ initial

std::optional<Initial> tachyon::NodeViewEdit::initial

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