GraphProps struct
#include <GGUI/Public/UIGraph.h>
Properties of ui.Graph: what its gestures report, and how it looks.
Public variables
- HandlerOf<GraphMoveEvent> OnMove
- HandlerOf<GraphConnectEvent> CanConnect
- Asked while a wire hovers a pin, and before OnConnect; Refuse() to forbid it. Pins on the same side or the same node are never joined.
- HandlerOf<GraphConnectEvent> OnConnect
- wires were drawn
- HandlerOf<GraphLinksEvent> OnDisconnect
- wires were cut
- HandlerOf<GraphNodesEvent> OnDelete
- nodes to delete
- HandlerOf<GraphNodesEvent> OnDuplicate
- HandlerOf<GraphNodesEvent> OnCopy
- Nodes to copy. Also run before OnDelete for a cut.
- HandlerOf<GraphPointEvent> OnPaste
- ComponentFn Menu
- Built when the background is right-clicked; the point is in GGGraphView::
PointX, PointY. - float Grid
- graph units between grid lines; moves snap to it. 0: no grid, no snapping
- float MinZoom
- the smallest zoom
- float MaxZoom
- the largest zoom
- GGSize Width
- its width
- GGSize Height
- std::string_view Class
- Parts: "graph-node" (:checked when selected), "graph-node-title", "graph-pin" (:hover).
- GGColor GridColor
- grid lines
- GGColor MajorColor
- every eighth line
- GGColor SelectColor
- the selection box
- GGColor DraftColor
- a wire being drawn
- float WireWidth
- UI units at zoom 1.
Variable documentation
HandlerOf<GraphMoveEvent> GGUI:: GraphProps:: OnMove
the selection was moved
HandlerOf<GraphNodesEvent> GGUI:: GraphProps:: OnDuplicate
nodes to duplicate
HandlerOf<GraphPointEvent> GGUI:: GraphProps:: OnPaste
paste at this point
std::string_view GGUI:: GraphProps:: Class
Parts: "graph-node" (:checked when selected), "graph-node-title", "graph-pin" (:hover).
its style classes