tabview

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type C

type C = layout.Context

type D

type D = layout.Dimensions

type TabItem

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

func NewTabItem

func NewTabItem(title string, wgt func(gtx C, th *theme.Theme) D) *TabItem

func (*TabItem) LayoutTab

func (item *TabItem) LayoutTab(gtx C, th *theme.Theme) D

func (*TabItem) LayoutWidget

func (item *TabItem) LayoutWidget(gtx C, th *theme.Theme) D

func (*TabItem) Update

func (item *TabItem) Update(gtx layout.Context) bool

type TabView

type TabView struct {
	Axis layout.Axis
	// contains filtered or unexported fields
}

func NewTabView

func NewTabView(inset layout.Inset, item ...*TabItem) *TabView

func (*TabView) Layout

func (tv *TabView) Layout(gtx C, th *theme.Theme) D

func (*TabView) Update

func (tv *TabView) Update(gtx C)

Jump to

Keyboard shortcuts

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