presentationtime

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 WpPresentationFeedbackInterface = &wire.Interface{
	Name:    "wp_presentation_feedback",
	Version: 2,
	Events: []wire.MessageSpec{
		{Name: "sync_output", Since: 1, Args: []wire.Arg{{Name: "output", Type: wire.ArgObject, Interface: "wl_output"}}},
		{Name: "presented", Since: 1, Destructor: true, Args: []wire.Arg{{Name: "tv_sec_hi", Type: wire.ArgUint}, {Name: "tv_sec_lo", Type: wire.ArgUint}, {Name: "tv_nsec", Type: wire.ArgUint}, {Name: "refresh", Type: wire.ArgUint}, {Name: "seq_hi", Type: wire.ArgUint}, {Name: "seq_lo", Type: wire.ArgUint}, {Name: "flags", Type: wire.ArgUint}}},
		{Name: "discarded", Since: 1, Destructor: true},
	},
}
View Source
var WpPresentationInterface = &wire.Interface{
	Name:    "wp_presentation",
	Version: 2,
	Requests: []wire.MessageSpec{
		{Name: "destroy", Since: 1, Destructor: true},
		{Name: "feedback", Since: 1, Args: []wire.Arg{{Name: "surface", Type: wire.ArgObject, Interface: "wl_surface"}, {Name: "callback", Type: wire.ArgNewID, Interface: "wp_presentation_feedback"}}},
	},
	Events: []wire.MessageSpec{
		{Name: "clock_id", Since: 1, Args: []wire.Arg{{Name: "clk_id", Type: wire.ArgUint}}},
	},
}

Functions

This section is empty.

Types

type WpPresentation

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

func CreateWpPresentation

func CreateWpPresentation(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*WpPresentation) (WpPresentationHandler, error)) (*WpPresentation, error)

func NewWpPresentation

func NewWpPresentation(p wire.Peer, id wire.ObjectID, version uint32, h WpPresentationHandler) (*WpPresentation, error)

func (*WpPresentation) Base

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

func (*WpPresentation) Dispatch

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

func (*WpPresentation) Handler

func (obj *WpPresentation) Handler() WpPresentationHandler

func (*WpPresentation) ProtocolError

func (obj *WpPresentation) ProtocolError(code WpPresentationError, format string, args ...any) error

func (*WpPresentation) SendClockID

func (obj *WpPresentation) SendClockID(clkID uint32) error

type WpPresentationError

type WpPresentationError uint32
const (
	WpPresentationErrorInvalidTimestamp WpPresentationError = 0
	WpPresentationErrorInvalidFlag      WpPresentationError = 1
)

func (WpPresentationError) Valid

func (v WpPresentationError) Valid(version uint32) bool

type WpPresentationFeedback

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

func CreateWpPresentationFeedback

func CreateWpPresentationFeedback(p wire.Peer, id wire.ObjectID, version uint32) (*WpPresentationFeedback, error)

func NewWpPresentationFeedback

func NewWpPresentationFeedback(p wire.Peer, id wire.ObjectID, version uint32) (*WpPresentationFeedback, error)

func (*WpPresentationFeedback) Base

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

func (*WpPresentationFeedback) Dispatch

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

func (*WpPresentationFeedback) SendDiscarded

func (obj *WpPresentationFeedback) SendDiscarded() error

func (*WpPresentationFeedback) SendPresented

func (obj *WpPresentationFeedback) SendPresented(tvSecHi uint32, tvSecLo uint32, tvNsec uint32, refresh uint32, seqHi uint32, seqLo uint32, flags WpPresentationFeedbackKind) error

func (*WpPresentationFeedback) SendSyncOutput

func (obj *WpPresentationFeedback) SendSyncOutput(output *wayland.WlOutput) error

type WpPresentationFeedbackKind

type WpPresentationFeedbackKind uint32
const (
	WpPresentationFeedbackKindVsync        WpPresentationFeedbackKind = 1
	WpPresentationFeedbackKindHwClock      WpPresentationFeedbackKind = 2
	WpPresentationFeedbackKindHwCompletion WpPresentationFeedbackKind = 4
	WpPresentationFeedbackKindZeroCopy     WpPresentationFeedbackKind = 8
)

func (WpPresentationFeedbackKind) Has

func (WpPresentationFeedbackKind) Valid

func (v WpPresentationFeedbackKind) Valid(version uint32) bool

type WpPresentationHandler

type WpPresentationHandler interface {
	Destroy(obj *WpPresentation) error
	Feedback(obj *WpPresentation, surface *wayland.WlSurface, callback *WpPresentationFeedback) error
}

Jump to

Keyboard shortcuts

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