Documentation
¶
Index ¶
- Variables
- type WpPresentation
- func (obj *WpPresentation) Base() *wire.Object
- func (obj *WpPresentation) Destroy() error
- func (obj *WpPresentation) Dispatch(msg *wire.Message) error
- func (obj *WpPresentation) Feedback(surface *wayland.WlSurface, h WpPresentationFeedbackHandler) (*WpPresentationFeedback, error)
- func (obj *WpPresentation) Handler() WpPresentationHandler
- type WpPresentationError
- type WpPresentationFeedback
- type WpPresentationFeedbackHandler
- 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, 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) Feedback ¶
func (obj *WpPresentation) Feedback(surface *wayland.WlSurface, h WpPresentationFeedbackHandler) (*WpPresentationFeedback, error)
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 NewWpPresentationFeedback ¶
func NewWpPresentationFeedback(p wire.Peer, version uint32, h WpPresentationFeedbackHandler) (*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 ¶
func (obj *WpPresentationFeedback) Handler() WpPresentationFeedbackHandler
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 (v WpPresentationFeedbackKind) Has(flag WpPresentationFeedbackKind) bool
func (WpPresentationFeedbackKind) Valid ¶
func (v WpPresentationFeedbackKind) Valid(version uint32) bool
type WpPresentationHandler ¶
type WpPresentationHandler interface {
ClockID(obj *WpPresentation, clkID uint32) error
}
Click to show internal directories.
Click to hide internal directories.