MCPcopy
hub / github.com/kovidgoyal/kitty / Preview

Interface Preview

kittens/choose_files/preview.go:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25var _ = fmt.Print
26
27type Preview interface {
28 Render(h *Handler, x, y, width, height int)
29 IsValidForColorScheme(light bool) bool
30 Unload()
31 IsReady() bool
32 String() string
33}
34
35type PreviewManager struct {
36 report_errors chan error

Callers 15

draw_preview_contentMethod · 0.65
RenderMethod · 0.65
RenderImagePreviewMethod · 0.65
clear_cached_previewsMethod · 0.65
draw_preview_contentMethod · 0.65
draw_preview_contentMethod · 0.65
highlightMatchedCharsMethod · 0.65
write_file_metadataFunction · 0.65
RenderMethod · 0.65
ffmpeg_thumbnailFunction · 0.65
ffmpeg_metadataFunction · 0.65

Implementers 4

MessagePreviewkittens/choose_files/preview.go
TextFilePreviewkittens/choose_files/preview.go
archive_previewkittens/choose_files/archive.go
ImagePreviewkittens/choose_files/image_preview.go

Calls

no outgoing calls

Tested by

no test coverage detected