component

package
v0.0.0-...-b423150 Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Page = 20

Functions

This section is empty.

Types

type Element

type Element struct {
	ToParent    bool
	Name        string // path
	Ext         string // extension
	IsDirectory bool   // dir
	FileSize    int64  //
	EditDate    time.Time

	Indicator *widget.Label // Selected Indicator
}

Element of folder

func NewElement

func NewElement(fileInfo os.FileInfo) (elm *Element)

NewElement New Element

func (*Element) GetWidget

func (elm *Element) GetWidget(pageCount int) (hBox fyne.CanvasObject)

GetWidget to Hbox

type PathTracker

type PathTracker struct {
	History []string //Path history

}

PathTracker path tracker

func (*PathTracker) Peek

func (pt *PathTracker) Peek() (s string, last int)

Peek History

func (*PathTracker) Pop

func (pt *PathTracker) Pop() (s string)

Pop History

func (*PathTracker) Push

func (pt *PathTracker) Push(path string)

Push History

type Tab

type Tab struct {
	PathLabel *widget.Label //Label

	Elements          []*Element //Elements
	FocusedElementIdx int        //Focused
	// contains filtered or unexported fields
}

Tab tab

func NewTab

func NewTab(path string) (t *Tab)

NewTab to create

func (*Tab) GetWidget

func (t *Tab) GetWidget() (vBox fyne.CanvasObject)

GetWidget from tab

func (*Tab) MoveDec

func (t *Tab) MoveDec(leap int)

MoveDec move

func (*Tab) MoveDown

func (t *Tab) MoveDown()

MoveDown focused element

func (*Tab) MoveIn

func (t *Tab) MoveIn()

MoveIn to focused element

func (*Tab) MoveInc

func (t *Tab) MoveInc(leap int)

MoveInc

func (*Tab) MoveLeft

func (t *Tab) MoveLeft()

MoveLeft focused element

func (*Tab) MoveOut

func (t *Tab) MoveOut()

MoveOut from current path

func (*Tab) MoveRight

func (t *Tab) MoveRight()

MoveRight focused element

func (*Tab) MoveUp

func (t *Tab) MoveUp()

MoveUp focused element

func (*Tab) Navigate

func (t *Tab) Navigate(path string)

Navigate to new path

Jump to

Keyboard shortcuts

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