project

package
v0.0.0-...-bbcbdef Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Unlicense Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bindables

func Bindables(driver gxui.Driver, theme *basic.Theme) []bind.Bindable

Bindables returns all bindables that relate to projects.

Types

type Add

type Add struct {
	status.General
	// contains filtered or unexported fields
}

func NewAdd

func NewAdd(driver gxui.Driver, theme *basic.Theme) *Add

func (*Add) Defaults

func (p *Add) Defaults() []fmt.Stringer

func (*Add) Exec

func (p *Add) Exec() error

func (*Add) Init

func (p *Add) Init(driver gxui.Driver, theme *basic.Theme)

func (*Add) Menu

func (p *Add) Menu() string

func (*Add) Name

func (p *Add) Name() string

func (*Add) Next

func (p *Add) Next() gxui.Focusable

func (*Add) Project

func (p *Add) Project() setting.Project

func (*Add) Reset

func (p *Add) Reset()

func (*Add) Start

func (p *Add) Start(control gxui.Control) gxui.Control

func (*Add) Store

func (p *Add) Store(e interface{}) bind.Status

type Adder

type Adder interface {
	Add(setting.Project)
}

type Binder

type Binder interface {
	Pop() []bind.Bindable
	Execute(bind.Bindable)
}

A Binder is a type which can bind bindables

type Executor

type Executor interface {
	Execute(bind.Bindable)
}

An Executor can execute bindables

type Find

type Find struct {
	status.General
	// contains filtered or unexported fields
}

func NewFind

func NewFind(theme gxui.Theme) *Find

func (*Find) Defaults

func (p *Find) Defaults() []fmt.Stringer

func (*Find) Exec

func (p *Find) Exec() error

func (*Find) Menu

func (p *Find) Menu() string

func (*Find) Name

func (p *Find) Name() string

func (*Find) Next

func (p *Find) Next() gxui.Focusable

func (*Find) Reset

func (p *Find) Reset()

func (*Find) Start

func (p *Find) Start(gxui.Control) gxui.Control

func (*Find) Store

func (p *Find) Store(elem interface{}) bind.Status

type Focuser

type Focuser interface {
	For(...focus.Opt) bind.Bindable
}

A Focuser is used to focus elements.

type Open

type Open struct {
	status.General
	// contains filtered or unexported fields
}

Open is an op that will open a project.

func (*Open) Exec

func (o *Open) Exec() error

func (*Open) For

func (o *Open) For(opts ...Opt) bind.Bindable

func (*Open) Name

func (o *Open) Name() string

func (*Open) Reset

func (o *Open) Reset()

func (*Open) Store

func (o *Open) Store(e interface{}) bind.Status

type Opt

type Opt func(*Open) error

An Opt is a type that can be used to modify Open ops.

func Name

func Name(name string) Opt

func Project

func Project(p setting.Project) Opt

type ProjectSetter

type ProjectSetter interface {
	SetProject(setting.Project)
}

ProjectSetter is any element that needs to be informed about the project being set.

Jump to

Keyboard shortcuts

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