act

package
v0.0.0-...-5d3a6ab Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ERR = int32(iota)
	NONE
	QUIT
	PAUSE
	CLEAR
	HIDE
	SAVE
	REDRAW
	REMOVE

	// Effects
	FADE_OUT
	PULSE
)

Variables

View Source
var EventNames = map[int32]string{}
View Source
var NamedCommands = map[string]int32{
	"clear": CLEAR,
	"quit":  QUIT,
	"pause": PAUSE,
	"hide":  HIDE,
	"save":  SAVE,
	"rm":    REMOVE,
}
View Source
var NamedEffects = map[string]int32{
	"none":     NONE,
	"fade_out": FADE_OUT,
	"pulse":    PULSE,
}

Functions

func SendEvent

func SendEvent(a *Event, bind string) error

SendEvent gob encodes the arguments to the bind address

Types

type Event

type Event struct {
	Code      int32
	ImageURI  string
	Position  string
	X, Y      int32
	Delay     time.Duration
	FontColor string
	Font      string
	FontSize  int
	BgColor   string
	Text      string
	Multiply  int
	Points    []int32 // Points are for geometric shapes, x1,y1,...,xN,yN
	DimSpeed  int     // 1..255
	Tag       string  // Tagging events enables post manipulation
}

func NewEvent

func NewEvent() *Event

func (*Event) String

func (s *Event) String() string

Jump to

Keyboard shortcuts

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