Table of Contents

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

constructArguments ConstructArgument[]

FileIcon(CreationData)

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

Parameters

data CreationData

FileIcon(FileIconHandle)

protected FileIcon(FileIconHandle handle)

Parameters

handle FileIconHandle

Fields

FilePropertyDefinition

public static readonly Property<File, FileIcon> FilePropertyDefinition

Field Value

Property<File, FileIcon>

Properties

File

public File File { get; }

Property Value

File

Methods

Equal(Icon?)

public bool Equal(Icon? icon2)

Parameters

icon2 Icon

Returns

bool

GetFile()

public File GetFile()

Returns

File

GetGType()

public static Type GetGType()

Returns

Type

Hash()

public uint Hash()

Returns

uint

Load(int, out string, Cancellable?)

public InputStream Load(int size, out string type, Cancellable? cancellable)

Parameters

size int
type string
cancellable Cancellable

Returns

InputStream

LoadFinish(AsyncResult, out string)

public InputStream LoadFinish(AsyncResult res, out string type)

Parameters

res AsyncResult
type string

Returns

InputStream

New(File)

public static FileIcon New(File file)

Parameters

file File

Returns

FileIcon

NewFromPointer(nint, bool)

Creates a new managed FileIcon instance for a given pointer.

public static FileIcon NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

FileIcon

NewWithProperties(ConstructArgument[])

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

public static FileIcon NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

FileIcon

Serialize()

[Version("2.38")]
public Variant? Serialize()

Returns

Variant

ToString()

[Version("2.20")]
public string? ToString()

Returns

string