bwGoScreenManager

package module
v0.0.0-...-9d9cc8b Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2016 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HostWebUI

func HostWebUI(port int, web_KeyPresses chan string, web_ImageOutput chan gomonochromebitmap.MonoBitmap)

Types

type AppConnection

type AppConnection struct {
	Display       chan gomonochromebitmap.MonoBitmap
	Notifications chan string
	KeyPresses    chan string
	Quit          chan bool

	Keylist []string
}

App connection. Scrollin etc.. are handled on application software

func InitAppConnection

func InitAppConnection() AppConnection

func (*AppConnection) RunClientSide

func (p *AppConnection) RunClientSide(name string, usedKeys []string, connection *net.Conn)

Runs client side. Client software pushes images. This recieves keypresses

func (*AppConnection) RunServerSide

func (p *AppConnection) RunServerSide(name string, connection *net.Conn)

Runs server side

type ScreenManager

type ScreenManager struct {
	ActiveApp   string //Application name
	AppSelected bool   //If not selected. blink box around display + name?
	ScreenW     int    //Screen dimensions, this keep target size visible
	ScreenH     int
	AppChanged  chan string                        //Notify, application change
	KeyPresses  chan string                        //Presses. Empty string "" means keys released
	ImageOutput chan gomonochromebitmap.MonoBitmap //Assigned by who is using manager
	RunningApps map[string]*AppConnection          //Connecte
	// contains filtered or unexported fields
}

func InitScreenManager

func InitScreenManager(w int, h int, tcpPort int, imageOut chan gomonochromebitmap.MonoBitmap, keys chan string) *ScreenManager

func (*ScreenManager) ChangeProg

func (p *ScreenManager) ChangeProg(forward bool)

Switch to next program

func (*ScreenManager) ProgNameList

func (p *ScreenManager) ProgNameList() ([]string, int)

Lists All running programs. Returns index of currently selected program

func (*ScreenManager) Run

func (p *ScreenManager) Run()

Runs screen manager

Jump to

Keyboard shortcuts

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