ColorChooserDialogRef

public struct ColorChooserDialogRef : ColorChooserDialogProtocol, GWeakCapturing

A dialog for choosing a color.

An example GtkColorChooserDialog

GtkColorChooserDialog implements the [ifaceGtk.ColorChooser] interface and does not provide much API of its own.

To create a GtkColorChooserDialog, use [ctorGtk.ColorChooserDialog.new].

To change the initially selected color, use [methodGtk.ColorChooser.set_rgba]. To get the selected color use [methodGtk.ColorChooser.get_rgba].

The ColorChooserDialogRef type acts as a lightweight Swift reference to an underlying GtkColorChooserDialog instance. It exposes methods that can operate on this data type through ColorChooserDialogProtocol conformance. Use ColorChooserDialogRef only as an unowned reference to an existing GtkColorChooserDialog instance.

  • ptr
    Untyped pointer to the underlying `GtkColorChooserDialog` instance.
    

    For type-safe access, use the generated, typed pointer color_chooser_dialog_ptr property instead.

    Declaration

    Swift

    public let ptr: UnsafeMutableRawPointer!

ColorChooserDialog Class