Documentation ¶
Index ¶
- func BuildKeygroup(prefix string, keys ...string) string
- func BuildKeyset(groups ...string) string
- type Activater
- type C
- type D
- type Deactivater
- type Labeler
- type Layouter
- type Tab
- type TabEvent
- type TabEventType
- type Tabbar
- func (tb *Tabbar) Activate(key interface{})
- func (tb *Tabbar) Active() *Tab
- func (tb *Tabbar) ActiveIndex() int
- func (tb *Tabbar) Append(t *Tab)
- func (tb *Tabbar) Close(index int)
- func (tb *Tabbar) Events(gtx layout.Context) []TabEvent
- func (tb *Tabbar) IndexOf(key interface{}) int
- func (tb *Tabbar) Insert(index int, t *Tab)
- func (tb *Tabbar) InsertAfter(after, new *Tab)
- func (tb *Tabbar) Next()
- func (tb *Tabbar) Prev()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildKeygroup ¶
BuildKeygroup builds a group of keys, e.g. Short-[C,V,X]. The prefix is optional. If there's only one key in the list, does not create a [] group.
This function is handy because you can mention individual letters ("C", "V", "X"), which makes it easier to search for them later.
func BuildKeyset ¶
BuildKeyset joins groups together with "|".
Types ¶
type D ¶
type D = layout.Dimensions
type Deactivater ¶
type Deactivater interface {
Deactivate()
}
type Tab ¶
type TabEvent ¶
type TabEvent struct { Type TabEventType Tab Layouter }
type TabEventType ¶
type TabEventType int
const ( TabEventClose TabEventType = iota TabEventActivate )
type Tabbar ¶
type Tabbar struct { Tabs []*Tab // contains filtered or unexported fields }
func (*Tabbar) ActiveIndex ¶
func (*Tabbar) InsertAfter ¶
Click to show internal directories.
Click to hide internal directories.