contenttype

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: MIT, MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 (*WpContentTypeManagerV1) Base

func (obj *WpContentTypeManagerV1) Base() *wire.Object

func (*WpContentTypeManagerV1) Dispatch

func (obj *WpContentTypeManagerV1) Dispatch(msg *wire.Message) error

func (*WpContentTypeManagerV1) Handler

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) Dispatch

func (obj *WpContentTypeV1) Dispatch(msg *wire.Message) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL