Documentation
¶
Index ¶
- type Appearance
- type BasicRenderer
- func (renderer *BasicRenderer) DrawEdge(da *gtk.DrawingArea, cr *cairo.Context, animStep int64, e Edge)
- func (r *BasicRenderer) DrawNode(da *gtk.DrawingArea, cr *cairo.Context, animStep int64, n Node)
- func (renderer *BasicRenderer) DrawPad(da *gtk.DrawingArea, cr *cairo.Context, animStep int64, p Pad)
- type ColoredPad
- type DecoratedNode
- type DrawFunc
- type Edge
- type FocusableElement
- type HeadlineElement
- type Node
- type NodeDecorator
- type Pad
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Appearance ¶
type Appearance interface { DrawNode(da *gtk.DrawingArea, cr *cairo.Context, animStep int64, n Node) DrawPad(da *gtk.DrawingArea, cr *cairo.Context, animStep int64, p Pad) DrawEdge(da *gtk.DrawingArea, cr *cairo.Context, animStep int64, e Edge) }
Appearance represents an implementation which can display a flowchart.
type BasicRenderer ¶
type BasicRenderer struct{}
func (*BasicRenderer) DrawEdge ¶
func (renderer *BasicRenderer) DrawEdge(da *gtk.DrawingArea, cr *cairo.Context, animStep int64, e Edge)
func (*BasicRenderer) DrawNode ¶
func (r *BasicRenderer) DrawNode(da *gtk.DrawingArea, cr *cairo.Context, animStep int64, n Node)
func (*BasicRenderer) DrawPad ¶
func (renderer *BasicRenderer) DrawPad(da *gtk.DrawingArea, cr *cairo.Context, animStep int64, p Pad)
type ColoredPad ¶
ColoredPad describes a pad with a custom color.
type DecoratedNode ¶
type DecoratedNode interface {
NodeDecorator() NodeDecorator
}
DecoratedNode describes nodes which provide decoration information.
type FocusableElement ¶
type FocusableElement interface {
Active() bool
}
FocusableElement types are elements which can be focused, and are drawn with a thicker outline if they are currently focused.
type HeadlineElement ¶
type HeadlineElement interface {
NodeHeadline() string
}
HeadlineElement describes nodes which have text labels which should be rendered.
Click to show internal directories.
Click to hide internal directories.