wlrlayershell

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT, MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ZwlrLayerShellV1Interface = &wire.Interface{
	Name:    "zwlr_layer_shell_v1",
	Version: 5,
	Requests: []wire.MessageSpec{
		{Name: "get_layer_surface", Since: 1, Args: []wire.Arg{{Name: "id", Type: wire.ArgNewID, Interface: "zwlr_layer_surface_v1"}, {Name: "surface", Type: wire.ArgObject, Interface: "wl_surface"}, {Name: "output", Type: wire.ArgObject, Interface: "wl_output", Nullable: true}, {Name: "layer", Type: wire.ArgUint}, {Name: "namespace", Type: wire.ArgString}}},
		{Name: "destroy", Since: 3, Destructor: true},
	},
}
View Source
var ZwlrLayerSurfaceV1Interface = &wire.Interface{
	Name:    "zwlr_layer_surface_v1",
	Version: 5,
	Requests: []wire.MessageSpec{
		{Name: "set_size", Since: 1, Args: []wire.Arg{{Name: "width", Type: wire.ArgUint}, {Name: "height", Type: wire.ArgUint}}},
		{Name: "set_anchor", Since: 1, Args: []wire.Arg{{Name: "anchor", Type: wire.ArgUint}}},
		{Name: "set_exclusive_zone", Since: 1, Args: []wire.Arg{{Name: "zone", Type: wire.ArgInt}}},
		{Name: "set_margin", Since: 1, Args: []wire.Arg{{Name: "top", Type: wire.ArgInt}, {Name: "right", Type: wire.ArgInt}, {Name: "bottom", Type: wire.ArgInt}, {Name: "left", Type: wire.ArgInt}}},
		{Name: "set_keyboard_interactivity", Since: 1, Args: []wire.Arg{{Name: "keyboard_interactivity", Type: wire.ArgUint}}},
		{Name: "get_popup", Since: 1, Args: []wire.Arg{{Name: "popup", Type: wire.ArgObject, Interface: "xdg_popup"}}},
		{Name: "ack_configure", Since: 1, Args: []wire.Arg{{Name: "serial", Type: wire.ArgUint}}},
		{Name: "destroy", Since: 1, Destructor: true},
		{Name: "set_layer", Since: 2, Args: []wire.Arg{{Name: "layer", Type: wire.ArgUint}}},
		{Name: "set_exclusive_edge", Since: 5, Args: []wire.Arg{{Name: "edge", Type: wire.ArgUint}}},
	},
	Events: []wire.MessageSpec{
		{Name: "configure", Since: 1, Args: []wire.Arg{{Name: "serial", Type: wire.ArgUint}, {Name: "width", Type: wire.ArgUint}, {Name: "height", Type: wire.ArgUint}}},
		{Name: "closed", Since: 1},
	},
}

Functions

This section is empty.

Types

type ZwlrLayerShellV1

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

func CreateZwlrLayerShellV1

func CreateZwlrLayerShellV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ZwlrLayerShellV1) (ZwlrLayerShellV1Handler, error)) (*ZwlrLayerShellV1, error)

func NewZwlrLayerShellV1

func NewZwlrLayerShellV1(p wire.Peer, id wire.ObjectID, version uint32, h ZwlrLayerShellV1Handler) (*ZwlrLayerShellV1, error)

func (*ZwlrLayerShellV1) Base

func (obj *ZwlrLayerShellV1) Base() *wire.Object

func (*ZwlrLayerShellV1) Dispatch

func (obj *ZwlrLayerShellV1) Dispatch(msg *wire.Message) error

func (*ZwlrLayerShellV1) Handler

func (*ZwlrLayerShellV1) ProtocolError

func (obj *ZwlrLayerShellV1) ProtocolError(code ZwlrLayerShellV1Error, format string, args ...any) error

type ZwlrLayerShellV1Error

type ZwlrLayerShellV1Error uint32
const (
	ZwlrLayerShellV1ErrorRole               ZwlrLayerShellV1Error = 0
	ZwlrLayerShellV1ErrorInvalidLayer       ZwlrLayerShellV1Error = 1
	ZwlrLayerShellV1ErrorAlreadyConstructed ZwlrLayerShellV1Error = 2
)

func (ZwlrLayerShellV1Error) Valid

func (v ZwlrLayerShellV1Error) Valid(version uint32) bool

type ZwlrLayerShellV1Handler

type ZwlrLayerShellV1Handler interface {
	GetLayerSurface(obj *ZwlrLayerShellV1, id *ZwlrLayerSurfaceV1, surface *wayland.WlSurface, output *wayland.WlOutput, layer ZwlrLayerShellV1Layer, namespace string) (ZwlrLayerSurfaceV1Handler, error)
	Destroy(obj *ZwlrLayerShellV1) error
}

type ZwlrLayerShellV1Layer

type ZwlrLayerShellV1Layer uint32
const (
	ZwlrLayerShellV1LayerBackground ZwlrLayerShellV1Layer = 0
	ZwlrLayerShellV1LayerBottom     ZwlrLayerShellV1Layer = 1
	ZwlrLayerShellV1LayerTop        ZwlrLayerShellV1Layer = 2
	ZwlrLayerShellV1LayerOverlay    ZwlrLayerShellV1Layer = 3
)

