x

package
v0.0.0-...-147c7d7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Call

type Call func(Event) error

type Caller

type Caller interface {
	SetCaller(Xevent, Call)
	Call(Event) error
}

type Config

type Config interface {
	Order() int
	Configure(Handle) error
}

func DefaultConfig

func DefaultConfig(fn ConfigFn) Config

func NewConfig

func NewConfig(order int, fn ConfigFn) Config

type ConfigFn

type ConfigFn func(Handle) error

type Configuration

type Configuration interface {
	Add(...Config)
	AddFn(...ConfigFn)
	Configure(Handle) error
	Configured() bool
}

type Connection

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

type Ender

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

type Event

type Event struct {
	Tag Xevent
	Evt xgb.Event
	Err xgb.Error
}

type Eventer

type Eventer interface {
	Enqueue(xgb.Event, xgb.Error)
	Dequeue() Event
	ManageEventsOn(*xgb.Conn, chan struct{}, chan struct{}, chan struct{})
	Empty() bool
	Caller
	Ender
}

type Handle

type Handle interface {
	Connection
	Inform
	Eventer
	Manager
	atomic.Atomic
	icccm.ICCCM
}

func New

func New(display string, cnf ...Config) (Handle, error)

type Inform

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

type List

type List []Config

func (List) Len

func (l List) Len() int

func (List) Less

func (l List) Less(i, j int) bool

func (List) Swap

func (l List) Swap(i, j int)

type Manager

type Manager interface {
	Manage(*xgb.Conn, chan struct{}, chan struct{}, chan struct{})
}

type Xevent

type Xevent int
const (
	UnknownEvent Xevent = iota
	MapRequest
	DestroyNotify
	UnmapNotify
	ClientMessage
	ConfigureRequest
	PropertyNotify
	EnterNotify
	MotionNotify
	FocusIn
	ScreenChange
	KeyPressEvent
	KeyReleaseEvent
	ButtonPressEvent
	ButtonReleaseEvent
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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