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
constructArgumentsConstructArgument[]
BytesIcon(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected BytesIcon(CreationData data)
Parameters
dataCreationData
BytesIcon(BytesIconHandle)
protected BytesIcon(BytesIconHandle handle)
Parameters
handleBytesIconHandle
Fields
BytesPropertyDefinition
public static readonly Property<Bytes, BytesIcon> BytesPropertyDefinition
Field Value
Properties
Bytes
public Bytes Bytes { get; }
Property Value
Methods
Equal(Icon?)
public bool Equal(Icon? icon2)
Parameters
icon2Icon
Returns
GetBytes()
[Version("2.38")]
public Bytes GetBytes()
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(Bytes)
[Version("2.38")]
public static BytesIcon New(Bytes bytes)
Parameters
bytesBytes
Returns
NewFromPointer(nint, bool)
Creates a new managed BytesIcon instance for a given pointer.
public static BytesIcon NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new BytesIcon and sets the properties specified by the construct arguments.
public static BytesIcon 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()