tags

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewTagView

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

NewTagView represents a new tag UI component.

func MakeNewTagView

func MakeNewTagView() (*NewTagView, error)

MakeNewTagView creates a UI element for creating views.

func (*NewTagView) GetNewTagName

func (v *NewTagView) GetNewTagName() string

func (*NewTagView) GrabFocus added in v0.1.1

func (v *NewTagView) GrabFocus()

func (*NewTagView) Refresh

func (v *NewTagView) Refresh()

func (*NewTagView) SetSuggestions

func (v *NewTagView) SetSuggestions(suggestions []Tag)

func (*NewTagView) UI

func (v *NewTagView) UI() *gtk.Box

type Tag

type Tag struct {
	Name string
	Seen int
	// contains filtered or unexported fields
}

func (*Tag) SeenCount

func (t *Tag) SeenCount() string

type TagsUI

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

func MakeTagsView

func MakeTagsView() (*TagsUI, error)

func (*TagsUI) Add

func (v *TagsUI) Add(name string)

func (*TagsUI) Remove

func (v *TagsUI) Remove(name string)

func (*TagsUI) SetRemovedCallback

func (v *TagsUI) SetRemovedCallback(cb removeCallbackHandler)

func (*TagsUI) SetTags

func (v *TagsUI) SetTags(t []string)

SetTags sets the tags to the given list.

func (*TagsUI) Tags

func (v *TagsUI) Tags() []string

Tags returns the currently set tags.

func (*TagsUI) UI

func (v *TagsUI) UI() *gtk.FlowBox

Jump to

Keyboard shortcuts

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