1// Code generated by wlbgen; DO NOT EDIT.
2
3// Upstream protocol copyright and license:
4// Copyright 2019 Sebastian Wick
5// Copyright 2019 Erwin Burema
6// Copyright 2020 AMD
7// Copyright 2020-2024 Collabora, Ltd.
8// Copyright 2024 Xaver Hugl
9// Copyright 2022-2025 Red Hat, Inc.
10//
11// Permission is hereby granted, free of charge, to any person obtaining a
12// copy of this software and associated documentation files (the "Software"),
13// to deal in the Software without restriction, including without limitation
14// the rights to use, copy, modify, merge, publish, distribute, sublicense,
15// and/or sell copies of the Software, and to permit persons to whom the
16// Software is furnished to do so, subject to the following conditions:
17//
18// The above copyright notice and this permission notice (including the next
19// paragraph) shall be included in all copies or substantial portions of the
20// Software.
21//
22// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
25// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
28// DEALINGS IN THE SOFTWARE.
29
30package colormanagement
31
32import (
33 "fmt"
34 wayland "github.com/bnema/go-wayland-bindings/server/wayland"
35 "github.com/bnema/purego-libwayland/server"
36 "runtime"
37)
38
39var WpColorManagerV1Interface *server.Interface
40var WpColorManagementOutputV1Interface *server.Interface
41var WpColorManagementSurfaceV1Interface *server.Interface
42var WpColorManagementSurfaceFeedbackV1Interface *server.Interface
43var WpImageDescriptionCreatorIccV1Interface *server.Interface
44var WpImageDescriptionCreatorParamsV1Interface *server.Interface
45var WpImageDescriptionV1Interface *server.Interface
46var WpImageDescriptionInfoV1Interface *server.Interface
47var WpImageDescriptionReferenceV1Interface *server.Interface
48
49func init() {
50 WpColorManagerV1Interface = &server.Interface{Name: "wp_color_manager_v1", Version: 3}
51 WpColorManagementOutputV1Interface = &server.Interface{Name: "wp_color_management_output_v1", Version: 3}
52 WpColorManagementSurfaceV1Interface = &server.Interface{Name: "wp_color_management_surface_v1", Version: 3}
53 WpColorManagementSurfaceFeedbackV1Interface = &server.Interface{Name: "wp_color_management_surface_feedback_v1", Version: 3}
54 WpImageDescriptionCreatorIccV1Interface = &server.Interface{Name: "wp_image_description_creator_icc_v1", Version: 3}
55 WpImageDescriptionCreatorParamsV1Interface = &server.Interface{Name: "wp_image_description_creator_params_v1", Version: 3}
56 WpImageDescriptionV1Interface = &server.Interface{Name: "wp_image_description_v1", Version: 3}
57 WpImageDescriptionInfoV1Interface = &server.Interface{Name: "wp_image_description_info_v1", Version: 3}
58 WpImageDescriptionReferenceV1Interface = &server.Interface{Name: "wp_image_description_reference_v1", Version: 1}
59 WpColorManagerV1Interface.Requests = []server.Message{
60 {Name: "destroy", Signature: "", Types: []*server.Interface{}},
61 {Name: "get_output", Signature: "no", Types: []*server.Interface{WpColorManagementOutputV1Interface, wayland.OutputInterface}},
62 {Name: "get_surface", Signature: "no", Types: []*server.Interface{WpColorManagementSurfaceV1Interface, wayland.SurfaceInterface}},
63 {Name: "get_surface_feedback", Signature: "no", Types: []*server.Interface{WpColorManagementSurfaceFeedbackV1Interface, wayland.SurfaceInterface}},
64 {Name: "create_icc_creator", Signature: "n", Types: []*server.Interface{WpImageDescriptionCreatorIccV1Interface}},
65 {Name: "create_parametric_creator", Signature: "n", Types: []*server.Interface{WpImageDescriptionCreatorParamsV1Interface}},
66 {Name: "create_windows_scrgb", Signature: "n", Types: []*server.Interface{WpImageDescriptionV1Interface}},
67 {Name: "get_image_description", Signature: "2no", Types: []*server.Interface{WpImageDescriptionV1Interface, WpImageDescriptionReferenceV1Interface}},
68 {Name: "create_windows_bt2100", Signature: "3n", Types: []*server.Interface{WpImageDescriptionV1Interface}},
69 }
70 WpColorManagerV1Interface.Events = []server.Message{
71 {Name: "supported_intent", Signature: "u", Types: []*server.Interface{nil}},
72 {Name: "supported_feature", Signature: "u", Types: []*server.Interface{nil}},
73 {Name: "supported_tf_named", Signature: "u", Types: []*server.Interface{nil}},
74 {Name: "supported_primaries_named", Signature: "u", Types: []*server.Interface{nil}},
75 {Name: "done", Signature: "", Types: []*server.Interface{}},
76 }
77 WpColorManagementOutputV1Interface.Requests = []server.Message{
78 {Name: "destroy", Signature: "", Types: []*server.Interface{}},
79 {Name: "get_image_description", Signature: "n", Types: []*server.Interface{WpImageDescriptionV1Interface}},
80 }
81 WpColorManagementOutputV1Interface.Events = []server.Message{
82 {Name: "image_description_changed", Signature: "", Types: []*server.Interface{}},
83 }
84 WpColorManagementSurfaceV1Interface.Requests = []server.Message{
85 {Name: "destroy", Signature: "", Types: []*server.Interface{}},
86 {Name: "set_image_description", Signature: "ou", Types: []*server.Interface{WpImageDescriptionV1Interface, nil}},
87 {Name: "unset_image_description", Signature: "", Types: []*server.Interface{}},
88 }
89 WpColorManagementSurfaceV1Interface.Events = []server.Message{}
90 WpColorManagementSurfaceFeedbackV1Interface.Requests = []server.Message{
91 {Name: "destroy", Signature: "", Types: []*server.Interface{}},
92 {Name: "get_preferred", Signature: "n", Types: []*server.Interface{WpImageDescriptionV1Interface}},
93 {Name: "get_preferred_parametric", Signature: "n", Types: []*server.Interface{WpImageDescriptionV1Interface}},
94 }
95 WpColorManagementSurfaceFeedbackV1Interface.Events = []server.Message{
96 {Name: "preferred_changed", Signature: "u", Types: []*server.Interface{nil}},
97 {Name: "preferred_changed2", Signature: "2uu", Types: []*server.Interface{nil, nil}},
98 }
99 WpImageDescriptionCreatorIccV1Interface.Requests = []server.Message{
100 {Name: "create", Signature: "n", Types: []*server.Interface{WpImageDescriptionV1Interface}},
101 {Name: "set_icc_file", Signature: "huu", Types: []*server.Interface{nil, nil, nil}},
102 }
103 WpImageDescriptionCreatorIccV1Interface.Events = []server.Message{}
104 WpImageDescriptionCreatorParamsV1Interface.Requests = []server.Message{
105 {Name: "create", Signature: "n", Types: []*server.Interface{WpImageDescriptionV1Interface}},
106 {Name: "set_tf_named", Signature: "u", Types: []*server.Interface{nil}},
107 {Name: "set_tf_power", Signature: "u", Types: []*server.Interface{nil}},
108 {Name: "set_primaries_named", Signature: "u", Types: []*server.Interface{nil}},
109 {Name: "set_primaries", Signature: "iiiiiiii", Types: []*server.Interface{nil, nil, nil, nil, nil, nil, nil, nil}},
110 {Name: "set_luminances", Signature: "uuu", Types: []*server.Interface{nil, nil, nil}},
111 {Name: "set_mastering_display_primaries", Signature: "iiiiiiii", Types: []*server.Interface{nil, nil, nil, nil, nil, nil, nil, nil}},
112 {Name: "set_mastering_luminance", Signature: "uu", Types: []*server.Interface{nil, nil}},
113 {Name: "set_max_cll", Signature: "u", Types: []*server.Interface{nil}},
114 {Name: "set_max_fall", Signature: "u", Types: []*server.Interface{nil}},
115 }
116 WpImageDescriptionCreatorParamsV1Interface.Events = []server.Message{}
117 WpImageDescriptionV1Interface.Requests = []server.Message{
118 {Name: "destroy", Signature: "", Types: []*server.Interface{}},
119 {Name: "get_information", Signature: "n", Types: []*server.Interface{WpImageDescriptionInfoV1Interface}},
120 }
121 WpImageDescriptionV1Interface.Events = []server.Message{
122 {Name: "failed", Signature: "us", Types: []*server.Interface{nil, nil}},
123 {Name: "ready", Signature: "u", Types: []*server.Interface{nil}},
124 {Name: "ready2", Signature: "2uu", Types: []*server.Interface{nil, nil}},
125 }
126 WpImageDescriptionInfoV1Interface.Requests = []server.Message{}
127 WpImageDescriptionInfoV1Interface.Events = []server.Message{
128 {Name: "done", Signature: "", Types: []*server.Interface{}},
129 {Name: "icc_file", Signature: "hu", Types: []*server.Interface{nil, nil}},
130 {Name: "primaries", Signature: "iiiiiiii", Types: []*server.Interface{nil, nil, nil, nil, nil, nil, nil, nil}},
131 {Name: "primaries_named", Signature: "u", Types: []*server.Interface{nil}},
132 {Name: "tf_power", Signature: "u", Types: []*server.Interface{nil}},
133 {Name: "tf_named", Signature: "u", Types: []*server.Interface{nil}},
134 {Name: "luminances", Signature: "uuu", Types: []*server.Interface{nil, nil, nil}},
135 {Name: "target_primaries", Signature: "iiiiiiii", Types: []*server.Interface{nil, nil, nil, nil, nil, nil, nil, nil}},
136 {Name: "target_luminance", Signature: "uu", Types: []*server.Interface{nil, nil}},
137 {Name: "target_max_cll", Signature: "u", Types: []*server.Interface{nil}},
138 {Name: "target_max_fall", Signature: "u", Types: []*server.Interface{nil}},
139 }
140 WpImageDescriptionReferenceV1Interface.Requests = []server.Message{
141 {Name: "destroy", Signature: "", Types: []*server.Interface{}},
142 }
143 WpImageDescriptionReferenceV1Interface.Events = []server.Message{}
144 if err := server.NewInterfaces(WpColorManagerV1Interface, WpColorManagementOutputV1Interface, WpColorManagementSurfaceV1Interface, WpColorManagementSurfaceFeedbackV1Interface, WpImageDescriptionCreatorIccV1Interface, WpImageDescriptionCreatorParamsV1Interface, WpImageDescriptionV1Interface, WpImageDescriptionInfoV1Interface, WpImageDescriptionReferenceV1Interface); err != nil {
145 panic(err)
146 }
147}
148
149// WpColorManagerV1 color manager singleton.
150type WpColorManagerV1 struct{ *server.Resource }
151
152func WrapWpColorManagerV1(r *server.Resource) *WpColorManagerV1 {
153 if r == nil {
154 return nil
155 }
156 return &WpColorManagerV1{r}
157}
158
159const WpColorManagerV1RequestDestroy uint32 = 0
160const WpColorManagerV1RequestGetOutput uint32 = 1
161const WpColorManagerV1RequestGetSurface uint32 = 2
162const WpColorManagerV1RequestGetSurfaceFeedback uint32 = 3
163const WpColorManagerV1RequestCreateIccCreator uint32 = 4
164const WpColorManagerV1RequestCreateParametricCreator uint32 = 5
165const WpColorManagerV1RequestCreateWindowsScrgb uint32 = 6
166const WpColorManagerV1RequestGetImageDescription uint32 = 7
167const WpColorManagerV1RequestCreateWindowsBt2100 uint32 = 8
168const WpColorManagerV1EventSupportedIntent uint32 = 0
169const WpColorManagerV1EventSupportedFeature uint32 = 1
170const WpColorManagerV1EventSupportedTfNamed uint32 = 2
171const WpColorManagerV1EventSupportedPrimariesNamed uint32 = 3
172const WpColorManagerV1EventDone uint32 = 4
173
174// WpColorManagerV1Error .
175type WpColorManagerV1Error uint32
176
177const (
178 WpColorManagerV1ErrorUnsupportedFeature WpColorManagerV1Error = 0
179 WpColorManagerV1ErrorSurfaceExists WpColorManagerV1Error = 1
180)
181
182// WpColorManagerV1RenderIntent rendering intents.
183type WpColorManagerV1RenderIntent uint32
184
185const (
186 WpColorManagerV1RenderIntentPerceptual WpColorManagerV1RenderIntent = 0
187 WpColorManagerV1RenderIntentRelative WpColorManagerV1RenderIntent = 1
188 WpColorManagerV1RenderIntentSaturation WpColorManagerV1RenderIntent = 2
189 WpColorManagerV1RenderIntentAbsolute WpColorManagerV1RenderIntent = 3
190 WpColorManagerV1RenderIntentRelativeBpc WpColorManagerV1RenderIntent = 4
191 WpColorManagerV1RenderIntentAbsoluteNoAdaptation WpColorManagerV1RenderIntent = 5
192)
193
194// WpColorManagerV1Feature compositor supported features.
195type WpColorManagerV1Feature uint32
196
197const (
198 WpColorManagerV1FeatureIccV2V4 WpColorManagerV1Feature = 0
199 WpColorManagerV1FeatureParametric WpColorManagerV1Feature = 1
200 WpColorManagerV1FeatureSetPrimaries WpColorManagerV1Feature = 2
201 WpColorManagerV1FeatureSetTfPower WpColorManagerV1Feature = 3
202 WpColorManagerV1FeatureSetLuminances WpColorManagerV1Feature = 4
203 WpColorManagerV1FeatureSetMasteringDisplayPrimaries WpColorManagerV1Feature = 5
204 WpColorManagerV1FeatureExtendedTargetVolume WpColorManagerV1Feature = 6
205 WpColorManagerV1FeatureWindowsScrgb WpColorManagerV1Feature = 7
206 WpColorManagerV1FeatureWindowsBt2100 WpColorManagerV1Feature = 8
207)
208
209// WpColorManagerV1Primaries named color primaries.
210type WpColorManagerV1Primaries uint32
211
212const (
213 WpColorManagerV1PrimariesSrgb WpColorManagerV1Primaries = 1
214 WpColorManagerV1PrimariesPalM WpColorManagerV1Primaries = 2
215 WpColorManagerV1PrimariesPal WpColorManagerV1Primaries = 3
216 WpColorManagerV1PrimariesNtsc WpColorManagerV1Primaries = 4
217 WpColorManagerV1PrimariesGenericFilm WpColorManagerV1Primaries = 5
218 WpColorManagerV1PrimariesBt2020 WpColorManagerV1Primaries = 6
219 WpColorManagerV1PrimariesCie1931Xyz WpColorManagerV1Primaries = 7
220 WpColorManagerV1PrimariesDciP3 WpColorManagerV1Primaries = 8
221 WpColorManagerV1PrimariesDisplayP3 WpColorManagerV1Primaries = 9
222 WpColorManagerV1PrimariesAdobeRgb WpColorManagerV1Primaries = 10
223)
224
225// WpColorManagerV1TransferFunction named transfer functions.
226type WpColorManagerV1TransferFunction uint32
227
228const (
229 WpColorManagerV1TransferFunctionBt1886 WpColorManagerV1TransferFunction = 1
230 WpColorManagerV1TransferFunctionGamma22 WpColorManagerV1TransferFunction = 2
231 WpColorManagerV1TransferFunctionGamma28 WpColorManagerV1TransferFunction = 3
232 WpColorManagerV1TransferFunctionSt240 WpColorManagerV1TransferFunction = 4
233 WpColorManagerV1TransferFunctionExtLinear WpColorManagerV1TransferFunction = 5
234 WpColorManagerV1TransferFunctionLog100 WpColorManagerV1TransferFunction = 6
235 WpColorManagerV1TransferFunctionLog316 WpColorManagerV1TransferFunction = 7
236 WpColorManagerV1TransferFunctionXvycc WpColorManagerV1TransferFunction = 8
237 WpColorManagerV1TransferFunctionSrgb WpColorManagerV1TransferFunction = 9
238 WpColorManagerV1TransferFunctionExtSrgb WpColorManagerV1TransferFunction = 10
239 WpColorManagerV1TransferFunctionSt2084Pq WpColorManagerV1TransferFunction = 11
240 WpColorManagerV1TransferFunctionSt428 WpColorManagerV1TransferFunction = 12
241 WpColorManagerV1TransferFunctionHlg WpColorManagerV1TransferFunction = 13
242 WpColorManagerV1TransferFunctionCompoundPower24 WpColorManagerV1TransferFunction = 14
243)
244
245// WpColorManagerV1Handler handles wp_color_manager_v1 requests.
246type WpColorManagerV1Handler interface {
247 Destroy(self *WpColorManagerV1)
248 GetOutput(self *WpColorManagerV1, id uint32, output *wayland.Output)
249 GetSurface(self *WpColorManagerV1, id uint32, surface *wayland.Surface)
250 GetSurfaceFeedback(self *WpColorManagerV1, id uint32, surface *wayland.Surface)
251 CreateIccCreator(self *WpColorManagerV1, obj uint32)
252 CreateParametricCreator(self *WpColorManagerV1, obj uint32)
253 CreateWindowsScrgb(self *WpColorManagerV1, imageDescription uint32)
254 GetImageDescription(self *WpColorManagerV1, imageDescription uint32, reference *WpImageDescriptionReferenceV1)
255 CreateWindowsBt2100(self *WpColorManagerV1, imageDescription uint32)
256}
257
258func NewWpColorManagerV1(c server.Client, version int32, id uint32, h WpColorManagerV1Handler) (*WpColorManagerV1, error) {
259 if h == nil {
260 return nil, fmt.Errorf("purego-libwayland: nil handler for wp_color_manager_v1")
261 }
262 var self *WpColorManagerV1
263 r, err := c.CreateResource(WpColorManagerV1Interface, version, id, func(_ *server.Resource, opcode uint32, args []server.Arg) {
264 switch opcode {
265 case 0:
266 h.Destroy(self)
267 self.Destroy()
268 case 1:
269 h.GetOutput(self, args[0].NewID(), wayland.WrapOutput(args[1].Resource()))
270 case 2:
271 h.GetSurface(self, args[0].NewID(), wayland.WrapSurface(args[1].Resource()))
272 case 3:
273 h.GetSurfaceFeedback(self, args[0].NewID(), wayland.WrapSurface(args[1].Resource()))
274 case 4:
275 h.CreateIccCreator(self, args[0].NewID())
276 case 5:
277 h.CreateParametricCreator(self, args[0].NewID())
278 case 6:
279 h.CreateWindowsScrgb(self, args[0].NewID())
280 case 7:
281 h.GetImageDescription(self, args[0].NewID(), WrapWpImageDescriptionReferenceV1(args[1].Resource()))
282 case 8:
283 h.CreateWindowsBt2100(self, args[0].NewID())
284 }
285 })
286 if err != nil {
287 return nil, err
288 }
289 self = WrapWpColorManagerV1(r)
290 r.Data = self
291 return self, nil
292}
293
294// SendSupportedIntent supported rendering intent.
295func (self *WpColorManagerV1) SendSupportedIntent(renderIntent uint32) {
296 self.PostEvent(WpColorManagerV1EventSupportedIntent, server.Uint(renderIntent))
297}
298
299// SendSupportedFeature supported features.
300func (self *WpColorManagerV1) SendSupportedFeature(feature uint32) {
301 self.PostEvent(WpColorManagerV1EventSupportedFeature, server.Uint(feature))
302}
303
304// SendSupportedTfNamed supported named transfer characteristic.
305func (self *WpColorManagerV1) SendSupportedTfNamed(tf uint32) {
306 self.PostEvent(WpColorManagerV1EventSupportedTfNamed, server.Uint(tf))
307}
308
309// SendSupportedPrimariesNamed supported named primaries.
310func (self *WpColorManagerV1) SendSupportedPrimariesNamed(primaries uint32) {
311 self.PostEvent(WpColorManagerV1EventSupportedPrimariesNamed, server.Uint(primaries))
312}
313
314// SendDone all features have been sent.
315func (self *WpColorManagerV1) SendDone() {
316 self.PostEvent(WpColorManagerV1EventDone)
317}
318func NewWpColorManagerV1Global(d *server.Display, version int32, bind server.BindFunc) error {
319 return d.CreateGlobal(WpColorManagerV1Interface, version, bind)
320}
321
322// WpColorManagementOutputV1 output color properties.
323type WpColorManagementOutputV1 struct{ *server.Resource }
324
325func WrapWpColorManagementOutputV1(r *server.Resource) *WpColorManagementOutputV1 {
326 if r == nil {
327 return nil
328 }
329 return &WpColorManagementOutputV1{r}
330}
331
332const WpColorManagementOutputV1RequestDestroy uint32 = 0
333const WpColorManagementOutputV1RequestGetImageDescription uint32 = 1
334const WpColorManagementOutputV1EventImageDescriptionChanged uint32 = 0
335
336// WpColorManagementOutputV1Handler handles wp_color_management_output_v1 requests.
337type WpColorManagementOutputV1Handler interface {
338 Destroy(self *WpColorManagementOutputV1)
339 GetImageDescription(self *WpColorManagementOutputV1, imageDescription uint32)
340}
341
342func NewWpColorManagementOutputV1(c server.Client, version int32, id uint32, h WpColorManagementOutputV1Handler) (*WpColorManagementOutputV1, error) {
343 if h == nil {
344 return nil, fmt.Errorf("purego-libwayland: nil handler for wp_color_management_output_v1")
345 }
346 var self *WpColorManagementOutputV1
347 r, err := c.CreateResource(WpColorManagementOutputV1Interface, version, id, func(_ *server.Resource, opcode uint32, args []server.Arg) {
348 switch opcode {
349 case 0:
350 h.Destroy(self)
351 self.Destroy()
352 case 1:
353 h.GetImageDescription(self, args[0].NewID())
354 }
355 })
356 if err != nil {
357 return nil, err
358 }
359 self = WrapWpColorManagementOutputV1(r)
360 r.Data = self
361 return self, nil
362}
363
364// SendImageDescriptionChanged image description changed.
365func (self *WpColorManagementOutputV1) SendImageDescriptionChanged() {
366 self.PostEvent(WpColorManagementOutputV1EventImageDescriptionChanged)
367}
368func NewWpColorManagementOutputV1Global(d *server.Display, version int32, bind server.BindFunc) error {
369 return d.CreateGlobal(WpColorManagementOutputV1Interface, version, bind)
370}
371
372// WpColorManagementSurfaceV1 color management extension to a surface.
373type WpColorManagementSurfaceV1 struct{ *server.Resource }
374
375func WrapWpColorManagementSurfaceV1(r *server.Resource) *WpColorManagementSurfaceV1 {
376 if r == nil {
377 return nil
378 }
379 return &WpColorManagementSurfaceV1{r}
380}
381
382const WpColorManagementSurfaceV1RequestDestroy uint32 = 0
383const WpColorManagementSurfaceV1RequestSetImageDescription uint32 = 1
384const WpColorManagementSurfaceV1RequestUnsetImageDescription uint32 = 2
385
386// WpColorManagementSurfaceV1Error protocol errors.
387type WpColorManagementSurfaceV1Error uint32
388
389const (
390 WpColorManagementSurfaceV1ErrorRenderIntent WpColorManagementSurfaceV1Error = 0
391 WpColorManagementSurfaceV1ErrorImageDescription WpColorManagementSurfaceV1Error = 1
392 WpColorManagementSurfaceV1ErrorInert WpColorManagementSurfaceV1Error = 2
393)
394
395// WpColorManagementSurfaceV1Handler handles wp_color_management_surface_v1 requests.
396type WpColorManagementSurfaceV1Handler interface {
397 Destroy(self *WpColorManagementSurfaceV1)
398 SetImageDescription(self *WpColorManagementSurfaceV1, imageDescription *WpImageDescriptionV1, renderIntent uint32)
399 UnsetImageDescription(self *WpColorManagementSurfaceV1)
400}
401
402func NewWpColorManagementSurfaceV1(c server.Client, version int32, id uint32, h WpColorManagementSurfaceV1Handler) (*WpColorManagementSurfaceV1, error) {
403 if h == nil {
404 return nil, fmt.Errorf("purego-libwayland: nil handler for wp_color_management_surface_v1")
405 }
406 var self *WpColorManagementSurfaceV1
407 r, err := c.CreateResource(WpColorManagementSurfaceV1Interface, version, id, func(_ *server.Resource, opcode uint32, args []server.Arg) {
408 switch opcode {
409 case 0:
410 h.Destroy(self)
411 self.Destroy()
412 case 1:
413 h.SetImageDescription(self, WrapWpImageDescriptionV1(args[0].Resource()), args[1].Uint())
414 case 2:
415 h.UnsetImageDescription(self)
416 }
417 })
418 if err != nil {
419 return nil, err
420 }
421 self = WrapWpColorManagementSurfaceV1(r)
422 r.Data = self
423 return self, nil
424}
425func NewWpColorManagementSurfaceV1Global(d *server.Display, version int32, bind server.BindFunc) error {
426 return d.CreateGlobal(WpColorManagementSurfaceV1Interface, version, bind)
427}
428
429// WpColorManagementSurfaceFeedbackV1 color management extension to a surface.
430type WpColorManagementSurfaceFeedbackV1 struct{ *server.Resource }
431
432func WrapWpColorManagementSurfaceFeedbackV1(r *server.Resource) *WpColorManagementSurfaceFeedbackV1 {
433 if r == nil {
434 return nil
435 }
436 return &WpColorManagementSurfaceFeedbackV1{r}
437}
438
439const WpColorManagementSurfaceFeedbackV1RequestDestroy uint32 = 0
440const WpColorManagementSurfaceFeedbackV1RequestGetPreferred uint32 = 1
441const WpColorManagementSurfaceFeedbackV1RequestGetPreferredParametric uint32 = 2
442const WpColorManagementSurfaceFeedbackV1EventPreferredChanged uint32 = 0
443const WpColorManagementSurfaceFeedbackV1EventPreferredChanged2 uint32 = 1
444
445// WpColorManagementSurfaceFeedbackV1Error protocol errors.
446type WpColorManagementSurfaceFeedbackV1Error uint32
447
448const (
449 WpColorManagementSurfaceFeedbackV1ErrorInert WpColorManagementSurfaceFeedbackV1Error = 0
450 WpColorManagementSurfaceFeedbackV1ErrorUnsupportedFeature WpColorManagementSurfaceFeedbackV1Error = 1
451)
452
453// WpColorManagementSurfaceFeedbackV1Handler handles wp_color_management_surface_feedback_v1 requests.
454type WpColorManagementSurfaceFeedbackV1Handler interface {
455 Destroy(self *WpColorManagementSurfaceFeedbackV1)
456 GetPreferred(self *WpColorManagementSurfaceFeedbackV1, imageDescription uint32)
457 GetPreferredParametric(self *WpColorManagementSurfaceFeedbackV1, imageDescription uint32)
458}
459
460func NewWpColorManagementSurfaceFeedbackV1(c server.Client, version int32, id uint32, h WpColorManagementSurfaceFeedbackV1Handler) (*WpColorManagementSurfaceFeedbackV1, error) {
461 if h == nil {
462 return nil, fmt.Errorf("purego-libwayland: nil handler for wp_color_management_surface_feedback_v1")
463 }
464 var self *WpColorManagementSurfaceFeedbackV1
465 r, err := c.CreateResource(WpColorManagementSurfaceFeedbackV1Interface, version, id, func(_ *server.Resource, opcode uint32, args []server.Arg) {
466 switch opcode {
467 case 0:
468 h.Destroy(self)
469 self.Destroy()
470 case 1:
471 h.GetPreferred(self, args[0].NewID())
472 case 2:
473 h.GetPreferredParametric(self, args[0].NewID())
474 }
475 })
476 if err != nil {
477 return nil, err
478 }
479 self = WrapWpColorManagementSurfaceFeedbackV1(r)
480 r.Data = self
481 return self, nil
482}
483
484// SendPreferredChanged the preferred image description changed (32-bit).
485func (self *WpColorManagementSurfaceFeedbackV1) SendPreferredChanged(identity uint32) {
486 self.PostEvent(WpColorManagementSurfaceFeedbackV1EventPreferredChanged, server.Uint(identity))
487}
488
489// SendPreferredChanged2 the preferred image description changed (since version 2).
490func (self *WpColorManagementSurfaceFeedbackV1) SendPreferredChanged2(identityHi uint32, identityLo uint32) {
491 self.PostEvent(WpColorManagementSurfaceFeedbackV1EventPreferredChanged2, server.Uint(identityHi), server.Uint(identityLo))
492}
493func NewWpColorManagementSurfaceFeedbackV1Global(d *server.Display, version int32, bind server.BindFunc) error {
494 return d.CreateGlobal(WpColorManagementSurfaceFeedbackV1Interface, version, bind)
495}
496
497// WpImageDescriptionCreatorIccV1 holder of image description ICC information.
498type WpImageDescriptionCreatorIccV1 struct{ *server.Resource }
499
500func WrapWpImageDescriptionCreatorIccV1(r *server.Resource) *WpImageDescriptionCreatorIccV1 {
501 if r == nil {
502 return nil
503 }
504 return &WpImageDescriptionCreatorIccV1{r}
505}
506
507const WpImageDescriptionCreatorIccV1RequestCreate uint32 = 0
508const WpImageDescriptionCreatorIccV1RequestSetIccFile uint32 = 1
509
510// WpImageDescriptionCreatorIccV1Error protocol errors.
511type WpImageDescriptionCreatorIccV1Error uint32
512
513const (
514 WpImageDescriptionCreatorIccV1ErrorIncompleteSet WpImageDescriptionCreatorIccV1Error = 0
515 WpImageDescriptionCreatorIccV1ErrorAlreadySet WpImageDescriptionCreatorIccV1Error = 1
516 WpImageDescriptionCreatorIccV1ErrorBadFd WpImageDescriptionCreatorIccV1Error = 2
517 WpImageDescriptionCreatorIccV1ErrorBadSize WpImageDescriptionCreatorIccV1Error = 3
518 WpImageDescriptionCreatorIccV1ErrorOutOfFile WpImageDescriptionCreatorIccV1Error = 4
519)
520
521// WpImageDescriptionCreatorIccV1Handler handles wp_image_description_creator_icc_v1 requests.
522type WpImageDescriptionCreatorIccV1Handler interface {
523 Create(self *WpImageDescriptionCreatorIccV1, imageDescription uint32)
524 SetIccFile(self *WpImageDescriptionCreatorIccV1, iccProfile int, offset uint32, length uint32)
525}
526
527func NewWpImageDescriptionCreatorIccV1(c server.Client, version int32, id uint32, h WpImageDescriptionCreatorIccV1Handler) (*WpImageDescriptionCreatorIccV1, error) {
528 if h == nil {
529 return nil, fmt.Errorf("purego-libwayland: nil handler for wp_image_description_creator_icc_v1")
530 }
531 var self *WpImageDescriptionCreatorIccV1
532 r, err := c.CreateResource(WpImageDescriptionCreatorIccV1Interface, version, id, func(_ *server.Resource, opcode uint32, args []server.Arg) {
533 switch opcode {
534 case 0:
535 h.Create(self, args[0].NewID())
536 self.Destroy()
537 case 1:
538 h.SetIccFile(self, args[0].Fd(), args[1].Uint(), args[2].Uint())
539 }
540 })
541 if err != nil {
542 return nil, err
543 }
544 self = WrapWpImageDescriptionCreatorIccV1(r)
545 r.Data = self
546 return self, nil
547}
548func NewWpImageDescriptionCreatorIccV1Global(d *server.Display, version int32, bind server.BindFunc) error {
549 return d.CreateGlobal(WpImageDescriptionCreatorIccV1Interface, version, bind)
550}
551
552// WpImageDescriptionCreatorParamsV1 holder of image description parameters.
553type WpImageDescriptionCreatorParamsV1 struct{ *server.Resource }
554
555func WrapWpImageDescriptionCreatorParamsV1(r *server.Resource) *WpImageDescriptionCreatorParamsV1 {
556 if r == nil {
557 return nil
558 }
559 return &WpImageDescriptionCreatorParamsV1{r}
560}
561
562const WpImageDescriptionCreatorParamsV1RequestCreate uint32 = 0
563const WpImageDescriptionCreatorParamsV1RequestSetTfNamed uint32 = 1
564const WpImageDescriptionCreatorParamsV1RequestSetTfPower uint32 = 2
565const WpImageDescriptionCreatorParamsV1RequestSetPrimariesNamed uint32 = 3
566const WpImageDescriptionCreatorParamsV1RequestSetPrimaries uint32 = 4
567const WpImageDescriptionCreatorParamsV1RequestSetLuminances uint32 = 5
568const WpImageDescriptionCreatorParamsV1RequestSetMasteringDisplayPrimaries uint32 = 6
569const WpImageDescriptionCreatorParamsV1RequestSetMasteringLuminance uint32 = 7
570const WpImageDescriptionCreatorParamsV1RequestSetMaxCll uint32 = 8
571const WpImageDescriptionCreatorParamsV1RequestSetMaxFall uint32 = 9
572
573// WpImageDescriptionCreatorParamsV1Error protocol errors.
574type WpImageDescriptionCreatorParamsV1Error uint32
575
576const (
577 WpImageDescriptionCreatorParamsV1ErrorIncompleteSet WpImageDescriptionCreatorParamsV1Error = 0
578 WpImageDescriptionCreatorParamsV1ErrorAlreadySet WpImageDescriptionCreatorParamsV1Error = 1
579 WpImageDescriptionCreatorParamsV1ErrorUnsupportedFeature WpImageDescriptionCreatorParamsV1Error = 2
580 WpImageDescriptionCreatorParamsV1ErrorInvalidTf WpImageDescriptionCreatorParamsV1Error = 3
581 WpImageDescriptionCreatorParamsV1ErrorInvalidPrimariesNamed WpImageDescriptionCreatorParamsV1Error = 4
582 WpImageDescriptionCreatorParamsV1ErrorInvalidLuminance WpImageDescriptionCreatorParamsV1Error = 5
583)
584
585// WpImageDescriptionCreatorParamsV1Handler handles wp_image_description_creator_params_v1 requests.
586type WpImageDescriptionCreatorParamsV1Handler interface {
587 Create(self *WpImageDescriptionCreatorParamsV1, imageDescription uint32)
588 SetTfNamed(self *WpImageDescriptionCreatorParamsV1, tf uint32)
589 SetTfPower(self *WpImageDescriptionCreatorParamsV1, eexp uint32)
590 SetPrimariesNamed(self *WpImageDescriptionCreatorParamsV1, primaries uint32)
591 SetPrimaries(self *WpImageDescriptionCreatorParamsV1, rX int32, rY int32, gX int32, gY int32, bX int32, bY int32, wX int32, wY int32)
592 SetLuminances(self *WpImageDescriptionCreatorParamsV1, minLum uint32, maxLum uint32, referenceLum uint32)
593 SetMasteringDisplayPrimaries(self *WpImageDescriptionCreatorParamsV1, rX int32, rY int32, gX int32, gY int32, bX int32, bY int32, wX int32, wY int32)
594 SetMasteringLuminance(self *WpImageDescriptionCreatorParamsV1, minLum uint32, maxLum uint32)
595 SetMaxCll(self *WpImageDescriptionCreatorParamsV1, maxCll uint32)
596 SetMaxFall(self *WpImageDescriptionCreatorParamsV1, maxFall uint32)
597}
598
599func NewWpImageDescriptionCreatorParamsV1(c server.Client, version int32, id uint32, h WpImageDescriptionCreatorParamsV1Handler) (*WpImageDescriptionCreatorParamsV1, error) {
600 if h == nil {
601 return nil, fmt.Errorf("purego-libwayland: nil handler for wp_image_description_creator_params_v1")
602 }
603 var self *WpImageDescriptionCreatorParamsV1
604 r, err := c.CreateResource(WpImageDescriptionCreatorParamsV1Interface, version, id, func(_ *server.Resource, opcode uint32, args []server.Arg) {
605 switch opcode {
606 case 0:
607 h.Create(self, args[0].NewID())
608 self.Destroy()
609 case 1:
610 h.SetTfNamed(self, args[0].Uint())
611 case 2:
612 h.SetTfPower(self, args[0].Uint())
613 case 3:
614 h.SetPrimariesNamed(self, args[0].Uint())
615 case 4:
616 h.SetPrimaries(self, args[0].Int(), args[1].Int(), args[2].Int(), args[3].Int(), args[4].Int(), args[5].Int(), args[6].Int(), args[7].Int())
617 case 5:
618 h.SetLuminances(self, args[0].Uint(), args[1].Uint(), args[2].Uint())
619 case 6:
620 h.SetMasteringDisplayPrimaries(self, args[0].Int(), args[1].Int(), args[2].Int(), args[3].Int(), args[4].Int(), args[5].Int(), args[6].Int(), args[7].Int())
621 case 7:
622 h.SetMasteringLuminance(self, args[0].Uint(), args[1].Uint())
623 case 8:
624 h.SetMaxCll(self, args[0].Uint())
625 case 9:
626 h.SetMaxFall(self, args[0].Uint())
627 }
628 })
629 if err != nil {
630 return nil, err
631 }
632 self = WrapWpImageDescriptionCreatorParamsV1(r)
633 r.Data = self
634 return self, nil
635}
636func NewWpImageDescriptionCreatorParamsV1Global(d *server.Display, version int32, bind server.BindFunc) error {
637 return d.CreateGlobal(WpImageDescriptionCreatorParamsV1Interface, version, bind)
638}
639
640// WpImageDescriptionV1 Colorimetric image description.
641type WpImageDescriptionV1 struct{ *server.Resource }
642
643func WrapWpImageDescriptionV1(r *server.Resource) *WpImageDescriptionV1 {
644 if r == nil {
645 return nil
646 }
647 return &WpImageDescriptionV1{r}
648}
649
650const WpImageDescriptionV1RequestDestroy uint32 = 0
651const WpImageDescriptionV1RequestGetInformation uint32 = 1
652const WpImageDescriptionV1EventFailed uint32 = 0
653const WpImageDescriptionV1EventReady uint32 = 1
654const WpImageDescriptionV1EventReady2 uint32 = 2
655
656// WpImageDescriptionV1Error protocol errors.
657type WpImageDescriptionV1Error uint32
658
659const (
660 WpImageDescriptionV1ErrorNotReady WpImageDescriptionV1Error = 0
661 WpImageDescriptionV1ErrorNoInformation WpImageDescriptionV1Error = 1
662)
663
664// WpImageDescriptionV1Cause generic reason for failure.
665type WpImageDescriptionV1Cause uint32
666
667const (
668 WpImageDescriptionV1CauseLowVersion WpImageDescriptionV1Cause = 0
669 WpImageDescriptionV1CauseUnsupported WpImageDescriptionV1Cause = 1
670 WpImageDescriptionV1CauseOperatingSystem WpImageDescriptionV1Cause = 2
671 WpImageDescriptionV1CauseNoOutput WpImageDescriptionV1Cause = 3
672)
673
674// WpImageDescriptionV1Handler handles wp_image_description_v1 requests.
675type WpImageDescriptionV1Handler interface {
676 Destroy(self *WpImageDescriptionV1)
677 GetInformation(self *WpImageDescriptionV1, information uint32)
678}
679
680func NewWpImageDescriptionV1(c server.Client, version int32, id uint32, h WpImageDescriptionV1Handler) (*WpImageDescriptionV1, error) {
681 if h == nil {
682 return nil, fmt.Errorf("purego-libwayland: nil handler for wp_image_description_v1")
683 }
684 var self *WpImageDescriptionV1
685 r, err := c.CreateResource(WpImageDescriptionV1Interface, version, id, func(_ *server.Resource, opcode uint32, args []server.Arg) {
686 switch opcode {
687 case 0:
688 h.Destroy(self)
689 self.Destroy()
690 case 1:
691 h.GetInformation(self, args[0].NewID())
692 }
693 })
694 if err != nil {
695 return nil, err
696 }
697 self = WrapWpImageDescriptionV1(r)
698 r.Data = self
699 return self, nil
700}
701
702// SendFailed graceful error on creating the image description.
703func (self *WpImageDescriptionV1) SendFailed(cause uint32, msg string) {
704 var p runtime.Pinner
705 defer p.Unpin()
706 self.PostEvent(WpImageDescriptionV1EventFailed, server.Uint(cause), server.String(&p, msg, false))
707}
708
709// SendReady the object is ready to be used (32-bit).
710func (self *WpImageDescriptionV1) SendReady(identity uint32) {
711 self.PostEvent(WpImageDescriptionV1EventReady, server.Uint(identity))
712}
713
714// SendReady2 the object is ready to be used (since version 2).
715func (self *WpImageDescriptionV1) SendReady2(identityHi uint32, identityLo uint32) {
716 self.PostEvent(WpImageDescriptionV1EventReady2, server.Uint(identityHi), server.Uint(identityLo))
717}
718func NewWpImageDescriptionV1Global(d *server.Display, version int32, bind server.BindFunc) error {
719 return d.CreateGlobal(WpImageDescriptionV1Interface, version, bind)
720}
721
722// WpImageDescriptionInfoV1 Colorimetric image description information.
723type WpImageDescriptionInfoV1 struct{ *server.Resource }
724
725func WrapWpImageDescriptionInfoV1(r *server.Resource) *WpImageDescriptionInfoV1 {
726 if r == nil {
727 return nil
728 }
729 return &WpImageDescriptionInfoV1{r}
730}
731
732const WpImageDescriptionInfoV1EventDone uint32 = 0
733const WpImageDescriptionInfoV1EventIccFile uint32 = 1
734const WpImageDescriptionInfoV1EventPrimaries uint32 = 2
735const WpImageDescriptionInfoV1EventPrimariesNamed uint32 = 3
736const WpImageDescriptionInfoV1EventTfPower uint32 = 4
737const WpImageDescriptionInfoV1EventTfNamed uint32 = 5
738const WpImageDescriptionInfoV1EventLuminances uint32 = 6
739const WpImageDescriptionInfoV1EventTargetPrimaries uint32 = 7
740const WpImageDescriptionInfoV1EventTargetLuminance uint32 = 8
741const WpImageDescriptionInfoV1EventTargetMaxCll uint32 = 9
742const WpImageDescriptionInfoV1EventTargetMaxFall uint32 = 10
743
744// WpImageDescriptionInfoV1Handler handles wp_image_description_info_v1 requests.
745type WpImageDescriptionInfoV1Handler interface {
746}
747
748func NewWpImageDescriptionInfoV1(c server.Client, version int32, id uint32, h WpImageDescriptionInfoV1Handler) (*WpImageDescriptionInfoV1, error) {
749 var self *WpImageDescriptionInfoV1
750 r, err := c.CreateResource(WpImageDescriptionInfoV1Interface, version, id, func(_ *server.Resource, opcode uint32, args []server.Arg) {
751 switch opcode {
752 }
753 })
754 if err != nil {
755 return nil, err
756 }
757 self = WrapWpImageDescriptionInfoV1(r)
758 r.Data = self
759 return self, nil
760}
761
762// SendDone end of information.
763func (self *WpImageDescriptionInfoV1) SendDone() {
764 self.PostEvent(WpImageDescriptionInfoV1EventDone)
765}
766
767// SendIccFile ICC profile matching the image description.
768func (self *WpImageDescriptionInfoV1) SendIccFile(icc int, iccSize uint32) {
769 self.PostEvent(WpImageDescriptionInfoV1EventIccFile, server.Fd(icc), server.Uint(iccSize))
770}
771
772// SendPrimaries primaries as chromaticity coordinates.
773func (self *WpImageDescriptionInfoV1) SendPrimaries(rX int32, rY int32, gX int32, gY int32, bX int32, bY int32, wX int32, wY int32) {
774 self.PostEvent(WpImageDescriptionInfoV1EventPrimaries, server.Int(rX), server.Int(rY), server.Int(gX), server.Int(gY), server.Int(bX), server.Int(bY), server.Int(wX), server.Int(wY))
775}
776
777// SendPrimariesNamed named primaries.
778func (self *WpImageDescriptionInfoV1) SendPrimariesNamed(primaries uint32) {
779 self.PostEvent(WpImageDescriptionInfoV1EventPrimariesNamed, server.Uint(primaries))
780}
781
782// SendTfPower transfer characteristic as a power curve.
783func (self *WpImageDescriptionInfoV1) SendTfPower(eexp uint32) {
784 self.PostEvent(WpImageDescriptionInfoV1EventTfPower, server.Uint(eexp))
785}
786
787// SendTfNamed named transfer characteristic.
788func (self *WpImageDescriptionInfoV1) SendTfNamed(tf uint32) {
789 self.PostEvent(WpImageDescriptionInfoV1EventTfNamed, server.Uint(tf))
790}
791
792// SendLuminances primary color volume luminance range and reference white.
793func (self *WpImageDescriptionInfoV1) SendLuminances(minLum uint32, maxLum uint32, referenceLum uint32) {
794 self.PostEvent(WpImageDescriptionInfoV1EventLuminances, server.Uint(minLum), server.Uint(maxLum), server.Uint(referenceLum))
795}
796
797// SendTargetPrimaries target primaries as chromaticity coordinates.
798func (self *WpImageDescriptionInfoV1) SendTargetPrimaries(rX int32, rY int32, gX int32, gY int32, bX int32, bY int32, wX int32, wY int32) {
799 self.PostEvent(WpImageDescriptionInfoV1EventTargetPrimaries, server.Int(rX), server.Int(rY), server.Int(gX), server.Int(gY), server.Int(bX), server.Int(bY), server.Int(wX), server.Int(wY))
800}
801
802// SendTargetLuminance target luminance range.
803func (self *WpImageDescriptionInfoV1) SendTargetLuminance(minLum uint32, maxLum uint32) {
804 self.PostEvent(WpImageDescriptionInfoV1EventTargetLuminance, server.Uint(minLum), server.Uint(maxLum))
805}
806
807// SendTargetMaxCll target maximum content light level.
808func (self *WpImageDescriptionInfoV1) SendTargetMaxCll(maxCll uint32) {
809 self.PostEvent(WpImageDescriptionInfoV1EventTargetMaxCll, server.Uint(maxCll))
810}
811
812// SendTargetMaxFall target maximum frame-average light level.
813func (self *WpImageDescriptionInfoV1) SendTargetMaxFall(maxFall uint32) {
814 self.PostEvent(WpImageDescriptionInfoV1EventTargetMaxFall, server.Uint(maxFall))
815}
816func NewWpImageDescriptionInfoV1Global(d *server.Display, version int32, bind server.BindFunc) error {
817 return d.CreateGlobal(WpImageDescriptionInfoV1Interface, version, bind)
818}
819
820// WpImageDescriptionReferenceV1 Reference to an image description.
821type WpImageDescriptionReferenceV1 struct{ *server.Resource }
822
823func WrapWpImageDescriptionReferenceV1(r *server.Resource) *WpImageDescriptionReferenceV1 {
824 if r == nil {
825 return nil
826 }
827 return &WpImageDescriptionReferenceV1{r}
828}
829
830const WpImageDescriptionReferenceV1RequestDestroy uint32 = 0
831
832// WpImageDescriptionReferenceV1Handler handles wp_image_description_reference_v1 requests.
833type WpImageDescriptionReferenceV1Handler interface {
834 Destroy(self *WpImageDescriptionReferenceV1)
835}
836
837func NewWpImageDescriptionReferenceV1(c server.Client, version int32, id uint32, h WpImageDescriptionReferenceV1Handler) (*WpImageDescriptionReferenceV1, error) {
838 if h == nil {
839 return nil, fmt.Errorf("purego-libwayland: nil handler for wp_image_description_reference_v1")
840 }
841 var self *WpImageDescriptionReferenceV1
842 r, err := c.CreateResource(WpImageDescriptionReferenceV1Interface, version, id, func(_ *server.Resource, opcode uint32, args []server.Arg) {
843 switch opcode {
844 case 0:
845 h.Destroy(self)
846 self.Destroy()
847 }
848 })
849 if err != nil {
850 return nil, err
851 }
852 self = WrapWpImageDescriptionReferenceV1(r)
853 r.Data = self
854 return self, nil
855}
856func NewWpImageDescriptionReferenceV1Global(d *server.Display, version int32, bind server.BindFunc) error {
857 return d.CreateGlobal(WpImageDescriptionReferenceV1Interface, version, bind)
858}
859func resourceOf(v interface{ GetResource() *server.Resource }) *server.Resource {
860 if v == nil {
861 return nil
862 }
863 return v.GetResource()
864}
865func (self *WpColorManagerV1) GetResource() *server.Resource {
866 if self == nil {
867 return nil
868 }
869 return self.Resource
870}
871func (self *WpColorManagementOutputV1) GetResource() *server.Resource {
872 if self == nil {
873 return nil
874 }
875 return self.Resource
876}
877func (self *WpColorManagementSurfaceV1) GetResource() *server.Resource {
878 if self == nil {
879 return nil
880 }
881 return self.Resource
882}
883func (self *WpColorManagementSurfaceFeedbackV1) GetResource() *server.Resource {
884 if self == nil {
885 return nil
886 }
887 return self.Resource
888}
889func (self *WpImageDescriptionCreatorIccV1) GetResource() *server.Resource {
890 if self == nil {
891 return nil
892 }
893 return self.Resource
894}
895func (self *WpImageDescriptionCreatorParamsV1) GetResource() *server.Resource {
896 if self == nil {
897 return nil
898 }
899 return self.Resource
900}
901func (self *WpImageDescriptionV1) GetResource() *server.Resource {
902 if self == nil {
903 return nil
904 }
905 return self.Resource
906}
907func (self *WpImageDescriptionInfoV1) GetResource() *server.Resource {
908 if self == nil {
909 return nil
910 }
911 return self.Resource
912}
913func (self *WpImageDescriptionReferenceV1) GetResource() *server.Resource {
914 if self == nil {
915 return nil
916 }
917 return self.Resource
918}