func (ZwlrLayerShellV1Layer) Valid

func (v ZwlrLayerShellV1Layer) Valid(version uint32) bool

type ZwlrLayerSurfaceV1

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

func CreateZwlrLayerSurfaceV1

func CreateZwlrLayerSurfaceV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*ZwlrLayerSurfaceV1) (ZwlrLayerSurfaceV1Handler, error)) (*ZwlrLayerSurfaceV1, error)

func NewZwlrLayerSurfaceV1

func NewZwlrLayerSurfaceV1(p wire.Peer, id wire.ObjectID, version uint32, h ZwlrLayerSurfaceV1Handler) (*ZwlrLayerSurfaceV1, error)

func (*ZwlrLayerSurfaceV1) Base

func (obj *ZwlrLayerSurfaceV1) Base() *wire.Object

func (*ZwlrLayerSurfaceV1) Dispatch

func (obj *ZwlrLayerSurfaceV1) Dispatch(msg *wire.Message) error

func (*ZwlrLayerSurfaceV1) Handler

func (*ZwlrLayerSurfaceV1) ProtocolError

func (obj *ZwlrLayerSurfaceV1) ProtocolError(code ZwlrLayerSurfaceV1Error, format string, args ...any) error

func (*ZwlrLayerSurfaceV1) SendClosed

func (obj *ZwlrLayerSurfaceV1) SendClosed() error

func (*ZwlrLayerSurfaceV1) SendConfigure

func (obj *ZwlrLayerSurfaceV1) SendConfigure(serial uint32, width uint32, height uint32) error

type ZwlrLayerSurfaceV1Anchor

type ZwlrLayerSurfaceV1Anchor uint32
const (
	ZwlrLayerSurfaceV1AnchorTop    ZwlrLayerSurfaceV1Anchor = 1
	ZwlrLayerSurfaceV1AnchorBottom ZwlrLayerSurfaceV1Anchor = 2
	ZwlrLayerSurfaceV1AnchorLeft   ZwlrLayerSurfaceV1Anchor = 4
	ZwlrLayerSurfaceV1AnchorRight  ZwlrLayerSurfaceV1Anchor = 8
)

func (ZwlrLayerSurfaceV1Anchor) Has

func (ZwlrLayerSurfaceV1Anchor) Valid

func (v ZwlrLayerSurfaceV1Anchor) Valid(version uint32) bool

type ZwlrLayerSurfaceV1Error

type ZwlrLayerSurfaceV1Error uint32
const (
	ZwlrLayerSurfaceV1ErrorInvalidSurfaceState          ZwlrLayerSurfaceV1Error = 0
	ZwlrLayerSurfaceV1ErrorInvalidSize                  ZwlrLayerSurfaceV1Error = 1
	ZwlrLayerSurfaceV1ErrorInvalidAnchor                ZwlrLayerSurfaceV1Error = 2
	ZwlrLayerSurfaceV1ErrorInvalidKeyboardInteractivity ZwlrLayerSurfaceV1Error = 3
	ZwlrLayerSurfaceV1ErrorInvalidExclusiveEdge         ZwlrLayerSurfaceV1Error = 4
)

func (ZwlrLayerSurfaceV1Error) Valid

func (v ZwlrLayerSurfaceV1Error) Valid(version uint32) bool

type ZwlrLayerSurfaceV1Handler

type ZwlrLayerSurfaceV1Handler interface {
	SetSize(obj *ZwlrLayerSurfaceV1, width uint32, height uint32) error
	SetAnchor(obj *ZwlrLayerSurfaceV1, anchor ZwlrLayerSurfaceV1Anchor) error
	SetExclusiveZone(obj *ZwlrLayerSurfaceV1, zone int32) error
	SetMargin(obj *ZwlrLayerSurfaceV1, top int32, right int32, bottom int32, left int32) error
	SetKeyboardInteractivity(obj *ZwlrLayerSurfaceV1, keyboardInteractivity ZwlrLayerSurfaceV1KeyboardInteractivity) error
	GetPopup(obj *ZwlrLayerSurfaceV1, popup *xdgshell.XdgPopup) error
	AckConfigure(obj *ZwlrLayerSurfaceV1, serial uint32) error
	Destroy(obj *ZwlrLayerSurfaceV1) error
	SetLayer(obj *ZwlrLayerSurfaceV1, layer ZwlrLayerShellV1Layer) error
	SetExclusiveEdge(obj *ZwlrLayerSurfaceV1, edge ZwlrLayerSurfaceV1Anchor) error
}

type ZwlrLayerSurfaceV1KeyboardInteractivity

type ZwlrLayerSurfaceV1KeyboardInteractivity uint32
const (
	ZwlrLayerSurfaceV1KeyboardInteractivityNone      ZwlrLayerSurfaceV1KeyboardInteractivity = 0
	ZwlrLayerSurfaceV1KeyboardInteractivityExclusive ZwlrLayerSurfaceV1KeyboardInteractivity = 1
	ZwlrLayerSurfaceV1KeyboardInteractivityOnDemand  ZwlrLayerSurfaceV1KeyboardInteractivity = 2
)

func (ZwlrLayerSurfaceV1KeyboardInteractivity) Valid

Jump to

Keyboard shortcuts

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