Documentation
¶
Index ¶
- Variables
- type WpColorRepresentationManagerV1
- func (obj *WpColorRepresentationManagerV1) Base() *wire.Object
- func (obj *WpColorRepresentationManagerV1) Dispatch(msg *wire.Message) error
- func (obj *WpColorRepresentationManagerV1) Handler() WpColorRepresentationManagerV1Handler
- func (obj *WpColorRepresentationManagerV1) ProtocolError(code WpColorRepresentationManagerV1Error, format string, args ...any) error
- func (obj *WpColorRepresentationManagerV1) SendDone() error
- func (obj *WpColorRepresentationManagerV1) SendSupportedAlphaMode(alphaMode WpColorRepresentationSurfaceV1AlphaMode) error
- func (obj *WpColorRepresentationManagerV1) SendSupportedCoefficientsAndRanges(coefficients WpColorRepresentationSurfaceV1Coefficients, ...) error
- type WpColorRepresentationManagerV1Error
- type WpColorRepresentationManagerV1Handler
- type WpColorRepresentationSurfaceV1
- func (obj *WpColorRepresentationSurfaceV1) Base() *wire.Object
- func (obj *WpColorRepresentationSurfaceV1) Dispatch(msg *wire.Message) error
- func (obj *WpColorRepresentationSurfaceV1) Handler() WpColorRepresentationSurfaceV1Handler
- func (obj *WpColorRepresentationSurfaceV1) ProtocolError(code WpColorRepresentationSurfaceV1Error, format string, args ...any) error
- type WpColorRepresentationSurfaceV1AlphaMode
- type WpColorRepresentationSurfaceV1ChromaLocation
- type WpColorRepresentationSurfaceV1Coefficients
- type WpColorRepresentationSurfaceV1Error
- type WpColorRepresentationSurfaceV1Handler
- type WpColorRepresentationSurfaceV1Range
Constants ¶
This section is empty.
Variables ¶
View Source
var WpColorRepresentationManagerV1Interface = &wire.Interface{ Name: "wp_color_representation_manager_v1", Version: 1, Requests: []wire.MessageSpec{ {Name: "destroy", Since: 1, Destructor: true}, {Name: "get_surface", Since: 1, Args: []wire.Arg{{Name: "id", Type: wire.ArgNewID, Interface: "wp_color_representation_surface_v1"}, {Name: "surface", Type: wire.ArgObject, Interface: "wl_surface"}}}, }, Events: []wire.MessageSpec{ {Name: "supported_alpha_mode", Since: 1, Args: []wire.Arg{{Name: "alpha_mode", Type: wire.ArgUint}}}, {Name: "supported_coefficients_and_ranges", Since: 1, Args: []wire.Arg{{Name: "coefficients", Type: wire.ArgUint}, {Name: "range", Type: wire.ArgUint}}}, {Name: "done", Since: 1}, }, }
View Source
var WpColorRepresentationSurfaceV1Interface = &wire.Interface{ Name: "wp_color_representation_surface_v1", Version: 1, Requests: []wire.MessageSpec{ {Name: "destroy", Since: 1, Destructor: true}, {Name: "set_alpha_mode", Since: 1, Args: []wire.Arg{{Name: "alpha_mode", Type: wire.ArgUint}}}, {Name: "set_coefficients_and_range", Since: 1, Args: []wire.Arg{{Name: "coefficients", Type: wire.ArgUint}, {Name: "range", Type: wire.ArgUint}}}, {Name: "set_chroma_location", Since: 1, Args: []wire.Arg{{Name: "chroma_location", Type: wire.ArgUint}}}, }, }
Functions ¶
This section is empty.
Types ¶
type WpColorRepresentationManagerV1 ¶
type WpColorRepresentationManagerV1 struct {
// contains filtered or unexported fields
}
func CreateWpColorRepresentationManagerV1 ¶
func CreateWpColorRepresentationManagerV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*WpColorRepresentationManagerV1) (WpColorRepresentationManagerV1Handler, error)) (*WpColorRepresentationManagerV1, error)
func NewWpColorRepresentationManagerV1 ¶
func NewWpColorRepresentationManagerV1(p wire.Peer, id wire.ObjectID, version uint32, h WpColorRepresentationManagerV1Handler) (*WpColorRepresentationManagerV1, error)
func (*WpColorRepresentationManagerV1) Base ¶
func (obj *WpColorRepresentationManagerV1) Base() *wire.Object
func (*WpColorRepresentationManagerV1) Dispatch ¶
func (obj *WpColorRepresentationManagerV1) Dispatch(msg *wire.Message) error
func (*WpColorRepresentationManagerV1) Handler ¶
func (obj *WpColorRepresentationManagerV1) Handler() WpColorRepresentationManagerV1Handler
func (*WpColorRepresentationManagerV1) ProtocolError ¶
func (obj *WpColorRepresentationManagerV1) ProtocolError(code WpColorRepresentationManagerV1Error, format string, args ...any) error
func (*WpColorRepresentationManagerV1) SendDone ¶
func (obj *WpColorRepresentationManagerV1) SendDone() error
func (*WpColorRepresentationManagerV1) SendSupportedAlphaMode ¶
func (obj *WpColorRepresentationManagerV1) SendSupportedAlphaMode(alphaMode WpColorRepresentationSurfaceV1AlphaMode) error
func (*WpColorRepresentationManagerV1) SendSupportedCoefficientsAndRanges ¶
func (obj *WpColorRepresentationManagerV1) SendSupportedCoefficientsAndRanges(coefficients WpColorRepresentationSurfaceV1Coefficients, rangeArg WpColorRepresentationSurfaceV1Range) error
type WpColorRepresentationManagerV1Error ¶
type WpColorRepresentationManagerV1Error uint32
const (
WpColorRepresentationManagerV1ErrorSurfaceExists WpColorRepresentationManagerV1Error = 1
)
func (WpColorRepresentationManagerV1Error) Valid ¶
func (v WpColorRepresentationManagerV1Error) Valid(version uint32) bool
type WpColorRepresentationManagerV1Handler ¶
type WpColorRepresentationManagerV1Handler interface {
Destroy(obj *WpColorRepresentationManagerV1) error
GetSurface(obj *WpColorRepresentationManagerV1, id *WpColorRepresentationSurfaceV1, surface *wayland.WlSurface) (WpColorRepresentationSurfaceV1Handler, error)
}
type WpColorRepresentationSurfaceV1 ¶
type WpColorRepresentationSurfaceV1 struct {
// contains filtered or unexported fields
}
func CreateWpColorRepresentationSurfaceV1 ¶
func CreateWpColorRepresentationSurfaceV1(p wire.Peer, id wire.ObjectID, version uint32, newHandler func(*WpColorRepresentationSurfaceV1) (WpColorRepresentationSurfaceV1Handler, error)) (*WpColorRepresentationSurfaceV1, error)
func NewWpColorRepresentationSurfaceV1 ¶
func NewWpColorRepresentationSurfaceV1(p wire.Peer, id wire.ObjectID, version uint32, h WpColorRepresentationSurfaceV1Handler) (*WpColorRepresentationSurfaceV1, error)
func (*WpColorRepresentationSurfaceV1) Base ¶
func (obj *WpColorRepresentationSurfaceV1) Base() *wire.Object
func (*WpColorRepresentationSurfaceV1) Dispatch ¶
func (obj *WpColorRepresentationSurfaceV1) Dispatch(msg *wire.Message) error
func (*WpColorRepresentationSurfaceV1) Handler ¶
func (obj *WpColorRepresentationSurfaceV1) Handler() WpColorRepresentationSurfaceV1Handler
func (*WpColorRepresentationSurfaceV1) ProtocolError ¶
func (obj *WpColorRepresentationSurfaceV1) ProtocolError(code WpColorRepresentationSurfaceV1Error, format string, args ...any) error
type WpColorRepresentationSurfaceV1AlphaMode ¶
type WpColorRepresentationSurfaceV1AlphaMode uint32
const ( WpColorRepresentationSurfaceV1AlphaModePremultipliedElectrical WpColorRepresentationSurfaceV1AlphaMode = 0 WpColorRepresentationSurfaceV1AlphaModePremultipliedOptical WpColorRepresentationSurfaceV1AlphaMode = 1 WpColorRepresentationSurfaceV1AlphaModeStraight WpColorRepresentationSurfaceV1AlphaMode = 2 )
func (WpColorRepresentationSurfaceV1AlphaMode) Valid ¶
func (v WpColorRepresentationSurfaceV1AlphaMode) Valid(version uint32) bool
type WpColorRepresentationSurfaceV1ChromaLocation ¶
type WpColorRepresentationSurfaceV1ChromaLocation uint32
const ( WpColorRepresentationSurfaceV1ChromaLocationType0 WpColorRepresentationSurfaceV1ChromaLocation = 1 WpColorRepresentationSurfaceV1ChromaLocationType1 WpColorRepresentationSurfaceV1ChromaLocation = 2 WpColorRepresentationSurfaceV1ChromaLocationType2 WpColorRepresentationSurfaceV1ChromaLocation = 3 WpColorRepresentationSurfaceV1ChromaLocationType3 WpColorRepresentationSurfaceV1ChromaLocation = 4 WpColorRepresentationSurfaceV1ChromaLocationType4 WpColorRepresentationSurfaceV1ChromaLocation = 5 WpColorRepresentationSurfaceV1ChromaLocationType5 WpColorRepresentationSurfaceV1ChromaLocation = 6 )
func (WpColorRepresentationSurfaceV1ChromaLocation) Valid ¶
func (v WpColorRepresentationSurfaceV1ChromaLocation) Valid(version uint32) bool
type WpColorRepresentationSurfaceV1Coefficients ¶
type WpColorRepresentationSurfaceV1Coefficients uint32
const ( WpColorRepresentationSurfaceV1CoefficientsIdentity WpColorRepresentationSurfaceV1Coefficients = 1 WpColorRepresentationSurfaceV1CoefficientsBt709 WpColorRepresentationSurfaceV1Coefficients = 2 WpColorRepresentationSurfaceV1CoefficientsFcc WpColorRepresentationSurfaceV1Coefficients = 3 WpColorRepresentationSurfaceV1CoefficientsBt601 WpColorRepresentationSurfaceV1Coefficients = 4 WpColorRepresentationSurfaceV1CoefficientsSmpte240 WpColorRepresentationSurfaceV1Coefficients = 5 WpColorRepresentationSurfaceV1CoefficientsBt2020 WpColorRepresentationSurfaceV1Coefficients = 6 WpColorRepresentationSurfaceV1CoefficientsBt2020Cl WpColorRepresentationSurfaceV1Coefficients = 7 WpColorRepresentationSurfaceV1CoefficientsIctcp WpColorRepresentationSurfaceV1Coefficients = 8 )
func (WpColorRepresentationSurfaceV1Coefficients) Valid ¶
func (v WpColorRepresentationSurfaceV1Coefficients) Valid(version uint32) bool
type WpColorRepresentationSurfaceV1Error ¶
type WpColorRepresentationSurfaceV1Error uint32
const ( WpColorRepresentationSurfaceV1ErrorAlphaMode WpColorRepresentationSurfaceV1Error = 1 WpColorRepresentationSurfaceV1ErrorCoefficients WpColorRepresentationSurfaceV1Error = 2 WpColorRepresentationSurfaceV1ErrorPixelFormat WpColorRepresentationSurfaceV1Error = 3 WpColorRepresentationSurfaceV1ErrorInert WpColorRepresentationSurfaceV1Error = 4 WpColorRepresentationSurfaceV1ErrorChromaLocation WpColorRepresentationSurfaceV1Error = 5 )
func (WpColorRepresentationSurfaceV1Error) Valid ¶
func (v WpColorRepresentationSurfaceV1Error) Valid(version uint32) bool
type WpColorRepresentationSurfaceV1Handler ¶
type WpColorRepresentationSurfaceV1Handler interface {
Destroy(obj *WpColorRepresentationSurfaceV1) error
SetAlphaMode(obj *WpColorRepresentationSurfaceV1, alphaMode WpColorRepresentationSurfaceV1AlphaMode) error
SetCoefficientsAndRange(obj *WpColorRepresentationSurfaceV1, coefficients WpColorRepresentationSurfaceV1Coefficients, rangeArg WpColorRepresentationSurfaceV1Range) error
SetChromaLocation(obj *WpColorRepresentationSurfaceV1, chromaLocation WpColorRepresentationSurfaceV1ChromaLocation) error
}
type WpColorRepresentationSurfaceV1Range ¶
type WpColorRepresentationSurfaceV1Range uint32
const ( WpColorRepresentationSurfaceV1RangeFull WpColorRepresentationSurfaceV1Range = 1 WpColorRepresentationSurfaceV1RangeLimited WpColorRepresentationSurfaceV1Range = 2 )
func (WpColorRepresentationSurfaceV1Range) Valid ¶
func (v WpColorRepresentationSurfaceV1Range) Valid(version uint32) bool
Click to show internal directories.
Click to hide internal directories.