godock: github.com/sqp/godock/widgets/gtk/indexiter Index | Files

package indexiter

import "github.com/sqp/godock/widgets/gtk/indexiter"

Index

Package Files

indexiter.go

type ByID Uses

type ByID interface {
    Append(iter *gtk.TreeIter)
    FindIter(int) (*gtk.TreeIter, bool)
    SetActive(int) bool
    Log() cdtype.Logger
}

ByID defines a simple list of gtk iter indexed by the position they were added. Use with a list of your useful data referenced in the same order.

func NewByID Uses

func NewByID(widget Widget, log cdtype.Logger) ByID

NewByID creates a list of gtk iter indexed by their position.

type ByString Uses

type ByString interface {
    Append(*gtk.TreeIter, string)
    FindID(string) (int, bool)
    SetActive(string) bool
}

ByString creates a list of gtk iter indexed by a key string.

func NewByString Uses

func NewByString(widget Widget, log cdtype.Logger) ByString

NewByString creates a list of gtk iter indexed by their key string.

type Widget Uses

type Widget interface {
    SetActiveIter(*gtk.TreeIter)
}

Widget defines a gtk widget with the SetActiveIter method.

Package indexiter imports 2 packages (graph) and is imported by 1 packages. Updated 2017-11-17. Refresh now. Tools for package owners.