Documentation
¶
Overview ¶
Package flowui implements an interactive graph renderer.
Index ¶
- Variables
- type FlowchartView
- type Model
- func (m *Model) Draw(da *gtk.DrawingArea, cr *cairo.Context, animStep int64)
- func (m *Model) HitTest(p hit.Point) hit.TestableObj
- func (m *Model) MoveTarget(t hit.TestableObj, x, y float64)
- func (m *Model) OnUserLinksPads(startPad, endPad *circPad) error
- func (m *Model) SetTargetActive(target hit.TestableObj, a bool)
- func (m *Model) TargetPos(t hit.TestableObj) (x, y float64)
- type UserLinkable
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNodeNotLinkable = errors.New("node cannot be linked by user")
Functions ¶
This section is empty.
Types ¶
type FlowchartView ¶
type FlowchartView struct {
// contains filtered or unexported fields
}
func NewFlowchartView ¶
func NewFlowchartView(l *flow.Layout) (*FlowchartView, *gtk.DrawingArea, error)
NewFlowchartView constructs a new flowchart display widget, reading nodes and position information from the provided layout.
func (*FlowchartView) AddOrphanedNode ¶
func (fcv *FlowchartView) AddOrphanedNode(n flow.Node)
AddOrphanedNode inserts a new node into the layout and view, unconnected to any other nodes.
func (*FlowchartView) GetSelection ¶
func (fcv *FlowchartView) GetSelection() interface{}
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model encapsulates the state of the flowchart.
func (*Model) MoveTarget ¶
func (m *Model) MoveTarget(t hit.TestableObj, x, y float64)
func (*Model) OnUserLinksPads ¶
func (*Model) SetTargetActive ¶
func (m *Model) SetTargetActive(target hit.TestableObj, a bool)
Click to show internal directories.
Click to hide internal directories.