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
constructArgumentsConstructArgument[]
ColorDialog(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ColorDialog(CreationData data)
Parameters
dataCreationData
ColorDialog(ColorDialogHandle)
protected ColorDialog(ColorDialogHandle handle)
Parameters
handleColorDialogHandle
Fields
ModalPropertyDefinition
public static readonly Property<bool, ColorDialog> ModalPropertyDefinition
Field Value
TitlePropertyDefinition
public static readonly Property<string?, ColorDialog> TitlePropertyDefinition
Field Value
WithAlphaPropertyDefinition
public static readonly Property<bool, ColorDialog> WithAlphaPropertyDefinition
Field Value
Properties
Modal
public bool Modal { get; set; }
Property Value
Title
public string? Title { get; set; }
Property Value
WithAlpha
public bool WithAlpha { get; set; }
Property Value
Methods
ChooseRgbaFinish(AsyncResult)
[Version("4.10")]
public RGBA ChooseRgbaFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
GetGType()
public static Type GetGType()
Returns
GetModal()
[Version("4.10")]
public bool GetModal()
Returns
GetTitle()
[Version("4.10")]
public string GetTitle()
Returns
GetWithAlpha()
[Version("4.10")]
public bool GetWithAlpha()
Returns
New()
[Version("4.10")]
public static ColorDialog New()
Returns
NewFromPointer(nint, bool)
Creates a new managed ColorDialog instance for a given pointer.
public static ColorDialog NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new ColorDialog and sets the properties specified by the construct arguments.
public static ColorDialog NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetModal(bool)
[Version("4.10")]
public void SetModal(bool modal)
Parameters
modalbool
SetTitle(string)
[Version("4.10")]
public void SetTitle(string title)
Parameters
titlestring
SetWithAlpha(bool)
[Version("4.10")]
public void SetWithAlpha(bool withAlpha)
Parameters
withAlphabool