gallery

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GallerySpec

type GallerySpec struct {
	PaneSpecs []pane.PaneSpec
	Rows      int
	Cols      int

	pane.BaseSpec
}

func (GallerySpec) NewFromSpec

func (s GallerySpec) NewFromSpec(ctx *context.ProgramContext, spec pane.PaneSpec) pane.Pane

type Model

type Model struct {
	Panes []pane.Pane

	CurrentPaneId int

	pane.Pane
	// contains filtered or unexported fields
}

func New

func New(ctx *context.ProgramContext, panes []pane.Pane, spec GallerySpec) *Model

func (*Model) SetSize

func (m *Model) SetSize(width int, height int)

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (pane.Pane, tea.Cmd, bool)

func (*Model) View

func (m *Model) View() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL