wm

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection interface {
	Close() error
	Conn() any
	Windows() ([]Window, error)
	DisplayImage(img image.Image, windowName string)
	Resources() (environ.Properties, error)
}

func NewConn

func NewConn(env environ.Properties) (Connection, error)

type Implementation

type Implementation interface {
	Name() string
	Conn(env environ.Properties) (Connection, error)
	CreateWindow(env environ.Properties, name, class, instance string, isWindow IsWindowFunc) Window
}

type IsWindowFunc

type IsWindowFunc = func(Window) (is bool, p environ.Properties)

type Window

type Window interface {
	WindowConn() Connection
	WindowFind() error
	WindowType() string // x11, windows, ...
	WindowName() string
	WindowClass() string
	WindowInstance() string
	WindowID() uint64
	WindowPID() uint64
	DeviceContext() uintptr
	Screenshot() (image.Image, error)
	Close() error
}

func CreateWindow

func CreateWindow(name, class, instance string) Window

func NewWindow

func NewWindow(isWindow IsWindowFunc, env environ.Properties) Window

type WindowProvider

type WindowProvider = func(isWindow IsWindowFunc, env environ.Properties) Window

WindowProvider...

env contains infos about the window: env.LookupEnv(): "WINDOWID" env.Property(): propkeys.TerminalPID ("general_termPID")

func SetImpl

func SetImpl(impl Implementation) WindowProvider

Directories

Path Synopsis
Package framebuffer is an interface to linux framebuffer device.
Package framebuffer is an interface to linux framebuffer device.
actual implementation (for X11, Windows)
actual implementation (for X11, Windows)

Jump to

Keyboard shortcuts

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