header

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	OnSelectedEnvChanged       func(env *domain.Environment)
	OnSelectedWorkspaceChanged func(env *domain.Workspace)
	OnThemeSwitched            func(isDark bool)
	// contains filtered or unexported fields
}

func NewHeader

func NewHeader(w *app.Window, envState *state.Environments, workspacesState *state.Workspaces, theme *chapartheme.Theme) *Header

func (*Header) Layout

func (h *Header) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions

func (*Header) LoadEnvs

func (h *Header) LoadEnvs(data []*domain.Environment)

func (*Header) LoadWorkspaces

func (h *Header) LoadWorkspaces(data []*domain.Workspace)

func (*Header) SetOnSearchResultSelect

func (h *Header) SetOnSearchResultSelect(fn func(*fuzzysearch.SearchResult))

func (*Header) SetSearchDataLoader

func (h *Header) SetSearchDataLoader(fn func() []fuzzysearch.Item)

func (*Header) SetSelectedEnvironment

func (h *Header) SetSelectedEnvironment(env *domain.Environment)

func (*Header) SetSelectedWorkspace

func (h *Header) SetSelectedWorkspace(ws *domain.Workspace)

func (*Header) SetTheme

func (h *Header) SetTheme(isDark bool)

Jump to

Keyboard shortcuts

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