Documentation
¶
Overview ¶
Package ui implements the user interface components for the Neru application.
This package provides the visual interface layer for Neru, managing all aspects of on-screen rendering and user interaction. It serves as the bridge between the application's core logic and the visual elements displayed to users.
Index ¶
- type OverlayRenderer
- func (r *OverlayRenderer) Clear()
- func (r *OverlayRenderer) DrawGrid(g *domainGrid.Grid, input string) error
- func (r *OverlayRenderer) DrawHints(hs []*hints.Hint) error
- func (r *OverlayRenderer) DrawModeIndicator(x, y int)
- func (r *OverlayRenderer) DrawRecursiveGrid(bounds image.Rectangle, depth int, keys string, gridCols int, gridRows int, ...) error
- func (r *OverlayRenderer) ResizeActive()
- func (r *OverlayRenderer) SetHideUnmatched(hide bool)
- func (r *OverlayRenderer) Show()
- func (r *OverlayRenderer) ShowSubgrid(cell *domainGrid.Cell)
- func (r *OverlayRenderer) UpdateConfig(hintStyle hints.StyleMode, gridStyle grid.Style, ...)
- func (r *OverlayRenderer) UpdateGridMatches(prefix string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OverlayRenderer ¶
type OverlayRenderer struct {
// contains filtered or unexported fields
}
OverlayRenderer manages rendering operations for all application overlays.
func NewOverlayRenderer ¶
func NewOverlayRenderer( manager overlay.ManagerInterface, hintStyle hints.StyleMode, gridStyle grid.Style, recursiveGridStyle recursivegrid.Style, ) *OverlayRenderer
NewOverlayRenderer initializes a new overlay renderer with the specified components.
func (*OverlayRenderer) DrawGrid ¶
func (r *OverlayRenderer) DrawGrid(g *domainGrid.Grid, input string) error
DrawGrid draws a grid with the configured style.
func (*OverlayRenderer) DrawHints ¶
func (r *OverlayRenderer) DrawHints(hs []*hints.Hint) error
DrawHints draws hints with the configured style.
func (*OverlayRenderer) DrawModeIndicator ¶ added in v1.21.0
func (r *OverlayRenderer) DrawModeIndicator(x, y int)
DrawModeIndicator draws a mode indicator at the specified position.
func (*OverlayRenderer) DrawRecursiveGrid ¶ added in v1.20.0
func (r *OverlayRenderer) DrawRecursiveGrid( bounds image.Rectangle, depth int, keys string, gridCols int, gridRows int, nextKeys string, nextGridCols int, nextGridRows int, virtualPointer recursivegrid.VirtualPointerState, ) error
DrawRecursiveGrid draws a recursive-grid with the current bounds and depth. nextKeys/nextGridCols/nextGridRows describe the *next* depth's layout and are used by the sub-key preview mini-grid inside each cell.
func (*OverlayRenderer) ResizeActive ¶
func (r *OverlayRenderer) ResizeActive()
ResizeActive resizes the overlay to the active screen.
func (*OverlayRenderer) SetHideUnmatched ¶
func (r *OverlayRenderer) SetHideUnmatched(hide bool)
SetHideUnmatched sets whether to hide unmatched cells.
func (*OverlayRenderer) ShowSubgrid ¶
func (r *OverlayRenderer) ShowSubgrid( cell *domainGrid.Cell, )
ShowSubgrid shows a subgrid for the specified cell.
func (*OverlayRenderer) UpdateConfig ¶ added in v1.10.4
func (r *OverlayRenderer) UpdateConfig( hintStyle hints.StyleMode, gridStyle grid.Style, recursiveGridStyle recursivegrid.Style, )
UpdateConfig updates the renderer with new configuration.
func (*OverlayRenderer) UpdateGridMatches ¶
func (r *OverlayRenderer) UpdateGridMatches(prefix string)
UpdateGridMatches updates the grid matches with the specified prefix.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package coordinates provides coordinate conversion and transformation utilities for Neru.
|
Package coordinates provides coordinate conversion and transformation utilities for Neru. |
|
Package overlay provides overlay functionality for the Neru application.
|
Package overlay provides overlay functionality for the Neru application. |