TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
gui_node_view_types.h File Reference
#include <gui_core/gui_base_types.h>
#include <gui_core/gui_id.h>
#include <gui_core/elements/gui_element.h>
#include <gui_core/input/gui_command_manager.h>
#include <gui_core/input/gui_gesture.h>
#include <gui_core/graphics/gui_custom_draw_context.h>
#include <gui_controls/gui_widget_state_types.h>
#include <functional>
#include <optional>
#include <span>
#include <type_traits>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>

Go to the source code of this file.

Classes

struct  tachyon::PropertyEndpoint
 A property on a node. Default-constructed is invalid: in a socket it means "present, unwired". More...
struct  tachyon::NodeProperty
 One row of a node: an optional input socket, a body, and an optional output socket. More...
struct  tachyon::NodeModel
 One node of a node view. More...
struct  tachyon::StateTransition
 A transition of a state machine: from one state to another, or to itself. More...
struct  tachyon::NodeFrame
 A frame (a comment box): a titled, colored box behind a group of nodes. More...
struct  tachyon::PendingConnection
 A wire being dragged. Committed wires are the reciprocal endpoints on NodeProperty. More...
struct  tachyon::WireLane
 A wire's place among the wires between the same two nodes, so their default lanes nest instead of coinciding or crossing (ComputeWireLaneOffsets). More...
struct  tachyon::WireRouteOverrides
 User-pinned lanes of one wire (unset = default), in the route's space. More...
struct  tachyon::WireSegmentHandle
 Draggable interior segment; vertical segments drag horizontally and vice versa. More...
struct  tachyon::WireRoute
 Polyline plus its draggable interior segments (never the end stubs). More...
struct  tachyon::CachedWireHandle
 Last frame's draggable segment (node.pos space), for laying out its grab element. More...
struct  tachyon::NodeViewEdit
 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...
struct  tachyon::NodeViewEdit::Move
 A node (index) moved; positions in node.pos space. More...
struct  tachyon::NodeViewEdit::Rewire
 An input's source changed; an invalid endpoint means unwired. More...
struct  tachyon::NodeViewEdit::Collapse
 A node (index) collapsed or expanded. More...
struct  tachyon::NodeViewEdit::Lanes
 A wire's (by WireKey) lane overrides changed; default means no overrides. More...
struct  tachyon::NodeViewEdit::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  tachyon::NodeViewEdit::FrameChange
 A frame (index) moved, resized, renamed or recolored: all of it before and after. More...
struct  tachyon::NodeViewEdit::Frame
 A frame added at index (or, when !added, taken from there); the frames after it move up or down one. More...
struct  tachyon::NodeViewEdit::Transition
 A transition added at index (or, when !added, taken from there); the ones after it move up or down one. More...
struct  tachyon::NodeViewEdit::TransitionChange
 A transition (index) relabelled or redirected: all of it before and after. More...
struct  tachyon::NodeViewEdit::Initial
 The initial state changed (by stableID; Invalid: none). More...
struct  tachyon::DrawnWire
 A wire as drawn this frame, for hit-testing; points in node.pos space. More...
struct  tachyon::WireSegmentDrag
 Segment drag via mouse capture rather than DnD, so the resize cursor sticks. More...
struct  tachyon::FrameDrag
 A press on a frame's title or one of its edges, and what it moves. More...
struct  tachyon::NodeLists< T >
 Internal: a list per node, all in one array, refilled each frame in the storage it has. More...
struct  tachyon::NodeHiddenPort
 Internal: a socket of a node hidden in a collapsed frame, on that frame's box edge. More...
struct  tachyon::NodeGraph
 What a node view's graph is: its nodes, frames and wires (or a state machine's states and transitions), the edits made to it, and how it's laid out on the grid. More...
struct  tachyon::NodeViewState
 How one view shows a NodeGraph: its pan and zoom, what's selected in it, what the user is doing in it, what it shows over the canvas and the callbacks that act on what it shows. More...
struct  tachyon::NodeViewState::MarqueeStart
 What a marquee starts from: the selection before it, put back by Escape, and the modifiers held at its press. More...
struct  tachyon::NodeView
 A graph shown in one place: the graph and the one view of it together. More...
struct  tachyon::BasicNodeViewRef< Graph, State >
 A graph and one view of it, as RenderNodeView and the helpers take them: a NodeView passes as one, or { graph, state } for one of several views of a graph. More...

Namespaces

namespace  tachyon

Typedefs

using tachyon::NodeViewRef = BasicNodeViewRef<NodeGraph, NodeViewState>
using tachyon::ConstNodeViewRef = BasicNodeViewRef<const NodeGraph, const NodeViewState>

Enumerations

enum class  tachyon::NodeViewKind : uint8_t { tachyon::NodeViewKind::Graph , tachyon::NodeViewKind::StateMachine }
 What a node view edits: a graph of nodes with fields wired output to input, or a state machine, where nodes are states joined by transitions and cycles are the point. More...
enum class  tachyon::WireHandle : uint8_t {
  tachyon::WireHandle::None , tachyon::WireHandle::LaneX , tachyon::WireHandle::ExitX , tachyon::WireHandle::EntryX ,
  tachyon::WireHandle::LaneY
}
 Interior lane a drag handle adjusts: the corridor route's vertical lane (LaneX), or the detour route's verticals (ExitX, EntryX) and horizontal return lane (LaneY). More...
enum class  tachyon::NodeWireShape : uint8_t { tachyon::NodeWireShape::Orthogonal , tachyon::NodeWireShape::Curved }
 How a node view draws its wires (NodeGraph::wireShape). More...
enum class  tachyon::FrameEdges : uint8_t { tachyon::FrameEdges::None = 0 , tachyon::FrameEdges::Right = 1 , tachyon::FrameEdges::Bottom = 2 , tachyon::FrameEdges::Corner = Right | Bottom }
 Which edges of a frame a resize moves. More...