wayland

package module
v0.0.0-...-e9155cf Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2018 License: MIT Imports: 8 Imported by: 3

README

Native Go library for speaking the wayland protocol. Work in progress.

License

MIT (same as the C implementation); see COPYING.

Documentation

Overview

+build amd64 arm 386 ppc64le mipsle mips64le

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingNul = errors.New("String in message body was missing NUL terminator.")

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func Dial

func Dial(path string) (*Client, error)

func (*Client) GetDisplay

func (c *Client) GetDisplay() *Display

func (*Client) GetRegistry

func (c *Client) GetRegistry() *Registry

func (*Client) MainLoop

func (c *Client) MainLoop() error

func (*Client) OnGlobal

func (c *Client) OnGlobal(callback func(Object))

func (*Client) Sync

func (c *Client) Sync(fn func()) error

type Fixed

type Fixed struct {
	// contains filtered or unexported fields
}

Signed 24.8 decimal numbers. It is a signed decimal type which offers a sign bit, 23 bits of integer precision and 8 bits of decimal precision.

type Object

type Object interface {
	Id() ObjectId
	Interface() string
	Version() uint32
}

type ObjectId

type ObjectId uint32

func (ObjectId) Id

func (o ObjectId) Id() ObjectId

type ServerError

type ServerError struct {
	ObjectId  ObjectId
	ErrorCode uint32
	Message   string
}

An error returned by the server.

func (*ServerError) Error

func (e *ServerError) Error() string

type UnknownInterface

type UnknownInterface struct {
	// contains filtered or unexported fields
}

func (*UnknownInterface) Id

func (i *UnknownInterface) Id() ObjectId

func (*UnknownInterface) Interface

func (i *UnknownInterface) Interface() string

func (*UnknownInterface) Version

func (i *UnknownInterface) Version() uint32

Directories

Path Synopsis
examples
internal
gen

Jump to

Keyboard shortcuts

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