items

package
v0.0.0-...-bf68151 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Items

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

func NewItems

func NewItems(items []int, activeItem int) *Items

func (*Items) Activate

func (i *Items) Activate(id int)

func (*Items) ActiveItem

func (i *Items) ActiveItem() int

func (*Items) Add

func (i *Items) Add(id int)

func (*Items) ChoiceCancelable

func (i *Items) ChoiceCancelable() bool

func (*Items) ChoiceWait

func (i *Items) ChoiceWait() bool

func (*Items) CombineItem

func (i *Items) CombineItem() int

func (*Items) Deactivate

func (i *Items) Deactivate()

func (*Items) DecodeMsgpack

func (i *Items) DecodeMsgpack(dec *msgpack.Decoder) error

func (*Items) EncodeMsgpack

func (i *Items) EncodeMsgpack(enc *msgpack.Encoder) error

func (*Items) EventItem

func (i *Items) EventItem() int

func (*Items) Includes

func (i *Items) Includes(id int) bool

func (*Items) InsertBefore

func (i *Items) InsertBefore(targetItemID int, insertItemID int)

func (*Items) Item

func (i *Items) Item(id int) *data.Item

func (*Items) ItemCount

func (i *Items) ItemCount(group int, owns bool) int

func (*Items) ItemIDAt

func (i *Items) ItemIDAt(index int) int

func (*Items) ItemNum

func (i *Items) ItemNum() int

func (*Items) Items

func (i *Items) Items() []*data.Item

func (*Items) Remove

func (i *Items) Remove(id int)

func (*Items) SetActiveItemGroup

func (i *Items) SetActiveItemGroup(group int)

func (*Items) SetChoiceMode

func (i *Items) SetChoiceMode(wait, cancelable bool)

func (*Items) SetCombineItem

func (i *Items) SetCombineItem(id int)

func (*Items) SetDataItems

func (i *Items) SetDataItems(dataItems []*data.Item)

func (*Items) SetEventItem

func (i *Items) SetEventItem(id int)

Jump to

Keyboard shortcuts

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