components

package
v0.0.0-...-b2e3e5e Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Grid

type Grid struct {
	Root        *tui.Grid
	Videolist   *VideoList
	Plabackinfo *PlaybackInfo
	Volumemixer *VolumeMixer
	Progressbar *ProgressBar
	ProgramInfo *ProgramInfo
}

func Init

func Init() *Grid

type ImageComponent

type ImageComponent struct {
	Root *widgets.Image
}

func InitImageComponent

func InitImageComponent() *ImageComponent

type PlaybackInfo

type PlaybackInfo struct {
	Root *widgets.Paragraph
}

func InitPlaybackInfo

func InitPlaybackInfo(text string) *PlaybackInfo

func (*PlaybackInfo) Reset

func (p *PlaybackInfo) Reset()

func (*PlaybackInfo) Update

func (p *PlaybackInfo) Update(playBackTime string, duration string)

type ProgramInfo

type ProgramInfo struct {
	Root *widgets.Paragraph
}

func InitProgramInfo

func InitProgramInfo() *ProgramInfo

type ProgressBar

type ProgressBar struct {
	Root *widgets.Gauge
}

func InitProgressBar

func InitProgressBar() *ProgressBar

func (*ProgressBar) Reset

func (p *ProgressBar) Reset()

func (*ProgressBar) Update

func (p *ProgressBar) Update(percent int, videoName string, playing bool)

type VideoList

type VideoList struct {
	Root *widgets.List
}

func InitVideoList

func InitVideoList() *VideoList

func (*VideoList) Clean

func (v *VideoList) Clean()

func (*VideoList) Reset

func (v *VideoList) Reset()

func (*VideoList) Update

func (v *VideoList) Update(videos []string, title string)

type VolumeMixer

type VolumeMixer struct {
	Root *widgets.Gauge
	// contains filtered or unexported fields
}

func InitVolumeMixer

func InitVolumeMixer() *VolumeMixer

func (*VolumeMixer) SetMute

func (v *VolumeMixer) SetMute(mute bool)

func (*VolumeMixer) UpdatePercent

func (v *VolumeMixer) UpdatePercent(percent int)

Jump to

Keyboard shortcuts

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