Basics
Guides
API Reference
Basics
Guides
API Reference
[16:7] extends: object
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.
GdkColorState (Handle = null)
Creates a new
ColorStateby wrapping a native handle or another wrapper.
Handle is the native handle or another wrapper whose handle to adopt.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.create_cicp_params ()
Create a [class@Gdk.CicpParams] representing the colorstate. It is not guaranteed that every
GdkColorStatecan be represented with Cicp parameters. If that is the case, this function returnsNULL.
A new [class@Gdk.CicpParams].equal (object other)
Compares two
GdkColorStatesfor 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.
other is another GdkColorStatee.%TRUE if the two color states compare equal.equivalent (object other)
Compares two
GdkColorStatesfor equivalence. Two objects that represent the same color state should be equivalent, even though they may not be equal in the sense of [method@Gdk.ColorState.equal].
other is another GdkColorStatee.%TRUE if the two color states are equivalent.ref ()
Increase the reference count of @self.
the object that was passed in.unref ()
Decrease the reference count of @self. Unless @self is static, it will be freed when the reference count reaches zero.
None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.