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.crConstructors
-
.cast(obj : GObject::Object) : self
Cast a
GObject::Object
toself
, throws aTypeCastError
if the cast can't be made.
Class Method Summary
Instance Method Summary
- #add_palette(orientation : Gtk::Orientation, colors_per_line : Int32, colors : Enumerable(Gdk::RGBA) | Nil) : Nil
- #color_activated_signal
- #rgba : Gdk::RGBA
- #rgba=(color : Gdk::RGBA) : Nil
- #rgba=(value : Gdk::RGBA | Nil) : Gdk::RGBA | Nil
- #to_unsafe
- #use_alpha : Bool
- #use_alpha=(use_alpha : Bool) : Nil
- #use_alpha? : Bool
Constructor Detail
Cast a GObject::Object
to self
, throws a TypeCastError
if the cast can't be made.
Class Method Detail
Instance Method Detail
def add_palette(orientation : Gtk::Orientation, colors_per_line : Int32, colors : Enumerable(Gdk::RGBA) | Nil) : Nil
#