Versions in this module Expand all Collapse all v0 v0.5.0 Mar 23, 2026 Changes in this version + type GutterClickEvent struct + Line int + Modifiers key.Modifiers + NumClicks int + ProviderID string + Source pointer.Source + type GutterColors struct + Background gvcolor.Color + Custom map[string]gvcolor.Color + LineHighlight gvcolor.Color + Text gvcolor.Color + TextHighlight gvcolor.Color + type GutterContext struct + Colors *GutterColors + CurrentLine int + LineHeight fixed.Int26_6 + Paragraphs []Paragraph + Shaper *text.Shaper + TextParams text.Parameters + Viewport image.Rectangle + type GutterEvent interface + type GutterHoverEvent struct + Info *HoverInfo + Line int + ProviderID string + type GutterProvider interface + ID func() string + Layout func(gtx layout.Context, ctx GutterContext) layout.Dimensions + Priority func() int + Width func(gtx layout.Context, shaper *text.Shaper, params text.Parameters, lineCount int) unit.Dp + type HoverInfo struct + Text string + Widget layout.Widget + type InteractiveGutter interface + HandleClick func(line int, source pointer.Source, numClicks int, modifiers key.Modifiers) bool + HandleHover func(line int) *HoverInfo + type LineHighlight struct + Color gvcolor.Color + Line int + type LineHighlighter interface + HighlightedLines func() []LineHighlight + type Manager struct + func NewManager() *Manager + func (m *Manager) CalculateWidth(gtx layout.Context, shaper *text.Shaper, params text.Parameters, lineCount int) int + func (m *Manager) CollectHighlights() []LineHighlight + func (m *Manager) GetProvider(id string) GutterProvider + func (m *Manager) HasProviders() bool + func (m *Manager) Layout(gtx layout.Context, ctx GutterContext) layout.Dimensions + func (m *Manager) Providers() []GutterProvider + func (m *Manager) Register(provider GutterProvider) + func (m *Manager) SetGap(gap unit.Dp) + func (m *Manager) TotalWidth() int + func (m *Manager) Unregister(id string) + func (m *Manager) Update(gtx layout.Context) (GutterEvent, bool) + type Paragraph struct + Ascent fixed.Int26_6 + Descent fixed.Int26_6 + EndY int + Index int + RuneOff int + Runes int + StartY int