Table of Contents

Class ColorDialog

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class ColorDialog : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
ColorDialog
Implements
Inherited Members

Constructors

ColorDialog(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public ColorDialog(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

ColorDialog(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ColorDialog(CreationData data)

Parameters

data CreationData

ColorDialog(ColorDialogHandle)

protected ColorDialog(ColorDialogHandle handle)

Parameters

handle ColorDialogHandle

Fields

ModalPropertyDefinition

public static readonly Property<bool, ColorDialog> ModalPropertyDefinition

Field Value

Property<bool, ColorDialog>

TitlePropertyDefinition

public static readonly Property<string?, ColorDialog> TitlePropertyDefinition

Field Value

Property<string, ColorDialog>

WithAlphaPropertyDefinition

public static readonly Property<bool, ColorDialog> WithAlphaPropertyDefinition

Field Value

Property<bool, ColorDialog>

Properties

Modal

public bool Modal { get; set; }

Property Value

bool

Title

public string? Title { get; set; }

Property Value

string

WithAlpha

public bool WithAlpha { get; set; }

Property Value

bool

Methods

ChooseRgbaFinish(AsyncResult)

[Version("4.10")]
public RGBA ChooseRgbaFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

RGBA

GetGType()

public static Type GetGType()

Returns

Type

GetModal()

[Version("4.10")]
public bool GetModal()

Returns

bool

GetTitle()

[Version("4.10")]
public string GetTitle()

Returns

string

GetWithAlpha()

[Version("4.10")]
public bool GetWithAlpha()

Returns

bool

New()

[Version("4.10")]
public static ColorDialog New()

Returns

ColorDialog

NewFromPointer(nint, bool)

Creates a new managed ColorDialog instance for a given pointer.

public static ColorDialog NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

ColorDialog

NewWithProperties(ConstructArgument[])

Creates a new ColorDialog and sets the properties specified by the construct arguments.

public static ColorDialog NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

ColorDialog

SetModal(bool)

[Version("4.10")]
public void SetModal(bool modal)

Parameters

modal bool

SetTitle(string)

[Version("4.10")]
public void SetTitle(string title)

Parameters

title string

SetWithAlpha(bool)

[Version("4.10")]
public void SetWithAlpha(bool withAlpha)

Parameters

withAlpha bool