handler

package
v0.0.0-...-24dab48 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2015 License: MIT, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TopLeft oriented = iota
	Top
	TopRight
	Right
	BottomRight
	Bottom
	BottomLeft
	Left
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action int
const (
	NoAction Action = iota
	Focus
	Move
	ResizeSide
	ResizeCorner
)

type Call

type Call func(xgb.Event) error

type Callr

type Callr interface {
	SetEventFn(string, Call)
	Call(string, xgb.Event)
}

type Connectr

type Connectr interface {
	Conn() *xgb.Conn
}

type Endr

type Endr interface {
	End()
	Ending() bool
}

type Eventr

type Eventr interface {
	Enqueue(xgb.Event, xgb.Error)
	Dequeue() (xgb.Event, xgb.Error)
	Handle(chan struct{}, chan struct{}, chan struct{})
	Empty() bool
	Endr
}

type Handler

type Handler interface {
	Connectr
	Informr
	Eventr
	Callr
	atomic.Atomic
	icccm.ICCCM
}

func New

func New(display string, ewhm []string, logr *log.Logger) (Handler, error)

type Informr

type Informr interface {
	Setup() *xproto.SetupInfo
	Screen() *xproto.ScreenInfo
	Root() xproto.Window
}

type Motion

type Motion interface {
	Enable()
	Disable()
	Renew()
}

func NewMotion

func NewMotion(c *xgb.Conn, w, r xproto.Window) Motion

type Pointer

type Pointer interface {
	Grab(Action)
	Ungrab()
	Center(xproto.Rectangle)
	Track(int16, int16)
}

func NewPointer

func NewPointer() Pointer

Jump to

Keyboard shortcuts

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