wlrlayershell

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 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) (*ZwlrLayerShellV1, error)

func NewZwlrLayerShellV1

func NewZwlrLayerShellV1(p wire.Peer, version uint32) (*ZwlrLayerShellV1, error)

func (*ZwlrLayerShellV1) Base

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

func (*ZwlrLayerShellV1) Destroy

func (obj *ZwlrLayerShellV1) Destroy() error

func (*ZwlrLayerShellV1) Dispatch

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

func (*ZwlrLayerShellV1) GetLayerSurface

func (obj *ZwlrLayerShellV1) GetLayerSurface(h ZwlrLayerSurfaceV1Handler, surface *wayland.WlSurface, output *wayland.WlOutput, layer ZwlrLayerShellV1Layer, namespace string) (*ZwlrLayerSurfaceV1, 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 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, version uint32, h ZwlrLayerSurfaceV1Handler) (*ZwlrLayerSurfaceV1, error)

func (*ZwlrLayerSurfaceV1) AckConfigure

func (obj *ZwlrLayerSurfaceV1) AckConfigure(serial uint32) error

func (*ZwlrLayerSurfaceV1) Base

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

func (*ZwlrLayerSurfaceV1) Destroy

func (obj *ZwlrLayerSurfaceV1) Destroy() error

func (*ZwlrLayerSurfaceV1) Dispatch

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

func (*ZwlrLayerSurfaceV1) GetPopup

func (obj *ZwlrLayerSurfaceV1) GetPopup(popup *xdgshell.XdgPopup) error

func (*ZwlrLayerSurfaceV1) Handler

func (*ZwlrLayerSurfaceV1) SetAnchor

func (obj *ZwlrLayerSurfaceV1) SetAnchor(anchor ZwlrLayerSurfaceV1Anchor) error

func (*ZwlrLayerSurfaceV1) SetExclusiveEdge

func (obj *ZwlrLayerSurfaceV1) SetExclusiveEdge(edge ZwlrLayerSurfaceV1Anchor) error

func (*ZwlrLayerSurfaceV1) SetExclusiveZone

func (obj *ZwlrLayerSurfaceV1) SetExclusiveZone(zone int32) error

func (*ZwlrLayerSurfaceV1) SetKeyboardInteractivity

func (obj *ZwlrLayerSurfaceV1) SetKeyboardInteractivity(keyboardInteractivity ZwlrLayerSurfaceV1KeyboardInteractivity) error

func (*ZwlrLayerSurfaceV1) SetLayer

func (obj *ZwlrLayerSurfaceV1) SetLayer(layer ZwlrLayerShellV1Layer) error

func (*ZwlrLayerSurfaceV1) SetMargin

func (obj *ZwlrLayerSurfaceV1) SetMargin(top int32, right int32, bottom int32, left int32) error

func (*ZwlrLayerSurfaceV1) SetSize

func (obj *ZwlrLayerSurfaceV1) SetSize(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 {
	Configure(obj *ZwlrLayerSurfaceV1, serial uint32, width uint32, height uint32) error
	Closed(obj *ZwlrLayerSurfaceV1) 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