viewporter

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: 2 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 WpViewportInterface = &wire.Interface{
	Name:    "wp_viewport",
	Version: 1,
	Requests: []wire.MessageSpec{
		{Name: "destroy", Since: 1, Destructor: true},
		{Name: "set_source", Since: 1, Args: []wire.Arg{{Name: "x", Type: wire.ArgFixed}, {Name: "y", Type: wire.ArgFixed}, {Name: "width", Type: wire.ArgFixed}, {Name: "height", Type: wire.ArgFixed}}},
		{Name: "set_destination", Since: 1, Args: []wire.Arg{{Name: "width", Type: wire.ArgInt}, {Name: "height", Type: wire.ArgInt}}},
	},
}
View Source
var WpViewporterInterface = &wire.Interface{
	Name:    "wp_viewporter",
	Version: 1,
	Requests: []wire.MessageSpec{
		{Name: "destroy", Since: 1, Destructor: true},
		{Name: "get_viewport", Since: 1, Args: []wire.Arg{{Name: "id", Type: wire.ArgNewID, Interface: "wp_viewport"}, {Name: "surface", Type: wire.ArgObject, Interface: "wl_surface"}}},
	},
}

Functions

This section is empty.

Types

type WpViewport

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

func CreateWpViewport

func CreateWpViewport(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*WpViewport) (WpViewportHandler, error)) (*WpViewport, error)

func NewWpViewport

func NewWpViewport(p wire.Peer, id wire.ObjectID, version uint32, h WpViewportHandler) (*WpViewport, error)

func (*WpViewport) Base

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

func (*WpViewport) Dispatch

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

func (*WpViewport) Handler

func (obj *WpViewport) Handler() WpViewportHandler

func (*WpViewport) ProtocolError

func (obj *WpViewport) ProtocolError(code WpViewportError, format string, args ...any) error

type WpViewportError

type WpViewportError uint32
const (
	WpViewportErrorBadValue    WpViewportError = 0
	WpViewportErrorBadSize     WpViewportError = 1
	WpViewportErrorOutOfBuffer WpViewportError = 2
	WpViewportErrorNoSurface   WpViewportError = 3
)

func (WpViewportError) Valid

func (v WpViewportError) Valid(version uint32) bool

type WpViewportHandler

type WpViewportHandler interface {
	Destroy(obj *WpViewport) error
	SetSource(obj *WpViewport, x wire.Fixed, y wire.Fixed, width wire.Fixed, height wire.Fixed) error
	SetDestination(obj *WpViewport, width int32, height int32) error
}

type WpViewporter

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

func CreateWpViewporter

func CreateWpViewporter(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*WpViewporter) (WpViewporterHandler, error)) (*WpViewporter, error)

func NewWpViewporter

func NewWpViewporter(p wire.Peer, id wire.ObjectID, version uint32, h WpViewporterHandler) (*WpViewporter, error)

func (*WpViewporter) Base

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

func (*WpViewporter) Dispatch

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

func (*WpViewporter) Handler

func (obj *WpViewporter) Handler() WpViewporterHandler

func (*WpViewporter) ProtocolError

func (obj *WpViewporter) ProtocolError(code WpViewporterError, format string, args ...any) error

type WpViewporterError

type WpViewporterError uint32
const (
	WpViewporterErrorViewportExists WpViewporterError = 0
)

func (WpViewporterError) Valid

func (v WpViewporterError) Valid(version uint32) bool

type WpViewporterHandler

type WpViewporterHandler interface {
	Destroy(obj *WpViewporter) error
	GetViewport(obj *WpViewporter, id *WpViewport, surface *wayland.WlSurface) (WpViewportHandler, error)
}

Jump to

Keyboard shortcuts

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