Table of Contents

Class BytesIcon

Namespace
Gio
Assembly
Gio-2.0.dll
public class BytesIcon : Object, Icon, LoadableIcon, NativeObject, IDisposable, GTypeProvider, InstanceFactory
Inheritance
BytesIcon
Implements
Inherited Members

Constructors

BytesIcon(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 BytesIcon(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

BytesIcon(CreationData)

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

Parameters

data CreationData

BytesIcon(BytesIconHandle)

protected BytesIcon(BytesIconHandle handle)

Parameters

handle BytesIconHandle

Fields

BytesPropertyDefinition

public static readonly Property<Bytes, BytesIcon> BytesPropertyDefinition

Field Value

Property<Bytes, BytesIcon>

Properties

Bytes

public Bytes Bytes { get; }

Property Value

Bytes

Methods

Equal(Icon?)

public bool Equal(Icon? icon2)

Parameters

icon2 Icon

Returns

bool

GetBytes()

[Version("2.38")]
public Bytes GetBytes()

Returns

Bytes

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(Bytes)

[Version("2.38")]
public static BytesIcon New(Bytes bytes)

Parameters

bytes Bytes

Returns

BytesIcon

NewFromPointer(nint, bool)

Creates a new managed BytesIcon instance for a given pointer.

public static BytesIcon NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

BytesIcon

NewWithProperties(ConstructArgument[])

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

public static BytesIcon NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

BytesIcon

Serialize()

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

Returns

Variant

ToString()

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

Returns

string