Class NativeDialog
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class NativeDialog : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
NativeDialog
- Implements
- Derived
- Inherited Members
Constructors
NativeDialog(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 NativeDialog(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
NativeDialog(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected NativeDialog(CreationData data)
Parameters
dataCreationData
NativeDialog(NativeDialogHandle)
protected NativeDialog(NativeDialogHandle handle)
Parameters
handleNativeDialogHandle
Fields
ModalPropertyDefinition
public static readonly Property<bool, NativeDialog> ModalPropertyDefinition
Field Value
ResponseSignal
Signal Descriptor for OnResponse.
public static readonly Signal<NativeDialog, NativeDialog.ResponseSignalArgs> ResponseSignal
Field Value
TitlePropertyDefinition
public static readonly Property<string?, NativeDialog> TitlePropertyDefinition
Field Value
TransientForPropertyDefinition
public static readonly Property<Window?, NativeDialog> TransientForPropertyDefinition
Field Value
VisiblePropertyDefinition
public static readonly Property<bool, NativeDialog> VisiblePropertyDefinition
Field Value
Properties
Modal
public bool Modal { get; set; }
Property Value
Title
public string? Title { get; set; }
Property Value
TransientFor
public Window? TransientFor { get; set; }
Property Value
Visible
public bool Visible { get; set; }
Property Value
Methods
Destroy()
public void Destroy()
GetGType()
public static Type GetGType()
Returns
GetModal()
public bool GetModal()
Returns
GetTitle()
public string? GetTitle()
Returns
GetTransientFor()
public Window? GetTransientFor()
Returns
GetVisible()
public bool GetVisible()
Returns
Hide()
public void Hide()
NewFromPointer(nint, bool)
Creates a new managed NativeDialog instance for a given pointer.
public static NativeDialog NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new NativeDialog and sets the properties specified by the construct arguments.
public static NativeDialog NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetModal(bool)
public void SetModal(bool modal)
Parameters
modalbool
SetTitle(string)
public void SetTitle(string title)
Parameters
titlestring
SetTransientFor(Window?)
public void SetTransientFor(Window? parent)
Parameters
parentWindow
Show()
public void Show()
Events
OnResponse
public event SignalHandler<NativeDialog, NativeDialog.ResponseSignalArgs> OnResponse