Provides information to interpret colors and pixels in a variety of ways.
They are also known as color spaces.
Crucially, GTK knows how to convert colors from one color state to another.
GdkColorState objects are immutable and therefore threadsafe.
function Create_Cicp_Params
(Self : Gdk_Color_State) return Gdk.Gdk_Cicp_Params
Create a [classGdk.CicpParams] representing the colorstate. It is not guaranteed that every GdkColorState can be represented with Cicp parameters. If that is the case, this function returns NULL. Since: gtk+ 4.16
A new [classGdk.CicpParams]. Has transfer-ownership='full'.
function Equal
(Self : Gdk_Color_State;
Other : Gdk_Color_State) return Boolean
Compares two GdkColorStates for equality. Note that this function is not guaranteed to be perfect and two objects describing the same color state may compare not equal. However, different color states will never compare equal. Since: gtk+ 4.16
another GdkColorStatee
True if the two color states compare equal
function Equivalent
(Self : Gdk_Color_State;
Other : Gdk_Color_State) return Boolean
Compares two GdkColorStates for equivalence. Two objects that represent the same color state should be equivalent, even though they may not be equal in the sense of [methodGdk.ColorState.equal]. Since: gtk+ 4.20
another GdkColorStatee
True if the two color states are equivalent
function From_Object (Object : System.Address) return Gdk_Color_State
function From_Object_Free (B : access Gdk_Color_State'Class) return Gdk_Color_State
type Gdk_Color_State is new Glib.C_Boxed with null record;
function Get_Oklab return Gdk_Color_State
Returns the color state object representing the oklab color space. This is a perceptually uniform color state. Since: gtk+ 4.18
the color state object for oklab. Has transfer-ownership='full'.
function Get_Oklch return Gdk_Color_State
Returns the color state object representing the oklch color space. This is the polar variant of oklab, in which the hue is encoded as a polar coordinate. Since: gtk+ 4.18
the color state object for oklch. Has transfer-ownership='full'.
function Get_Rec2100_Linear return Gdk_Color_State
Returns the color state object representing the linear rec2100 color space. This color state uses the primaries defined by BT.2020-2 and BT.2100-0 and a linear transfer function. It is equivalent to the Cicp tuple 9/8/0/1. See e.g. the CSS HDR Module for details about this colorstate. Since: gtk+ 4.16
the color state object for linearized rec2100. Has transfer-ownership='full'.
function Get_Rec2100_Pq return Gdk_Color_State
Returns the color state object representing the rec2100-pq color space. This color state uses the primaries defined by BT.2020-2 and BT.2100-0 and the transfer function defined by SMPTE ST 2084 and BT.2100-2. It is equivalent to the Cicp tuple 9/16/0/1. See e.g. the CSS HDR Module for details about this colorstate. Since: gtk+ 4.16
the color state object for rec2100-pq. Has transfer-ownership='full'.
function Get_Srgb return Gdk_Color_State
Returns the color state object representing the sRGB color space. This color state uses the primaries defined by BT.709-6 and the transfer function defined by IEC 61966-2-1. It is equivalent to the Cicp tuple 1/13/0/1. See e.g. the CSS Color Module for details about this colorstate. Since: gtk+ 4.16
the color state object for sRGB. Has transfer-ownership='full'.
function Get_Srgb_Linear return Gdk_Color_State
Returns the color state object representing the linearized sRGB color space. This color state uses the primaries defined by BT.709-6 and a linear transfer function. It is equivalent to the Cicp tuple 1/8/0/1. See e.g. the CSS Color Module for details about this colorstate. Since: gtk+ 4.16
the color state object for linearized sRGB. Has transfer-ownership='full'.
function Get_Type return Glib.GType
Null_Gdk_Color_State : constant Gdk_Color_State;
function Ref (Self : Gdk_Color_State) return Gdk_Color_State
Increase the reference count of Self. Since: gtk+ 4.16
the object that was passed in. Has transfer-ownership='full'.
procedure Unref (Self : Gdk_Color_State)
Decrease the reference count of Self. Unless Self is static, it will be freed when the reference count reaches zero. Since: gtk+ 4.16