contenttype

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ERROR_ALREADY_CONSTRUCTED = 0

ERROR_ALREADY_CONSTRUCTED is the error already_constructed value.

View Source
const TYPE_GAME = 3

TYPE_GAME is the type game value.

View Source
const TYPE_NONE = 0

TYPE_NONE is the type none value.

View Source
const TYPE_PHOTO = 1

TYPE_PHOTO is the type photo value.

View Source
const TYPE_VIDEO = 2

TYPE_VIDEO is the type video value.

View Source
const WpContentTypeInterface = "wp_content_type_v1"

WpContentTypeInterface is the protocol interface name.

View Source
const WpContentTypeManagerInterface = "wp_content_type_manager_v1"

WpContentTypeManagerInterface is the protocol interface name.

Variables

This section is empty.

Functions

This section is empty.

Types

type WpContentType

type WpContentType struct {
	wl.BaseProxy
}

WpContentType is the generated binding for wp_content_type_v1 version 1.

func NewWpContentType

func NewWpContentType(ctx *wl.Context) *WpContentType

NewWpContentType returns an unbound WpContentType.

func (*WpContentType) Destroy

func (o *WpContentType) Destroy() error

Switch back to not specifying the content type of this surface. This is equivalent to setting the content type to none, including double buffering semantics. See set_content_type for details.

func (*WpContentType) Dispatch

func (o *WpContentType) Dispatch(event *wl.Event)

Dispatch decodes one event on wp_content_type_v1 and calls the registered handlers.

func (*WpContentType) EventSignature

func (o *WpContentType) EventSignature(opcode uint16) (string, bool)

EventSignature returns the declared event argument types in wire order.

func (*WpContentType) SetContentType

func (o *WpContentType) SetContentType(contentType uint32) error

Set the surface content type. This informs the compositor that the client believes it is displaying buffers matching this content type. This is purely a hint for the compositor, which can be used to adjust its behavior or hardware settings to fit the presented content best. The content type is double-buffered state, see wl_surface.commit for details.

type WpContentTypeManager

type WpContentTypeManager struct {
	wl.BaseProxy
}

WpContentTypeManager is the generated binding for wp_content_type_manager_v1 version 1.

func NewWpContentTypeManager

func NewWpContentTypeManager(ctx *wl.Context) *WpContentTypeManager

NewWpContentTypeManager returns an unbound WpContentTypeManager.

func (*WpContentTypeManager) Destroy

func (o *WpContentTypeManager) Destroy() error

Destroy the content type manager. This doesn't destroy objects created with the manager.

func (*WpContentTypeManager) Dispatch

func (o *WpContentTypeManager) Dispatch(event *wl.Event)

Dispatch decodes one event on wp_content_type_manager_v1 and calls the registered handlers.

func (*WpContentTypeManager) EventSignature

func (o *WpContentTypeManager) EventSignature(opcode uint16) (string, bool)

EventSignature returns the declared event argument types in wire order.

func (*WpContentTypeManager) GetSurfaceContentType

func (o *WpContentTypeManager) GetSurfaceContentType(surface *cross_wl_surface.Surface) (*WpContentType, error)

Create a new content type object associated with the given surface. Creating a wp_content_type_v1 from a wl_surface which already has one attached is a client error: already_constructed.

Jump to

Keyboard shortcuts

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