wl

package
v0.0.0-...-22b451c Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCallbackListener

func NewCallbackListener() *cbListener

Types

type Client

type Client struct {
	Screens []*Screen
	Windows []*Window
	// contains filtered or unexported fields
}

func (*Client) Connect

func (c *Client) Connect(sockName string) error

func (*Client) CreateMemoryPool

func (c *Client) CreateMemoryPool(size uint32) (*wlp.ShmPool, []byte, error)

func (*Client) CreateWindow

func (c *Client) CreateWindow() (*Window, error)

func (*Client) Format

func (c *Client) Format(format uint32)

Implements Shm Listener

func (*Client) Ping

func (c *Client) Ping(serial uint32)

Implements ZydgShellV6Listener

func (*Client) Roundtrip

func (c *Client) Roundtrip() error

Roundtrip is a convenience wrapper around Sync. It will sleep the calling go-routine until all pending wayland commands are processed.

type Screen

type Screen struct {
	Mu             *sync.RWMutex
	X              int32
	Y              int32
	PhysicalWidth  int32
	PhysicalHeight int32
	Subpixel       int32
	Make           string
	Model          string
	Transform      int32
	Flags          uint32
	Width          int32
	Height         int32
	Refresh        int32
	Factor         int32
	// contains filtered or unexported fields
}

func (*Screen) Done

func (s *Screen) Done()

func (*Screen) Geometry

func (s *Screen) Geometry(x int32, y int32, physicalWidth int32, physicalHeight int32, subpixel int32, make string, model string, transform int32)

func (*Screen) Mode

func (s *Screen) Mode(flags uint32, width int32, height int32, refresh int32)

func (*Screen) Scale

func (s *Screen) Scale(factor int32)

type Window

type Window struct {
	*wlp.Surface
	*wlp.ZxdgSurfaceV6
	*wlp.ZxdgToplevelV6
	// contains filtered or unexported fields
}

func (*Window) Close

func (w *Window) Close()

func (*Window) Configure

func (w *Window) Configure(width int32, height int32, states []byte)

func (*Window) Enter

func (w *Window) Enter(output uint32)

func (*Window) InitGraphics

func (w *Window) InitGraphics() error

func (*Window) Leave

func (w *Window) Leave(output uint32)

func (*Window) Release

func (w *Window) Release()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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