|
TachyonUI 1.1.0
High-performance UI for building tools.
|
A frame (a comment box): a titled, colored box behind a group of nodes. More...
#include <gui_controls/gui_node_view_types.h>
Public Member Functions | |
| bool | operator== (const NodeFrame &) const =default |
Public Attributes | |
| tachyon::ID | stableID = tachyon::ID::Invalid() |
| Assigned once on creation, as a node's: the ID of its elements and of its selection. | |
| std::string | title |
| shown in its title bar; double-click to rename | |
| tachyon::color4f | color = {} |
| Its tint; alpha 0 uses the theme's neutral one. | |
| tachyon::int2 | pos = {} |
| top-left, in node.pos space | |
| tachyon::int2 | size = {} |
| width and height, the title bar included, while expanded | |
| bool | collapsed = false |
| Shown as one node: its title bar, and a row for each wire crossing its edge, an input on the left for each wire in, an output on the right for each wire out. | |
| std::optional< std::vector< tachyon::ID > > | members |
| While collapsed: the nodes and frames it held when it collapsed, by stableID. | |
A frame (a comment box): a titled, colored box behind a group of nodes.
Dragging its title moves it and what lies inside it; its right and bottom edges resize it.
|
default |
| tachyon::ID tachyon::NodeFrame::stableID = tachyon::ID::Invalid() |
Assigned once on creation, as a node's: the ID of its elements and of its selection.
| std::string tachyon::NodeFrame::title |
shown in its title bar; double-click to rename
| tachyon::color4f tachyon::NodeFrame::color = {} |
Its tint; alpha 0 uses the theme's neutral one.
The box is it, faint, and the title bar it, stronger.
| tachyon::int2 tachyon::NodeFrame::pos = {} |
top-left, in node.pos space
| tachyon::int2 tachyon::NodeFrame::size = {} |
width and height, the title bar included, while expanded
| bool tachyon::NodeFrame::collapsed = false |
Shown as one node: its title bar, and a row for each wire crossing its edge, an input on the left for each wire in, an output on the right for each wire out.
The nodes and frames inside it are hidden, and so are the wires between them.
| std::optional<std::vector<tachyon::ID> > tachyon::NodeFrame::members |
While collapsed: the nodes and frames it held when it collapsed, by stableID.
Those are what it hides and moves; a node dragged over it later stays out. Filled in by CollapseFrameEdit, or by the view the first time it draws it collapsed; none while expanded, when what lies inside it is what it holds.