Documentation ¶
Overview ¶
Package vgshiny provides a vg.Canvas implementation backed by a shiny/screen.Window
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Canvas ¶
Canvas implements the vg.Canvas interface, drawing to a shiny.screen/Window buffer.
func (*Canvas) Paint ¶
func (c *Canvas) Paint() screen.PublishResult
Paint paints the canvas' content on the screen.
func (*Canvas) Run ¶
Run runs the function f for each event on the event queue of the underlying shiny window. f is expected to return true to continue processing events and false otherwise. If f is nil, a default processing function will be used. The default processing functions handles paint.Event events and exits when 'q' or 'ESC' are pressed.
Click to show internal directories.
Click to hide internal directories.