cfg

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var F, E, W, I, D, T log.LevelPrinter = log.GetLogPrinterSet(subsystem)

Functions

This section is empty.

Types

type Config

type Config struct {
	// cx *state.State
	*gel.Window
	Bools map[string]*gel.Bool
	// contains filtered or unexported fields
}

func New

func New(w *gel.Window, killAll qu.C) *Config

func (*Config) Config

func (c *Config) Config() GroupsMap

func (*Config) Init

func (c *Config) Init() *Config

func (*Config) RenderConfigItem

func (c *Config) RenderConfigItem(item *Item, position int) []l.Widget

RenderConfigItem renders a config item. It takes a position variable which tells it which index it begins on the bigger config widget list, with this and its current data set the multi can insert and delete elements above its add button without rerendering the config item or worse, the whole config widget

func (*Config) RenderFloat

func (c *Config) RenderFloat(item *Item) []l.Widget

func (*Config) RenderInteger

func (c *Config) RenderInteger(item *Item) []l.Widget

func (*Config) RenderMulti

func (c *Config) RenderMulti(item *Item, position int) []l.Widget

func (*Config) RenderPassword

func (c *Config) RenderPassword(item *Item) []l.Widget

func (*Config) RenderRadio

func (c *Config) RenderRadio(item *Item) []l.Widget

func (*Config) RenderString

func (c *Config) RenderString(item *Item) []l.Widget

func (*Config) RenderTime

func (c *Config) RenderTime(item *Item) []l.Widget

func (*Config) RenderToggle

func (c *Config) RenderToggle(item *Item) []l.Widget

type GroupsMap

type GroupsMap map[string]ItemMap

func (GroupsMap) Widget

func (gm GroupsMap) Widget(ng *Config) l.Widget

type Item

type Item struct {
	Slot interface{}
	// contains filtered or unexported fields
}

func (*Item) Item

func (it *Item) Item(ng *Config) l.Widget

type ItemMap

type ItemMap map[string]*Item

type List

type List struct {
	// contains filtered or unexported fields
}

type ListItem

type ListItem struct {
	// contains filtered or unexported fields
}

type ListItems

type ListItems []ListItem

func (ListItems) Len

func (l ListItems) Len() int

func (ListItems) Less

func (l ListItems) Less(i, j int) bool

func (ListItems) Swap

func (l ListItems) Swap(i, j int)

type Lists

type Lists []List

func (Lists) Len

func (l Lists) Len() int

func (Lists) Less

func (l Lists) Less(i, j int) bool

func (Lists) Swap

func (l Lists) Swap(i, j int)

Jump to

Keyboard shortcuts

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