Table of Contents

Class FileDialog

Namespace
Gtk.Internal
Assembly
Gtk-4.0.dll
public class FileDialog
Inheritance
FileDialog
Inherited Members

Methods

GetAcceptLabel(IntPtr)

Calls native method gtk_file_dialog_get_accept_label. Version: 4.10

[Version("4.10")]
public static extern NullableUtf8StringUnownedHandle GetAcceptLabel(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetDefaultFilter(IntPtr)

Calls native method gtk_file_dialog_get_default_filter. Version: 4.10

[Version("4.10")]
public static extern IntPtr GetDefaultFilter(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetFilters(IntPtr)

Calls native method gtk_file_dialog_get_filters. Version: 4.10

[Version("4.10")]
public static extern IntPtr GetFilters(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetGType()

Calls native function gtk_file_dialog_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetInitialFile(IntPtr)

Calls native method gtk_file_dialog_get_initial_file. Version: 4.10

[Version("4.10")]
public static extern IntPtr GetInitialFile(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetInitialFolder(IntPtr)

Calls native method gtk_file_dialog_get_initial_folder. Version: 4.10

[Version("4.10")]
public static extern IntPtr GetInitialFolder(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetInitialName(IntPtr)

Calls native method gtk_file_dialog_get_initial_name. Version: 4.10

[Version("4.10")]
public static extern NullableUtf8StringUnownedHandle GetInitialName(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetModal(IntPtr)

Calls native method gtk_file_dialog_get_modal. Version: 4.10

[Version("4.10")]
public static extern bool GetModal(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetTitle(IntPtr)

Calls native method gtk_file_dialog_get_title. Version: 4.10

[Version("4.10")]
public static extern NonNullableUtf8StringUnownedHandle GetTitle(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

New()

Calls native constructor gtk_file_dialog_new. Version: 4.10

[Version("4.10")]
public static extern IntPtr New()

Returns

IntPtr

Transfer ownership: Full Nullable: False

Open(IntPtr, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method gtk_file_dialog_open. Version: 4.10

[Version("4.10")]
public static extern void Open(IntPtr self, IntPtr parent, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

parent IntPtr

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

OpenFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method gtk_file_dialog_open_finish. Version: 4.10

[Version("4.10")]
public static extern IntPtr OpenFinish(IntPtr self, IntPtr result, out ErrorOwnedHandle error)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: True

OpenMultiple(IntPtr, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method gtk_file_dialog_open_multiple. Version: 4.10

[Version("4.10")]
public static extern void OpenMultiple(IntPtr self, IntPtr parent, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

parent IntPtr

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

OpenMultipleFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method gtk_file_dialog_open_multiple_finish. Version: 4.10

[Version("4.10")]
public static extern IntPtr OpenMultipleFinish(IntPtr self, IntPtr result, out ErrorOwnedHandle error)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: True

Save(IntPtr, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method gtk_file_dialog_save. Version: 4.10

[Version("4.10")]
public static extern void Save(IntPtr self, IntPtr parent, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

parent IntPtr

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

SaveFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method gtk_file_dialog_save_finish. Version: 4.10

[Version("4.10")]
public static extern IntPtr SaveFinish(IntPtr self, IntPtr result, out ErrorOwnedHandle error)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: True

SelectFolder(IntPtr, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method gtk_file_dialog_select_folder. Version: 4.10

[Version("4.10")]
public static extern void SelectFolder(IntPtr self, IntPtr parent, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

parent IntPtr

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

SelectFolderFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method gtk_file_dialog_select_folder_finish. Version: 4.10

[Version("4.10")]
public static extern IntPtr SelectFolderFinish(IntPtr self, IntPtr result, out ErrorOwnedHandle error)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: True

SelectMultipleFolders(IntPtr, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method gtk_file_dialog_select_multiple_folders. Version: 4.10

[Version("4.10")]
public static extern void SelectMultipleFolders(IntPtr self, IntPtr parent, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

parent IntPtr

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

SelectMultipleFoldersFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method gtk_file_dialog_select_multiple_folders_finish. Version: 4.10

[Version("4.10")]
public static extern IntPtr SelectMultipleFoldersFinish(IntPtr self, IntPtr result, out ErrorOwnedHandle error)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: True

SetAcceptLabel(IntPtr, NullableUtf8StringHandle)

Calls native method gtk_file_dialog_set_accept_label. Version: 4.10

[Version("4.10")]
public static extern void SetAcceptLabel(IntPtr self, NullableUtf8StringHandle acceptLabel)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

acceptLabel NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetDefaultFilter(IntPtr, IntPtr)

Calls native method gtk_file_dialog_set_default_filter. Version: 4.10

[Version("4.10")]
public static extern void SetDefaultFilter(IntPtr self, IntPtr filter)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

filter IntPtr

Transfer ownership: None Nullable: True

SetFilters(IntPtr, IntPtr)

Calls native method gtk_file_dialog_set_filters. Version: 4.10

[Version("4.10")]
public static extern void SetFilters(IntPtr self, IntPtr filters)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

filters IntPtr

Transfer ownership: None Nullable: True

SetInitialFile(IntPtr, IntPtr)

Calls native method gtk_file_dialog_set_initial_file. Version: 4.10

[Version("4.10")]
public static extern void SetInitialFile(IntPtr self, IntPtr file)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

file IntPtr

Transfer ownership: None Nullable: True

SetInitialFolder(IntPtr, IntPtr)

Calls native method gtk_file_dialog_set_initial_folder. Version: 4.10

[Version("4.10")]
public static extern void SetInitialFolder(IntPtr self, IntPtr folder)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

folder IntPtr

Transfer ownership: None Nullable: True

SetInitialName(IntPtr, NullableUtf8StringHandle)

Calls native method gtk_file_dialog_set_initial_name. Version: 4.10

[Version("4.10")]
public static extern void SetInitialName(IntPtr self, NullableUtf8StringHandle name)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

name NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetModal(IntPtr, bool)

Calls native method gtk_file_dialog_set_modal. Version: 4.10

[Version("4.10")]
public static extern void SetModal(IntPtr self, bool modal)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

modal bool

Transfer ownership: None Nullable: False

SetTitle(IntPtr, NonNullableUtf8StringHandle)

Calls native method gtk_file_dialog_set_title. Version: 4.10

[Version("4.10")]
public static extern void SetTitle(IntPtr self, NonNullableUtf8StringHandle title)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

title NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False