module Gtk::ColorChooser

Overview

Gtk::ColorChooser is an interface that is implemented by widgets for choosing colors.

Depending on the situation, colors may be allowed to have alpha (translucency).

In GTK, the main widgets that implement this interface are Gtk::ColorChooserWidget, Gtk::ColorChooserDialog and Gtk::ColorButton.

Direct including types

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/color_chooser.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.cast(obj : GObject::Object) : self #

Cast a GObject::Object to self, throws a TypeCastError if the cast can't be made.


Class Method Detail

def self.cast?(obj : GObject::Object) : self | Nil #

def self.g_type : UInt64 #

Instance Method Detail

def add_palette(orientation : Gtk::Orientation, colors_per_line : Int32, colors : Enumerable(Gdk::RGBA) | Nil) : Nil #

DEPRECATED


def color_activated_signal #

def rgba : Gdk::RGBA #

DEPRECATED


def rgba=(color : Gdk::RGBA) : Nil #

DEPRECATED


def rgba=(value : Gdk::RGBA | Nil) : Gdk::RGBA | Nil #

abstract def to_unsafe #

def use_alpha : Bool #

DEPRECATED


def use_alpha=(use_alpha : Bool) : Nil #

DEPRECATED


def use_alpha? : Bool #