Documentation
¶
Index ¶
- Variables
- type WpContentTypeManagerV1
- func (obj *WpContentTypeManagerV1) Base() *wire.Object
- func (obj *WpContentTypeManagerV1) Dispatch(msg *wire.Message) error
- func (obj *WpContentTypeManagerV1) Handler() WpContentTypeManagerV1Handler
- func (obj *WpContentTypeManagerV1) ProtocolError(code WpContentTypeManagerV1Error, format string, args ...any) error
- type WpContentTypeManagerV1Error
- type WpContentTypeManagerV1Handler
- type WpContentTypeV1
- type WpContentTypeV1Handler
- type WpContentTypeV1Type
Constants ¶
This section is empty.
Variables ¶
View Source
var WpContentTypeManagerV1Interface = &wire.Interface{ Name: "wp_content_type_manager_v1", Version: 1, Requests: []wire.MessageSpec{ {Name: "destroy", Since: 1, Destructor: true}, {Name: "get_surface_content_type", Since: 1, Args: []wire.Arg{{Name: "id", Type: wire.ArgNewID, Interface: "wp_content_type_v1"}, {Name: "surface", Type: wire.ArgObject, Interface: "wl_surface"}}}, }, }
View Source
var WpContentTypeV1Interface = &wire.Interface{ Name: "wp_content_type_v1", Version: 1, Requests: []wire.MessageSpec{ {Name: "destroy", Since: 1, Destructor: true}, {Name: "set_content_type", Since: 1, Args: []wire.Arg{{Name: "content_type", Type: wire.ArgUint}}}, }, }
Functions ¶
This section is empty.
Types ¶
type WpContentTypeManagerV1 ¶
type WpContentTypeManagerV1 struct {
// contains filtered or unexported fields
}
func CreateWpContentTypeManagerV1 ¶
func CreateWpContentTypeManagerV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*WpContentTypeManagerV1) (WpContentTypeManagerV1Handler, error)) (*WpContentTypeManagerV1, error)
func NewWpContentTypeManagerV1 ¶
func NewWpContentTypeManagerV1(p wire.Peer, id wire.ObjectID, version uint32, h WpContentTypeManagerV1Handler) (*WpContentTypeManagerV1, error)
func (*WpContentTypeManagerV1) Base ¶
func (obj *WpContentTypeManagerV1) Base() *wire.Object
func (*WpContentTypeManagerV1) Dispatch ¶
func (obj *WpContentTypeManagerV1) Dispatch(msg *wire.Message) error
func (*WpContentTypeManagerV1) Handler ¶
func (obj *WpContentTypeManagerV1) Handler() WpContentTypeManagerV1Handler
func (*WpContentTypeManagerV1) ProtocolError ¶
func (obj *WpContentTypeManagerV1) ProtocolError(code WpContentTypeManagerV1Error, format string, args ...any) error
type WpContentTypeManagerV1Error ¶
type WpContentTypeManagerV1Error uint32
const (
WpContentTypeManagerV1ErrorAlreadyConstructed WpContentTypeManagerV1Error = 0
)
func (WpContentTypeManagerV1Error) Valid ¶
func (v WpContentTypeManagerV1Error) Valid(version uint32) bool
type WpContentTypeManagerV1Handler ¶
type WpContentTypeManagerV1Handler interface {
Destroy(obj *WpContentTypeManagerV1) error
GetSurfaceContentType(obj *WpContentTypeManagerV1, id *WpContentTypeV1, surface *wayland.WlSurface) (WpContentTypeV1Handler, error)
}
type WpContentTypeV1 ¶
type WpContentTypeV1 struct {
// contains filtered or unexported fields
}
func CreateWpContentTypeV1 ¶
func CreateWpContentTypeV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*WpContentTypeV1) (WpContentTypeV1Handler, error)) (*WpContentTypeV1, error)
func NewWpContentTypeV1 ¶
func NewWpContentTypeV1(p wire.Peer, id wire.ObjectID, version uint32, h WpContentTypeV1Handler) (*WpContentTypeV1, error)
func (*WpContentTypeV1) Base ¶
func (obj *WpContentTypeV1) Base() *wire.Object
func (*WpContentTypeV1) Handler ¶
func (obj *WpContentTypeV1) Handler() WpContentTypeV1Handler
type WpContentTypeV1Handler ¶
type WpContentTypeV1Handler interface {
Destroy(obj *WpContentTypeV1) error
SetContentType(obj *WpContentTypeV1, contentType WpContentTypeV1Type) error
}
type WpContentTypeV1Type ¶
type WpContentTypeV1Type uint32
const ( WpContentTypeV1TypeNone WpContentTypeV1Type = 0 WpContentTypeV1TypePhoto WpContentTypeV1Type = 1 WpContentTypeV1TypeVideo WpContentTypeV1Type = 2 WpContentTypeV1TypeGame WpContentTypeV1Type = 3 )
func (WpContentTypeV1Type) Valid ¶
func (v WpContentTypeV1Type) Valid(version uint32) bool
Click to show internal directories.
Click to hide internal directories.