config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(cfg *Config) error

Types

type Config

type Config struct {
	Background          bool
	ConfigWatchExit     bool
	Layout              Layout
	LayoutManualWindows []mosaic.LayoutManualWindow `mapstructure:"-"`
	Player              Player
	Windows             []Window
}

type ConfigLayoutManual

type ConfigLayoutManual struct {
	LayoutManual []LayoutManual
}

type Layout

type Layout string

func (Layout) IsAuto

func (c Layout) IsAuto() bool

func (Layout) IsManual

func (c Layout) IsManual() bool

type LayoutManual

type LayoutManual struct {
	X string
	Y string
	W string
	H string
}

type Player

type Player struct {
	GPU   string
	Flags []string
}

type Window

type Window struct {
	Name       string
	Main       string
	Sub        string
	LowLatency bool
	Flags      []string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