tabman

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager[I comparable] struct {
	IDs  map[I]*container.TabItem
	Tabs map[*container.TabItem]I
}

func NewManager

func NewManager[I comparable]() *Manager[I]

func (*Manager[I]) AddTabItem

func (m *Manager[I]) AddTabItem(id I, tab *container.TabItem)

func (*Manager[I]) GetTabItem

func (m *Manager[I]) GetTabItem(id I) (*container.TabItem, bool)

func (*Manager[I]) RemoveTab

func (m *Manager[I]) RemoveTab(tab *container.TabItem)

Jump to

Keyboard shortcuts

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