TachyonUI 0.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 (NodeView::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...

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.

Detailed Description

One thing the user did in a node view, as values before and after, so a host can keep the undo history (NodeView::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.


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