ui

package
v0.0.0-...-d3571fa Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 1 Imported by: 0

README

deskpad UI

The screens implemented here are designed to be used by a 15-button Elgato Stream Deck. The asset resolution on this deck is 72x72 pixels, so any images are resized to fit these constraints. If text needs to be rendered to a button, the TextIcon can be used to generate an image suitable for display on the stream deck.

Screens should not maintain their own state.

Documentation

Index

Constants

View Source
const (
	AudioOutputDeviceUnspecified = iota
	AudioOutputTypeComputer
	AudioOutputTypeSmartphone
	AudioOutputTypeSpeaker
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioOutput

type AudioOutput struct {
	ID          string
	Name        string
	Description string

	Volume int
	Muted  bool

	Active bool
	Type   AudioOutputType
	Icon   image.Image
}

AudioOutput represents a controllable audio output device.

type AudioOutputType

type AudioOutputType int

AudioOutputType describes the different types of supported audio outputs

type MediaItem

type MediaItem struct {
	ID      string
	Title   string
	Artists []string

	AlbumName    string
	AlburmArtURL string
}

MediaItem contains relevant information about a single media item.

type MediaPlaylist

type MediaPlaylist struct {
	ID   string `mapstructure:"id"`
	Name string `mapstructure:"name"`
	Icon image.Image
}

MediaPlaylist contains relevant information about a single playlist, such as it's ID, name and a visual representation of it.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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