presentation

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ERROR_INVALID_FLAG = 1

ERROR_INVALID_FLAG is the error invalid_flag value.

View Source
const ERROR_INVALID_TIMESTAMP = 0

ERROR_INVALID_TIMESTAMP is the error invalid_timestamp value.

View Source
const KIND_HW_CLOCK = 0x2

KIND_HW_CLOCK is the kind hw_clock value.

View Source
const KIND_HW_COMPLETION = 0x4

KIND_HW_COMPLETION is the kind hw_completion value.

View Source
const KIND_VSYNC = 0x1

KIND_VSYNC is the kind vsync value.

View Source
const KIND_ZERO_COPY = 0x8

KIND_ZERO_COPY is the kind zero_copy value.

View Source
const WpPresentationFeedbackInterface = "wp_presentation_feedback"

WpPresentationFeedbackInterface is the protocol interface name.

View Source
const WpPresentationInterface = "wp_presentation"

WpPresentationInterface is the protocol interface name.

Variables

This section is empty.

Functions

This section is empty.

Types

type WpPresentation

type WpPresentation struct {
	wl.BaseProxy
	// contains filtered or unexported fields
}

WpPresentation is the generated binding for wp_presentation version 2.

func NewWpPresentation

func NewWpPresentation(ctx *wl.Context) *WpPresentation

NewWpPresentation returns an unbound WpPresentation.

func (*WpPresentation) Destroy

func (o *WpPresentation) Destroy() error

Informs the server that the client will no longer be using this protocol object. Existing objects created by this object are not affected.

func (*WpPresentation) Dispatch

func (o *WpPresentation) Dispatch(event *wl.Event)

Dispatch decodes one event on wp_presentation and calls the registered handlers.

func (*WpPresentation) EventSignature

func (o *WpPresentation) EventSignature(opcode uint16) (string, bool)

EventSignature returns the declared event argument types in wire order.

func (*WpPresentation) Feedback

Request presentation feedback for the current content submission on the given surface. This creates a new presentation_feedback object, which will deliver the feedback information once. If multiple presentation_feedback objects are created for the same submission, they will all deliver the same information. For details on what information is returned, see the presentation_feedback interface.

func (*WpPresentation) OnClockId

func (o *WpPresentation) OnClockId(handler func(clkId uint32))

OnClockId registers a handler for the clock_id event.

Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.

type WpPresentationFeedback

type WpPresentationFeedback struct {
	wl.BaseProxy
	// contains filtered or unexported fields
}

WpPresentationFeedback is the generated binding for wp_presentation_feedback version 2.

func NewWpPresentationFeedback

func NewWpPresentationFeedback(ctx *wl.Context) *WpPresentationFeedback

NewWpPresentationFeedback returns an unbound WpPresentationFeedback.

func (*WpPresentationFeedback) Dispatch

func (o *WpPresentationFeedback) Dispatch(event *wl.Event)

Dispatch decodes one event on wp_presentation_feedback and calls the registered handlers.

func (*WpPresentationFeedback) EventSignature

func (o *WpPresentationFeedback) EventSignature(opcode uint16) (string, bool)

EventSignature returns the declared event argument types in wire order.

func (*WpPresentationFeedback) OnDiscarded

func (o *WpPresentationFeedback) OnDiscarded(handler func())

OnDiscarded registers a handler for the discarded event.

Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.

func (*WpPresentationFeedback) OnPresented

func (o *WpPresentationFeedback) OnPresented(handler func(tvSecHi uint32, tvSecLo uint32, tvNsec uint32, refresh uint32, seqHi uint32, seqLo uint32, flags uint32))

OnPresented registers a handler for the presented event.

Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.

func (*WpPresentationFeedback) OnSyncOutput

func (o *WpPresentationFeedback) OnSyncOutput(handler func(outputID uint32))

OnSyncOutput registers a handler for the sync_output event.

Handlers are appended, so a second call adds another handler rather than replacing the first. Registration is safe while another goroutine dispatches.

Jump to

Keyboard shortcuts

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