gtkui

package module
v0.2.0 Latest Latest
Warning

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

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

README

go-gtkui

GTK UI for ATS in golang

Documentation

Index

Constants

View Source
const (
	ColorUp   = "red"
	ColorDown = "yellow"
	ColorEq   = "black"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

func NewGtkLogger

func NewGtkLogger() (*Logger, error)

func (*Logger) Flush added in v0.2.0

func (w *Logger) Flush()

func (*Logger) Win

func (w *Logger) Win() *gtk.ScrolledWindow

func (*Logger) Write

func (w *Logger) Write(p []byte) (n int, err error)

type QuoteView

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

QuoteView Quotes display view

column 0	quote idx
column 1	color
column 2... column of quotes

func NewQuoteView

func NewQuoteView(colTitle []string) (*QuoteView, error)

Creates a tree view and the list store that holds its data

colTitle	column title
			column 0 MUST be symbol

func (*QuoteView) AddRow

func (w *QuoteView) AddRow(sym string)

Append a row to the list store for the tree view

func (*QuoteView) FirstRow added in v0.2.0

func (w *QuoteView) FirstRow() (*gtk.TreeIter, bool)

func (*QuoteView) NextRow added in v0.2.0

func (w *QuoteView) NextRow(it *gtk.TreeIter) bool

func (*QuoteView) RowColor added in v0.2.0

func (w *QuoteView) RowColor(it *gtk.TreeIter) string

func (*QuoteView) RowId added in v0.2.0

func (w *QuoteView) RowId(it *gtk.TreeIter) int

func (*QuoteView) SetRowColor added in v0.2.0

func (w *QuoteView) SetRowColor(it *gtk.TreeIter, cc string)

func (*QuoteView) UpdateRow added in v0.1.1

func (w *QuoteView) UpdateRow(iter *gtk.TreeIter, v []interface{}) error

func (*QuoteView) Win

func (w *QuoteView) Win() *gtk.TreeView

Jump to

Keyboard shortcuts

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