ColorDialog

open class ColorDialog(pointer: <Error class: unknown class><<Error class: unknown class>>)

A GtkColorDialog object collects the arguments that are needed to present a color chooser dialog to the user, such as a title for the dialog and whether it should be modal.

The dialog is shown with the method@Gtk.ColorDialog.choose_rgba function.

See class@Gtk.ColorDialogButton for a convenient control that uses GtkColorDialog and presents the results.

Since

4.10

Constructors

Link copied to clipboard
constructor()

Creates a new GtkColorDialog object.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gtkColorDialogPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open var modal: Boolean

Whether the color chooser dialog is modal.

Link copied to clipboard
open var title: String

A title that may be shown on the color chooser dialog that is presented by method@Gtk.ColorDialog.choose_rgba.

Link copied to clipboard
open var withAlpha: Boolean

Whether colors may have alpha (translucency).

Functions

Link copied to clipboard
open fun chooseRgba(parent: Window? = null, initialColor: <Error class: unknown class>? = null, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>?)

This function initiates a color choice operation by presenting a color chooser dialog to the user.

Link copied to clipboard
open fun chooseRgbaFinish(result: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>?>

Finishes the method@Gtk.ColorDialog.choose_rgba call and returns the resulting color.