presentationtime

package
v0.5.3 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 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, version uint32, h WpPresentationHandler) (*WpPresentation, error)

func (*WpPresentation) Base

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

func (*WpPresentation) Destroy

func (obj *WpPresentation) Destroy() error

func (*WpPresentation) Dispatch

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

func (*WpPresentation) Feedback

func (*WpPresentation) Handler

func (obj *WpPresentation) Handler() WpPresentationHandler

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, newHandler func(*WpPresentationFeedback) (WpPresentationFeedbackHandler, error)) (*WpPresentationFeedback, error)

func (*WpPresentationFeedback) Base

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

func (*WpPresentationFeedback) Dispatch

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

func (*WpPresentationFeedback) Handler

type WpPresentationFeedbackHandler

type WpPresentationFeedbackHandler interface {
	SyncOutput(obj *WpPresentationFeedback, output *wayland.WlOutput) error
	Presented(obj *WpPresentationFeedback, tvSecHi uint32, tvSecLo uint32, tvNsec uint32, refresh uint32, seqHi uint32, seqLo uint32, flags WpPresentationFeedbackKind) error
	Discarded(obj *WpPresentationFeedback) 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 {
	ClockID(obj *WpPresentation, clkID uint32) error
}

Jump to

Keyboard shortcuts

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