viewporter

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ViewportRequestDestroy        uint16 = 0
	ViewportRequestSetSource      uint16 = 1
	ViewportRequestSetDestination uint16 = 2
)
View Source
const (
	ViewporterRequestDestroy     uint16 = 0
	ViewporterRequestGetViewport uint16 = 1
)
View Source
const InterfaceViewport = "wp_viewport"
View Source
const InterfaceViewporter = "wp_viewporter"
View Source
const VersionViewport = 1
View Source
const VersionViewporter = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type Viewport

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

func BindViewport

func BindViewport(b wayland.Binder, name uint32, version uint32) (*Viewport, error)

func NewViewport

func NewViewport(p *wayland.Proxy) *Viewport

func (*Viewport) Destroy

func (o *Viewport) Destroy() error

func (*Viewport) Proxy

func (o *Viewport) Proxy() *wayland.Proxy

func (*Viewport) SetDestination

func (o *Viewport) SetDestination(width int32, height int32) error

func (*Viewport) SetSource

func (o *Viewport) SetSource(x wire.Fixed, y wire.Fixed, width wire.Fixed, height wire.Fixed) error

type ViewportDestroyRequest

type ViewportDestroyRequest struct {
}

func (*ViewportDestroyRequest) Marshal

func (r *ViewportDestroyRequest) Marshal(w *wire.Writer) error

func (*ViewportDestroyRequest) Opcode

func (r *ViewportDestroyRequest) Opcode() uint16

func (*ViewportDestroyRequest) Since

func (r *ViewportDestroyRequest) Since() int

type ViewportError

type ViewportError uint32
const (
	ViewportErrorBadValue    ViewportError = 0
	ViewportErrorBadSize     ViewportError = 1
	ViewportErrorOutOfBuffer ViewportError = 2
	ViewportErrorNoSurface   ViewportError = 3
)

type ViewportSetDestinationRequest

type ViewportSetDestinationRequest struct {
	Width  int32
	Height int32
}

func (*ViewportSetDestinationRequest) Marshal

func (*ViewportSetDestinationRequest) Opcode

func (*ViewportSetDestinationRequest) Since

type ViewportSetSourceRequest

type ViewportSetSourceRequest struct {
	X      wire.Fixed
	Y      wire.Fixed
	Width  wire.Fixed
	Height wire.Fixed
}

func (*ViewportSetSourceRequest) Marshal

func (r *ViewportSetSourceRequest) Marshal(w *wire.Writer) error

func (*ViewportSetSourceRequest) Opcode

func (r *ViewportSetSourceRequest) Opcode() uint16

func (*ViewportSetSourceRequest) Since

func (r *ViewportSetSourceRequest) Since() int

type Viewporter

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

func BindViewporter

func BindViewporter(b wayland.Binder, name uint32, version uint32) (*Viewporter, error)

func NewViewporter

func NewViewporter(p *wayland.Proxy) *Viewporter

func (*Viewporter) Destroy

func (o *Viewporter) Destroy() error

func (*Viewporter) GetViewport

func (o *Viewporter) GetViewport(surface wire.ObjectID) (*Viewport, error)

func (*Viewporter) Proxy

func (o *Viewporter) Proxy() *wayland.Proxy

type ViewporterDestroyRequest

type ViewporterDestroyRequest struct {
}

func (*ViewporterDestroyRequest) Marshal

func (r *ViewporterDestroyRequest) Marshal(w *wire.Writer) error

func (*ViewporterDestroyRequest) Opcode

func (r *ViewporterDestroyRequest) Opcode() uint16

func (*ViewporterDestroyRequest) Since

func (r *ViewporterDestroyRequest) Since() int

type ViewporterError

type ViewporterError uint32
const (
	ViewporterErrorViewportExists ViewporterError = 0
)

type ViewporterGetViewportRequest

type ViewporterGetViewportRequest struct {
	ID      wire.NewID
	Surface wire.ObjectID
}

func (*ViewporterGetViewportRequest) Marshal

func (*ViewporterGetViewportRequest) Opcode

func (*ViewporterGetViewportRequest) Since

func (r *ViewporterGetViewportRequest) Since() int

Jump to

Keyboard shortcuts

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