Table of Contents

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

constructArguments ConstructArgument[]

NativeDialog(CreationData)

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

Parameters

data CreationData

NativeDialog(NativeDialogHandle)

protected NativeDialog(NativeDialogHandle handle)

Parameters

handle NativeDialogHandle

Fields

ModalPropertyDefinition

public static readonly Property<bool, NativeDialog> ModalPropertyDefinition

Field Value

Property<bool, NativeDialog>

ResponseSignal

Signal Descriptor for OnResponse.

public static readonly Signal<NativeDialog, NativeDialog.ResponseSignalArgs> ResponseSignal

Field Value

Signal<NativeDialog, NativeDialog.ResponseSignalArgs>

TitlePropertyDefinition

public static readonly Property<string?, NativeDialog> TitlePropertyDefinition

Field Value

Property<string, NativeDialog>

TransientForPropertyDefinition

public static readonly Property<Window?, NativeDialog> TransientForPropertyDefinition

Field Value

Property<Window, NativeDialog>

VisiblePropertyDefinition

public static readonly Property<bool, NativeDialog> VisiblePropertyDefinition

Field Value

Property<bool, NativeDialog>

Properties

Modal

public bool Modal { get; set; }

Property Value

bool

Title

public string? Title { get; set; }

Property Value

string

TransientFor

public Window? TransientFor { get; set; }

Property Value

Window

Visible

public bool Visible { get; set; }

Property Value

bool

Methods

Destroy()

public void Destroy()

GetGType()

public static Type GetGType()

Returns

Type

GetModal()

public bool GetModal()

Returns

bool

GetTitle()

public string? GetTitle()

Returns

string

GetTransientFor()

public Window? GetTransientFor()

Returns

Window

GetVisible()

public bool GetVisible()

Returns

bool

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

ptr nint
ownsHandle bool

Returns

NativeDialog

NewWithProperties(ConstructArgument[])

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

public static NativeDialog NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

NativeDialog

SetModal(bool)

public void SetModal(bool modal)

Parameters

modal bool

SetTitle(string)

public void SetTitle(string title)

Parameters

title string

SetTransientFor(Window?)

public void SetTransientFor(Window? parent)

Parameters

parent Window

Show()

public void Show()

Events

OnResponse

public event SignalHandler<NativeDialog, NativeDialog.ResponseSignalArgs> OnResponse

Event Type

SignalHandler<NativeDialog, NativeDialog.ResponseSignalArgs>