cfg

package
v1.9.21 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: Unlicense Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func New

func New(cx *conte.Xt, w *gui.Window) *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