slot

package
Version: v0.0.0-...-54b116d Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FocusNextCell = FocusCell{Delta: 1}
View Source
var FocusPrevCell = FocusCell{Delta: -1}
View Source
var SelectNextCell = FocusCell{Delta: 1}
View Source
var SelectPrevCell = FocusCell{Delta: -1}

Functions

This section is empty.

Types

type AddCell

type AddCell struct{ Type, Content string }

func (AddCell) SlotEvent

func (AddCell) SlotEvent()

type FocusCell

type FocusCell struct{ Delta int }

func (FocusCell) SlotEvent

func (FocusCell) SlotEvent()

type PlusButton

type PlusButton struct{}

func (PlusButton) Layout

func (b PlusButton) Layout(gtx *Context, button *widget.Button)

type SelectCell

type SelectCell struct{ Delta int }

func (SelectCell) SlotEvent

func (SelectCell) SlotEvent()

type Slot

type Slot interface {
	Index() int
	Layout(isLast bool, gtx *layout.Context)
}

func NewSlot

func NewSlot() Slot

type SlotEvent

type SlotEvent interface{ SlotEvent() }

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to