rossshark

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package rossshark provides a widget that draws a hi-tech shark fin over the background and allows it to move across the screen. I hope this is faithful to Ross Jacobs' vision :-)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Direction

type Direction int
const (
	Backward Direction = 0
	Forward  Direction = iota
)

type Widget

type Widget struct {
	gowid.IWidget
	Dir Direction
	// contains filtered or unexported fields
}

func New

func New(w gowid.IWidget) *Widget

func (*Widget) Activate

func (w *Widget) Activate()

func (*Widget) Active

func (w *Widget) Active() bool

func (*Widget) Advance

func (w *Widget) Advance()

func (*Widget) C

func (w *Widget) C() <-chan time.Time

func (*Widget) Deactivate

func (w *Widget) Deactivate()

func (*Widget) Render

func (w *Widget) Render(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas

Jump to

Keyboard shortcuts

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