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.


[View source]

Class Method Detail

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

[View source]
def self.g_type : UInt64 #

[View source]

Instance Method Detail

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

[View source]
def color_activated_signal #

[View source]
def rgba : Gdk::RGBA #

[View source]
def rgba=(color : Gdk::RGBA) : Nil #

[View source]
def rgba=(value : Gdk::RGBA | Nil) : Gdk::RGBA | Nil #

[View source]
abstract def to_unsafe #

[View source]
def use_alpha : Bool #

[View source]
def use_alpha=(use_alpha : Bool) : Nil #

[View source]
def use_alpha? : Bool #

[View source]