Documentation
¶
Index ¶
- Variables
- type WpPresentation
- func (obj *WpPresentation) Base() *wire.Object
- func (obj *WpPresentation) Dispatch(msg *wire.Message) error
- func (obj *WpPresentation) Handler() WpPresentationHandler
- func (obj *WpPresentation) ProtocolError(code WpPresentationError, format string, args ...any) error
- func (obj *WpPresentation) SendClockID(clkID uint32) error
- type WpPresentationError
- type WpPresentationFeedback
- func (obj *WpPresentationFeedback) Base() *wire.Object
- func (obj *WpPresentationFeedback) Dispatch(msg *wire.Message) error
- func (obj *WpPresentationFeedback) SendDiscarded() error
- func (obj *WpPresentationFeedback) SendPresented(tvSecHi uint32, tvSecLo uint32, tvNsec uint32, refresh uint32, seqHi uint32, ...) error
- func (obj *WpPresentationFeedback) SendSyncOutput(output *wayland.WlOutput) error
- type WpPresentationFeedbackKind
- type WpPresentationHandler
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) 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 (*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 (v WpPresentationFeedbackKind) Has(flag WpPresentationFeedbackKind) bool
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
}
Click to show internal directories.
Click to hide internal directories.