class Gdk::ColorState

Overview

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.

Gdk::ColorState objects are immutable and therefore threadsafe.

Defined in:

lib/gi-crystal/src/auto/gdk-4.0/color_state.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


def self.oklab : Gdk::ColorState #

def self.oklch : Gdk::ColorState #

def self.rec2100_linear : Gdk::ColorState #

def self.rec2100_pq : Gdk::ColorState #

def self.srgb : Gdk::ColorState #

def self.srgb_linear : Gdk::ColorState #

Instance Method Detail

def create_cicp_params : Gdk::CicpParams | Nil #

def equal(other : Gdk::ColorState) : Bool #

def finalize #

def ref : Gdk::ColorState #

def to_unsafe : Pointer(Void) #

def unref : Nil #