components

package
v0.0.0-...-0583f8e Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultTabButton

func DefaultTabButton(gtx layout.Context, th *material.Theme, title string, isCurrent bool) layout.Dimensions

Types

type TabBarButton

type TabBarButton func(gtx layout.Context, isCurrent bool, theme *material.Theme) layout.Dimensions

type TabChild

type TabChild struct {
	Button  TabBarButton
	Content layout.Widget
	// contains filtered or unexported fields
}

func Tabbed

func Tabbed(title string, content layout.Widget) TabChild

type TabLayout

type TabLayout struct {
	Theme *material.Theme
	Tabs  []TabChild
	// contains filtered or unexported fields
}

func NewTabLayout

func NewTabLayout(th *material.Theme, tabs ...TabChild) *TabLayout

func (*TabLayout) Content

func (tl *TabLayout) Content(gtx layout.Context) layout.Dimensions

func (*TabLayout) CurrentTab

func (tl *TabLayout) CurrentTab() int

func (*TabLayout) Layout

func (tl *TabLayout) Layout(gtx layout.Context) layout.Dimensions

func (*TabLayout) SetCurrentTab

func (tl *TabLayout) SetCurrentTab(i int)

func (*TabLayout) TabBar

func (tl *TabLayout) TabBar(gtx layout.Context) layout.Dimensions

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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