Class FileIcon
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class FileIcon : Object, Icon, LoadableIcon, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
FileIcon
- Implements
- Inherited Members
Constructors
FileIcon(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 FileIcon(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
FileIcon(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected FileIcon(CreationData data)
Parameters
dataCreationData
FileIcon(FileIconHandle)
protected FileIcon(FileIconHandle handle)
Parameters
handleFileIconHandle
Fields
FilePropertyDefinition
public static readonly Property<File, FileIcon> FilePropertyDefinition
Field Value
Properties
File
public File File { get; }
Property Value
Methods
Equal(Icon?)
public bool Equal(Icon? icon2)
Parameters
icon2Icon
Returns
GetFile()
public File GetFile()
Returns
GetGType()
public static Type GetGType()
Returns
Hash()
public uint Hash()
Returns
Load(int, out string, Cancellable?)
public InputStream Load(int size, out string type, Cancellable? cancellable)
Parameters
sizeinttypestringcancellableCancellable
Returns
LoadFinish(AsyncResult, out string)
public InputStream LoadFinish(AsyncResult res, out string type)
Parameters
resAsyncResulttypestring
Returns
New(File)
public static FileIcon New(File file)
Parameters
fileFile
Returns
NewFromPointer(nint, bool)
Creates a new managed FileIcon instance for a given pointer.
public static FileIcon NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new FileIcon and sets the properties specified by the construct arguments.
public static FileIcon NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Serialize()
[Version("2.38")]
public Variant? Serialize()
Returns
ToString()
[Version("2.20")]
public string? ToString()