common

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Common

type Common struct {
	Width     int
	Height    int
	State     state.State
	PrevState state.State
	StateChan chan state.State
	Models    []tea.Model
	Cfg       *config.Config
	Src       source.Source
}

func New

func New(cfg *config.Config) *Common

func (*Common) AddWindowResizeEventListener

func (c *Common) AddWindowResizeEventListener(model tea.Model)

func (*Common) HandleStateChange

func (m *Common) HandleStateChange() tea.Cmd

func (*Common) RemoveWindowResizeEventListener

func (c *Common) RemoveWindowResizeEventListener(model tea.Model)

func (*Common) SetSize

func (c *Common) SetSize(msg tea.WindowSizeMsg) tea.Cmd

func (*Common) SetState

func (c *Common) SetState(state state.State)

Jump to

Keyboard shortcuts

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