MCPcopy
hub / github.com/mum4k/termdash / Draw

Method Draw

widgetapi/widgetapi.go:175–175  ·  view source on GitHub ↗

When the infrastructure calls Draw(), the widget must block on the call until it finishes drawing onto the provided canvas. When given the canvas, the widget must first determine its size by calling Canvas.Size(), then limit all its drawing to this area. The widget must not assume that the size of

(cvs *canvas.Canvas, meta *Meta)

Source from the content-addressed store, hash-verified

173 //
174 // The argument meta is guaranteed to be valid (i.e. non-nil).
175 Draw(cvs *canvas.Canvas, meta *Meta) error
176
177 // Keyboard is called with every keyboard event whose scope the widget
178 // registered for.

Callers 15

redrawMethod · 0.65
drawWidgetFunction · 0.65
TestNewFunction · 0.65
TestKeyboardFunction · 0.65
TestMouseFunction · 0.65
TestUpdateFunction · 0.65
TestPointContFunction · 0.65
TestFocusTrackerMouseFunction · 0.65
TestDrawWidgetFunction · 0.65
TestBuilderFunction · 0.65
TestDrawFunction · 0.65

Implementers 15

explorerTabPreviewtermdashdemo/termdashdemo.go
Mirrorprivate/fakewidget/fakewidget.go
HeatMapwidgets/heatmap/heatmap.go
SegmentDisplaywidgets/segmentdisplay/segmentdisplay.
TreeViewwidgets/treeview/treeview.go
Checkboxwidgets/checkbox/checkbox.go
Timelinewidgets/timeline/timeline.go
TimeRangePickerwidgets/timeline/timerangepicker.go
BarChartwidgets/barchart/barchart.go
FocusEffectWidgetwidgets/fx/focus.go
framedTestWidgetwidgets/fx/framed_test.go
EffectWidgetwidgets/fx/fx.go

Calls

no outgoing calls

Tested by 15

TestNewFunction · 0.52
TestKeyboardFunction · 0.52
TestMouseFunction · 0.52
TestUpdateFunction · 0.52
TestPointContFunction · 0.52
TestFocusTrackerMouseFunction · 0.52
TestDrawWidgetFunction · 0.52
TestBuilderFunction · 0.52
TestDrawFunction · 0.52
mustDrawSegmentsFunction · 0.52
TestSetCharacterFunction · 0.52