wlclient

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 2 Imported by: 2

Documentation

Overview

Package wlclient implements a wayland-client like api

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BufferAddListener

func BufferAddListener(b *wl.Buffer, data wl.BufferReleaseHandler)

func CallbackAddListener

func CallbackAddListener(c *wl.Callback, data wl.CallbackDoneHandler)

func CallbackDestroy

func CallbackDestroy(p *wl.Callback)

func DataDeviceAddListener

func DataDeviceAddListener(p *wl.DataDevice, h DataDeviceListener)

func DataDeviceDestroy

func DataDeviceDestroy(p *wl.DataDevice)

func DataDeviceManagerDestroy

func DataDeviceManagerDestroy(p *wl.DataDeviceManager)

func DataOfferAddListener

func DataOfferAddListener(p *wl.DataOffer, h DataOfferListener)

func DataOfferDestroy

func DataOfferDestroy(p *wl.DataOffer)

func DataSourceAddListener

func DataSourceAddListener(p *wl.DataSource, h DataSourceListener)

func DataSourceRemoveListener

func DataSourceRemoveListener(p *wl.DataSource, h DataSourceListener)

func DisplayConnect

func DisplayConnect(name []byte) (*wl.Display, error)

func DisplayDisconnect

func DisplayDisconnect(display *wl.Display)

func DisplayDispatch

func DisplayDispatch(d *wl.Display) error

func DisplayGetRegistry

func DisplayGetRegistry(d *wl.Display) (*wl.Registry, error)

func DisplayRoundtrip

func DisplayRoundtrip(d *wl.Display) error

func DisplayRun

func DisplayRun(d *wl.Display) (err error)

func KeyboardAddListener

func KeyboardAddListener(kb *wl.Keyboard, l KeyboardListener)

func KeyboardDestroy

func KeyboardDestroy(p *wl.Keyboard)

func KeyboardSetUserData

func KeyboardSetUserData(*wl.Keyboard, interface{})

func OutputAddListener

func OutputAddListener(o *wl.Output, h OutputListener)

func PointerAddListener

func PointerAddListener(p *wl.Pointer, h PointerListener)

func PointerDestroy

func PointerDestroy(p *wl.Pointer)

func PointerSetUserData

func PointerSetUserData(p *wl.Pointer, data interface{})

func RegionDestroy

func RegionDestroy(p *wl.Region)

func RegistryAddListener

func RegistryAddListener(r *wl.Registry, data RegistryListener)

func RegistryBindCompositorInterface

func RegistryBindCompositorInterface(r *wl.Registry, name uint32, version uint32) *wl.Compositor

func RegistryBindDataDeviceManagerInterface

func RegistryBindDataDeviceManagerInterface(
	r *wl.Registry,
	name uint32,
	version uint32,
) *wl.DataDeviceManager

func RegistryBindOutputInterface

func RegistryBindOutputInterface(r *wl.Registry, name uint32, version uint32) *wl.Output

func RegistryBindSeatInterface

func RegistryBindSeatInterface(r *wl.Registry, name uint32, version uint32) *wl.Seat

func RegistryBindShmInterface

func RegistryBindShmInterface(r *wl.Registry, name uint32, version uint32) *wl.Shm

func RegistryBindWmBaseInterface

func RegistryBindWmBaseInterface(r *wl.Registry, name uint32, version uint32) *xdg.WmBase

func RegistryDestroy

func RegistryDestroy(p *wl.Registry)

func SeatAddListener

func SeatAddListener(s *wl.Seat, data SeatListener)

func SeatDestroy

func SeatDestroy(p *wl.Seat)

func ShmAddListener

func ShmAddListener(p *wl.Shm, data wl.ShmFormatHandler)

func ShmDestroy

func ShmDestroy(p *wl.Shm)

func SubsurfaceDestroy

func SubsurfaceDestroy(p *wl.Subsurface)

func SurfaceAddListener

func SurfaceAddListener(
	s *wl.Surface,
	enter func(*wl.Surface, *wl.Output),
	leave func(*wl.Surface, *wl.Output),
)

func SurfaceSetUserData

func SurfaceSetUserData(p *wl.Surface, data interface{})

func TouchAddListener

func TouchAddListener(to *wl.Touch, tl TouchListener)

func TouchDestroy

func TouchDestroy(p *wl.Touch)

func TouchSetUserData

func TouchSetUserData(*wl.Touch, interface{})

Types

type RegistryListener

type RegistryListener interface {
	wl.RegistryGlobalHandler
	wl.RegistryGlobalRemoveHandler
}

type SeatListener

type SeatListener interface {
	wl.SeatCapabilitiesHandler
	wl.SeatNameHandler
}

type SurfaceEnterLeave

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

func (*SurfaceEnterLeave) HandleSurfaceEnter

func (el *SurfaceEnterLeave) HandleSurfaceEnter(en wl.SurfaceEnterEvent)

func (*SurfaceEnterLeave) HandleSurfaceLeave

func (el *SurfaceEnterLeave) HandleSurfaceLeave(le wl.SurfaceLeaveEvent)

Jump to

Keyboard shortcuts

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