flview

package
v0.0.0-...-e3eb743 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColID

type ColID int
const (
	COLUMN_ICON ColID = iota
	COLUMN_NAME
	COLUMN_PATH
	COLUMN_SIZE
	COLUMN_ID
	COLUMN_USIZE
	COLUMN_BHASH
)

type FLView

type FLView struct {
	*gtk.TreeView
	// contains filtered or unexported fields
}

func New

func New() *FLView

func (*FLView) AddRow

func (flv *FLView) AddRow(image *gdk.Pixbuf, filename, path, size, fileID, bhash string)

func (*FLView) Clear

func (flv *FLView) Clear()

func (*FLView) FileAt

func (flv *FLView) FileAt(row int) (*File, error)

func (*FLView) ItemCount

func (flv *FLView) ItemCount() int

func (*FLView) Model

func (flv *FLView) Model() *gtk.ListStore

func (*FLView) Remove

func (flv *FLView) Remove(files []File)

func (*FLView) RemoveSelected

func (flv *FLView) RemoveSelected()

func (*FLView) SelectedFiles

func (flv *FLView) SelectedFiles() []File

func (*FLView) TreeViewWidget

func (flv *FLView) TreeViewWidget() *gtk.TreeView

type File

type File struct {
	Name  string
	ID    string
	BHash string
	Path  string
	Size  uint64
	HSize string
}

Jump to

Keyboard shortcuts

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