ui

package
v0.0.0-...-57434b4 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

3 january 2016

2 january 2016

2 january 2016

3 january 2016

6 january 2016

3 january 2016

3 january 2016

2 january 2016

2 january 2016

2 january 2016

2 january 2016

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(f func()) error

func OnShouldQuit

func OnShouldQuit(f func() bool)

func QueueMain

func QueueMain(f func())

func Quit

func Quit()

Types

type Box

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

func NewBox

func NewBox(top Control, bottom Control) *Box

func (*Box) Destroy

func (b *Box) Destroy()

func (*Box) Handle

func (b *Box) Handle() uintptr

type Control

type Control interface {
	Destroy()
	Handle() uintptr
}

type Margin

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

func NewMargin

func NewMargin(child Control) *Margin

func (*Margin) Destroy

func (m *Margin) Destroy()

func (*Margin) Handle

func (m *Margin) Handle() uintptr

type SearchEntry

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

func NewSearchEntry

func NewSearchEntry() *SearchEntry

func (*SearchEntry) Destroy

func (s *SearchEntry) Destroy()

func (*SearchEntry) Handle

func (s *SearchEntry) Handle() uintptr

func (*SearchEntry) OnChanged

func (s *SearchEntry) OnChanged(f func())

func (*SearchEntry) Text

func (s *SearchEntry) Text() string

type SearchIndex

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

func NewSearchIndex

func NewSearchIndex() *SearchIndex

func (*SearchIndex) Add

func (s *SearchIndex) Add(key string, text string)

func (*SearchIndex) Search

func (s *SearchIndex) Search(searchFor string) *SearchResults

type SearchResults

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

func (*SearchResults) Dismiss

func (r *SearchResults) Dismiss()

func (*SearchResults) Next

func (r *SearchResults) Next() bool

func (*SearchResults) Result

func (r *SearchResults) Result() string

type Splitter

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

func NewSplitter

func NewSplitter(left Control, right Control) *Splitter

func (*Splitter) Destroy

func (s *Splitter) Destroy()

func (*Splitter) Handle

func (s *Splitter) Handle() uintptr

func (*Splitter) SetPosition

func (s *Splitter) SetPosition(pos int)

type Tree

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

func NewTree

func NewTree() *Tree

func (*Tree) Destroy

func (t *Tree) Destroy()

func (*Tree) Handle

func (t *Tree) Handle() uintptr

func (*Tree) OnSelected

func (t *Tree) OnSelected(f func())

func (*Tree) Selected

func (t *Tree) Selected() TreeNode

func (*Tree) SetModel

func (t *Tree) SetModel(model *TreeModel)

func (*Tree) SetSelected

func (t *Tree) SetSelected(node TreeNode)

TODO handle nil

type TreeModel

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

func NewTreeModel

func NewTreeModel(root TreeModelRootNodes) *TreeModel

func (*TreeModel) Destroy

func (m *TreeModel) Destroy()

func (*TreeModel) NodeChanged

func (m *TreeModel) NodeChanged(node TreeNode)

func (*TreeModel) RowDeleted

func (m *TreeModel) RowDeleted(node TreeNode, parent TreeNode, index int)

TODO should this be called before or after the node is updated?

func (*TreeModel) RowInserted

func (m *TreeModel) RowInserted(node TreeNode, parent TreeNode, index int)

TODO for this and RowDeleted, wrap the whole thing in one big beginUpdates/endUpdates block

type TreeModelRootNodes

type TreeModelRootNodes interface {
	RootNodes() []TreeNode
}

type TreeNode

type TreeNode interface {
	TreeNodeText() string
	TreeNodeParent() TreeNode
	TreeNodeChildren() []TreeNode
}

type WebView

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

func NewWebView

func NewWebView() *WebView

func (*WebView) Destroy

func (w *WebView) Destroy()

func (*WebView) Handle

func (w *WebView) Handle() uintptr

func (*WebView) Navigate

func (w *WebView) Navigate(to *url.URL)

func (*WebView) NavigateFile

func (w *WebView) NavigateFile(to string, anchor string)

func (*WebView) OnLinkClicked

func (w *WebView) OnLinkClicked(f func(target *url.URL) bool)

func (*WebView) OnLoadFailed

func (w *WebView) OnLoadFailed(f func(sysError uintptr))

type Window

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

func NewWindow

func NewWindow(title string, width int, height int) *Window

func (*Window) Center

func (w *Window) Center()

func (*Window) Destroy

func (w *Window) Destroy()

func (*Window) Handle

func (w *Window) Handle() uintptr

func (*Window) Move

func (w *Window) Move(x int, y int)

func (*Window) MsgBoxSysError

func (w *Window) MsgBoxSysError(sysError uintptr)

func (*Window) OnClosing

func (w *Window) OnClosing(f func() bool)

func (*Window) SetChild

func (w *Window) SetChild(c Control)

func (*Window) Show

func (w *Window) Show()

Jump to

Keyboard shortcuts

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