Documentation
¶
Index ¶
- Constants
- type WpPresentation
- func (o *WpPresentation) Destroy() error
- func (o *WpPresentation) Dispatch(event *wl.Event)
- func (o *WpPresentation) EventSignature(opcode uint16) (string, bool)
- func (o *WpPresentation) Feedback(surface *cross_wl_surface.Surface) (*WpPresentationFeedback, error)
- func (o *WpPresentation) OnClockId(handler func(clkId uint32))
- type WpPresentationFeedback
- func (o *WpPresentationFeedback) Dispatch(event *wl.Event)
- func (o *WpPresentationFeedback) EventSignature(opcode uint16) (string, bool)
- func (o *WpPresentationFeedback) OnDiscarded(handler func())
- func (o *WpPresentationFeedback) OnPresented(...)
- func (o *WpPresentationFeedback) OnSyncOutput(handler func(outputID uint32))
Constants ¶
const ERROR_INVALID_FLAG = 1
ERROR_INVALID_FLAG is the error invalid_flag value.
const ERROR_INVALID_TIMESTAMP = 0
ERROR_INVALID_TIMESTAMP is the error invalid_timestamp value.
const KIND_HW_CLOCK = 0x2
KIND_HW_CLOCK is the kind hw_clock value.
const KIND_HW_COMPLETION = 0x4
KIND_HW_COMPLETION is the kind hw_completion value.
const KIND_VSYNC = 0x1
KIND_VSYNC is the kind vsync value.
const KIND_ZERO_COPY = 0x8
KIND_ZERO_COPY is the kind zero_copy value.
const WpPresentationFeedbackInterface = "wp_presentation_feedback"
WpPresentationFeedbackInterface is the protocol interface name.
const WpPresentationInterface = "wp_presentation"
WpPresentationInterface is the protocol interface name.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WpPresentation ¶
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 ¶
func (o *WpPresentation) Feedback(surface *cross_wl_surface.Surface) (*WpPresentationFeedback, error)
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 ¶
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.