Class FileLauncher
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class FileLauncher : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
FileLauncher
- Implements
- Inherited Members
Constructors
FileLauncher(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 FileLauncher(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
FileLauncher(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected FileLauncher(CreationData data)
Parameters
dataCreationData
FileLauncher(FileLauncherHandle)
protected FileLauncher(FileLauncherHandle handle)
Parameters
handleFileLauncherHandle
Fields
AlwaysAskPropertyDefinition
public static readonly Property<bool, FileLauncher> AlwaysAskPropertyDefinition
Field Value
FilePropertyDefinition
public static readonly Property<File, FileLauncher> FilePropertyDefinition
Field Value
WritablePropertyDefinition
public static readonly Property<bool, FileLauncher> WritablePropertyDefinition
Field Value
Properties
AlwaysAsk
public bool AlwaysAsk { get; set; }
Property Value
File
public File File { get; set; }
Property Value
Writable
public bool Writable { get; set; }
Property Value
Methods
GetAlwaysAsk()
[Version("4.12")]
public bool GetAlwaysAsk()
Returns
GetFile()
[Version("4.10")]
public File? GetFile()
Returns
GetGType()
public static Type GetGType()
Returns
GetWritable()
[Version("4.14")]
public bool GetWritable()
Returns
LaunchAsync(Window?)
public Task<bool> LaunchAsync(Window? parent)
Parameters
parentWindow
Returns
LaunchFinish(AsyncResult)
[Version("4.10")]
public bool LaunchFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
New(File?)
[Version("4.10")]
public static FileLauncher New(File? file)
Parameters
fileFile
Returns
NewFromPointer(nint, bool)
Creates a new managed FileLauncher instance for a given pointer.
public static FileLauncher NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new FileLauncher and sets the properties specified by the construct arguments.
public static FileLauncher NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
OpenContainingFolderAsync(Window?)
public Task<bool> OpenContainingFolderAsync(Window? parent)
Parameters
parentWindow
Returns
OpenContainingFolderFinish(AsyncResult)
[Version("4.10")]
public bool OpenContainingFolderFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
SetAlwaysAsk(bool)
[Version("4.12")]
public void SetAlwaysAsk(bool alwaysAsk)
Parameters
alwaysAskbool
SetFile(File?)
[Version("4.10")]
public void SetFile(File? file)
Parameters
fileFile
SetWritable(bool)
[Version("4.14")]
public void SetWritable(bool writable)
Parameters
writablebool