gdkcolorstate.go RawHistoryFolder
1// Package gdk was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gdk
3
4import (
5 "github.com/ebitengine/purego"
6
7 "github.com/bnema/puregotk/pkg/core"
8)
9
10var xColorStateGetOklab func() *ColorState
11
12// Returns the color state object representing the oklab color space.
13//
14// This is a perceptually uniform color state.
15func ColorStateGetOklab() *ColorState {
16
17 cret := xColorStateGetOklab()
18 return cret
19}
20
21var xColorStateGetOklch func() *ColorState
22
23// Returns the color state object representing the oklch color space.
24//
25// This is the polar variant of oklab, in which the hue is encoded as
26// a polar coordinate.
27func ColorStateGetOklch() *ColorState {
28
29 cret := xColorStateGetOklch()
30 return cret
31}
32
33var xColorStateGetRec2100Linear func() *ColorState
34
35// Returns the color state object representing the linear rec2100 color space.
36//
37// This color state uses the primaries defined by BT.2020-2 and BT.2100-0 and a linear
38// transfer function.
39//
40// It is equivalent to the [Cicp](class.CicpParams.html) tuple 9/8/0/1.
41//
42// See e.g. [the CSS HDR Module](https://drafts.csswg.org/css-color-hdr/#valdef-color-rec2100-linear)
43// for details about this colorstate.
44func ColorStateGetRec2100Linear() *ColorState {
45
46 cret := xColorStateGetRec2100Linear()
47 return cret
48}
49
50var xColorStateGetRec2100Pq func() *ColorState
51
52// Returns the color state object representing the rec2100-pq color space.
53//
54// This color state uses the primaries defined by BT.2020-2 and BT.2100-0 and the transfer
55// function defined by SMPTE ST 2084 and BT.2100-2.
56//
57// It is equivalent to the [Cicp](class.CicpParams.html) tuple 9/16/0/1.
58//
59// See e.g. [the CSS HDR Module](https://drafts.csswg.org/css-color-hdr/#valdef-color-rec2100-pq)
60// for details about this colorstate.
61func ColorStateGetRec2100Pq() *ColorState {
62
63 cret := xColorStateGetRec2100Pq()
64 return cret
65}
66
67var xColorStateGetSrgb func() *ColorState
68
69// Returns the color state object representing the sRGB color space.
70//
71// This color state uses the primaries defined by BT.709-6 and the transfer function
72// defined by IEC 61966-2-1.
73//
74// It is equivalent to the [Cicp](class.CicpParams.html) tuple 1/13/0/1.
75//
76// See e.g. [the CSS Color Module](https://www.w3.org/TR/css-color-4/#predefined-sRGB)
77// for details about this colorstate.
78func ColorStateGetSrgb() *ColorState {
79
80 cret := xColorStateGetSrgb()
81 return cret
82}
83
84var xColorStateGetSrgbLinear func() *ColorState
85
86// Returns the color state object representing the linearized sRGB color space.
87//
88// This color state uses the primaries defined by BT.709-6 and a linear transfer function.
89//
90// It is equivalent to the [Cicp](class.CicpParams.html) tuple 1/8/0/1.
91//
92// See e.g. [the CSS Color Module](https://www.w3.org/TR/css-color-4/#predefined-sRGB-linear)
93// for details about this colorstate.
94func ColorStateGetSrgbLinear() *ColorState {
95
96 cret := xColorStateGetSrgbLinear()
97 return cret
98}
99
100func init() {
101 core.SetPackageName("GDK", "gtk4")
102 core.SetSharedLibraries("GDK", []string{"libgtk-4.so.1"})
103 var libs []uintptr
104 for _, libPath := range core.GetPaths("GDK") {
105 lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
106 if err != nil {
107 panic(err)
108 }
109 libs = append(libs, lib)
110 }
111
112 core.PuregoSafeRegister(&xColorStateGetOklab, libs, "gdk_color_state_get_oklab")
113 core.PuregoSafeRegister(&xColorStateGetOklch, libs, "gdk_color_state_get_oklch")
114 core.PuregoSafeRegister(&xColorStateGetRec2100Linear, libs, "gdk_color_state_get_rec2100_linear")
115 core.PuregoSafeRegister(&xColorStateGetRec2100Pq, libs, "gdk_color_state_get_rec2100_pq")
116 core.PuregoSafeRegister(&xColorStateGetSrgb, libs, "gdk_color_state_get_srgb")
117 core.PuregoSafeRegister(&xColorStateGetSrgbLinear, libs, "gdk_color_state_get_srgb_linear")
118
119}