Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: GtkColorChooserDialog

[22:7] extends: object

A dialog for choosing a color. An example GtkColorChooserDialog GtkColorChooserDialog implements the [iface@Gtk.ColorChooser] interface and does not provide much API of its own. To create a GtkColorChooserDialog, use [ctor@Gtk.ColorChooserDialog.new]. To change the initially selected color, use [method@Gtk.ColorChooser.set_rgba]. To get the selected color use [method@Gtk.ColorChooser.get_rgba]. GtkColorChooserDialog has been deprecated in favor of [class@Gtk.ColorDialog]. ## CSS nodes GtkColorChooserDialog has a single CSS node with the name window and style class .colorchooser.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • GtkColorChooserDialog (title = null, parent = null)

    Creates a new GtkColorChooserDialog.

    • @p title is Title of the dialog.
    • @p parent is Transient parent of the dialog.
  • 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 exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asDialog ()

    Wraps this handle as GtkDialog.

    • @r A GtkDialog object.
  • asAccessible ()

    Wraps this handle as GtkAccessible.

    • @r A GtkAccessible object.
  • asBuildable ()

    Wraps this handle as GtkBuildable.

    • @r A GtkBuildable object.
  • asColorChooser ()

    Wraps this handle as GtkColorChooser.

    • @r A GtkColorChooser object.
  • asConstraintTarget ()

    Wraps this handle as GtkConstraintTarget.

    • @r A GtkConstraintTarget object.
  • asNative ()

    Wraps this handle as GtkNative.

    • @r A GtkNative object.
  • asRoot ()

    Wraps this handle as GtkRoot.

    • @r A GtkRoot object.
  • asShortcutManager ()

    Wraps this handle as GtkShortcutManager.

    • @r A GtkShortcutManager object.
  • getProperty (string Name)

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setShoweditor (bool Value)

    Whether the color chooser dialog is showing the single-color editor. It can be set to switch the color chooser into single-color editing mode.

    • @p Value is the new property value.
    • @r None.

class: GtkColorChooserDialogMeta

[199:14] static extends: object

Generated metadata helpers for ColorChooserDialog class surfaces.

Methods

  • properties ()

    Returns property metadata for ColorChooserDialog.

    • @r A list.