Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WpViewportInterface = &wire.Interface{ Name: "wp_viewport", Version: 1, Requests: []wire.MessageSpec{ {Name: "destroy", Since: 1, Destructor: true}, {Name: "set_source", Since: 1, Args: []wire.Arg{{Name: "x", Type: wire.ArgFixed}, {Name: "y", Type: wire.ArgFixed}, {Name: "width", Type: wire.ArgFixed}, {Name: "height", Type: wire.ArgFixed}}}, {Name: "set_destination", Since: 1, Args: []wire.Arg{{Name: "width", Type: wire.ArgInt}, {Name: "height", Type: wire.ArgInt}}}, }, }
View Source
var WpViewporterInterface = &wire.Interface{ Name: "wp_viewporter", Version: 1, Requests: []wire.MessageSpec{ {Name: "destroy", Since: 1, Destructor: true}, {Name: "get_viewport", Since: 1, Args: []wire.Arg{{Name: "id", Type: wire.ArgNewID, Interface: "wp_viewport"}, {Name: "surface", Type: wire.ArgObject, Interface: "wl_surface"}}}, }, }
Functions ¶
This section is empty.
Types ¶
type WpViewport ¶
type WpViewport struct {
// contains filtered or unexported fields
}
func CreateWpViewport ¶
func CreateWpViewport(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*WpViewport) (WpViewportHandler, error)) (*WpViewport, error)
func NewWpViewport ¶
func NewWpViewport(p wire.Peer, id wire.ObjectID, version uint32, h WpViewportHandler) (*WpViewport, error)
func (*WpViewport) Base ¶
func (obj *WpViewport) Base() *wire.Object
func (*WpViewport) Handler ¶
func (obj *WpViewport) Handler() WpViewportHandler
func (*WpViewport) ProtocolError ¶
func (obj *WpViewport) ProtocolError(code WpViewportError, format string, args ...any) error
type WpViewportError ¶
type WpViewportError uint32
const ( WpViewportErrorBadValue WpViewportError = 0 WpViewportErrorBadSize WpViewportError = 1 WpViewportErrorOutOfBuffer WpViewportError = 2 WpViewportErrorNoSurface WpViewportError = 3 )
func (WpViewportError) Valid ¶
func (v WpViewportError) Valid(version uint32) bool
type WpViewportHandler ¶
type WpViewporter ¶
type WpViewporter struct {
// contains filtered or unexported fields
}
func CreateWpViewporter ¶
func CreateWpViewporter(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*WpViewporter) (WpViewporterHandler, error)) (*WpViewporter, error)
func NewWpViewporter ¶
func NewWpViewporter(p wire.Peer, id wire.ObjectID, version uint32, h WpViewporterHandler) (*WpViewporter, error)
func (*WpViewporter) Base ¶
func (obj *WpViewporter) Base() *wire.Object
func (*WpViewporter) Handler ¶
func (obj *WpViewporter) Handler() WpViewporterHandler
func (*WpViewporter) ProtocolError ¶
func (obj *WpViewporter) ProtocolError(code WpViewporterError, format string, args ...any) error
type WpViewporterError ¶
type WpViewporterError uint32
const (
WpViewporterErrorViewportExists WpViewporterError = 0
)
func (WpViewporterError) Valid ¶
func (v WpViewporterError) Valid(version uint32) bool
type WpViewporterHandler ¶
type WpViewporterHandler interface {
Destroy(obj *WpViewporter) error
GetViewport(obj *WpViewporter, id *WpViewport, surface *wayland.WlSurface) (WpViewportHandler, error)
}
Click to show internal directories.
Click to hide internal directories.