MCPcopy
hub / github.com/mmulet/term.everything / RegisterRoleToSurface

Function RegisterRoleToSurface

wayland/types.go:32–34  ·  view source on GitHub ↗
(cs protocols.ClientState, roleID T, surfaceID protocols.ObjectID[protocols.WlSurface])

Source from the content-addressed store, hash-verified

30}
31
32func RegisterRoleToSurface[T RoleOrXDGSurfaceObjectID](cs protocols.ClientState, roleID T, surfaceID protocols.ObjectID[protocols.WlSurface]) {
33 cs.RegisterRoleToSurface(protocols.AnyObjectID(roleID), surfaceID)
34}
35
36func AddObject[T any](cs protocols.ClientState, id protocols.ObjectID[T], v *T) {
37 cs.AddObject(protocols.AnyObjectID(id), v)

Calls 1

RegisterRoleToSurfaceMethod · 0.65

Tested by

no test coverage detected