Table of Contents

Class Value

Namespace
GObject.Internal
Assembly
GObject-2.0.dll
public class Value
Inheritance
Value
Inherited Members

Methods

Copy(ValueHandle, ValueHandle)

Calls native method g_value_copy.

public static extern void Copy(ValueHandle srcValue, ValueHandle destValue)

Parameters

srcValue ValueHandle

Transfer ownership: None Nullable: False

destValue ValueHandle

Transfer ownership: None Nullable: False

DupBoxed(ValueHandle)

Calls native method g_value_dup_boxed.

public static extern IntPtr DupBoxed(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

DupObject(ValueHandle)

Calls native method g_value_dup_object.

public static extern IntPtr DupObject(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

DupParam(ValueHandle)

Calls native method g_value_dup_param.

public static extern IntPtr DupParam(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

DupString(ValueHandle)

Calls native method g_value_dup_string.

public static extern NullableUtf8StringOwnedHandle DupString(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

DupVariant(ValueHandle)

Calls native method g_value_dup_variant. Version: 2.26

[Version("2.26")]
public static extern VariantOwnedHandle DupVariant(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

VariantOwnedHandle

Transfer ownership: Full Nullable: True

FitsPointer(ValueHandle)

Calls native method g_value_fits_pointer.

public static extern bool FitsPointer(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetBoolean(ValueHandle)

Calls native method g_value_get_boolean.

public static extern bool GetBoolean(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetBoxed(ValueHandle)

Calls native method g_value_get_boxed.

public static extern IntPtr GetBoxed(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetChar(ValueHandle)

Calls native method g_value_get_char.

public static extern sbyte GetChar(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

sbyte

Transfer ownership: None Nullable: False

GetDouble(ValueHandle)

Calls native method g_value_get_double.

public static extern double GetDouble(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

double

Transfer ownership: None Nullable: False

GetEnum(ValueHandle)

Calls native method g_value_get_enum.

public static extern int GetEnum(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetFlags(ValueHandle)

Calls native method g_value_get_flags.

public static extern uint GetFlags(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

GetFloat(ValueHandle)

Calls native method g_value_get_float.

public static extern float GetFloat(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

float

Transfer ownership: None Nullable: False

GetGType()

Calls native function g_value_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetGtype(ValueHandle)

Calls native method g_value_get_gtype. Version: 2.12

[Version("2.12")]
public static extern nuint GetGtype(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

nuint

Transfer ownership: None Nullable: False

GetInt(ValueHandle)

Calls native method g_value_get_int.

public static extern int GetInt(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetInt64(ValueHandle)

Calls native method g_value_get_int64.

public static extern long GetInt64(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

long

Transfer ownership: None Nullable: False

GetLong(ValueHandle)

Calls native method g_value_get_long.

public static extern long GetLong(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

long

Transfer ownership: None Nullable: False

GetObject(ValueHandle)

Calls native method g_value_get_object.

public static extern IntPtr GetObject(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetParam(ValueHandle)

Calls native method g_value_get_param.

public static extern IntPtr GetParam(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetPointer(ValueHandle)

Calls native method g_value_get_pointer.

public static extern IntPtr GetPointer(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetSchar(ValueHandle)

Calls native method g_value_get_schar. Version: 2.32

[Version("2.32")]
public static extern sbyte GetSchar(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

sbyte

Transfer ownership: None Nullable: False

GetString(ValueHandle)

Calls native method g_value_get_string.

public static extern NullableUtf8StringUnownedHandle GetString(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetUchar(ValueHandle)

Calls native method g_value_get_uchar.

public static extern byte GetUchar(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

byte

Transfer ownership: None Nullable: False

GetUint(ValueHandle)

Calls native method g_value_get_uint.

public static extern uint GetUint(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

GetUint64(ValueHandle)

Calls native method g_value_get_uint64.

public static extern ulong GetUint64(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

ulong

Transfer ownership: None Nullable: False

GetUlong(ValueHandle)

Calls native method g_value_get_ulong.

public static extern ulong GetUlong(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

ulong

Transfer ownership: None Nullable: False

GetVariant(ValueHandle)

Calls native method g_value_get_variant. Version: 2.26

[Version("2.26")]
public static extern VariantUnownedHandle GetVariant(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

VariantUnownedHandle

Transfer ownership: None Nullable: True

Init(ValueHandle, Type)

Calls native method g_value_init.

public static extern ValueUnownedHandle Init(ValueHandle value, Type gType)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

gType Type

Transfer ownership: None Nullable: False

Returns

ValueUnownedHandle

Transfer ownership: None Nullable: False

InitFromInstance(ValueHandle, TypeInstanceHandle)

Calls native method g_value_init_from_instance. Version: 2.42

[Version("2.42")]
public static extern void InitFromInstance(ValueHandle value, TypeInstanceHandle instance)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

instance TypeInstanceHandle

Transfer ownership: None Nullable: False

PeekPointer(ValueHandle)

Calls native method g_value_peek_pointer.

public static extern IntPtr PeekPointer(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

RegisterTransformFunc(Type, Type, ValueTransform)

Calls native function g_value_register_transform_func.

public static extern void RegisterTransformFunc(Type srcType, Type destType, ValueTransform transformFunc)

Parameters

srcType Type

Transfer ownership: None Nullable: False

destType Type

Transfer ownership: None Nullable: False

transformFunc ValueTransform

Transfer ownership: None Nullable: False

Reset(ValueHandle)

Calls native method g_value_reset.

public static extern ValueOwnedHandle Reset(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

ValueOwnedHandle

Transfer ownership: Full Nullable: False

SetBoolean(ValueHandle, bool)

Calls native method g_value_set_boolean.

public static extern void SetBoolean(ValueHandle value, bool vBoolean)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vBoolean bool

Transfer ownership: None Nullable: False

SetBoxed(ValueHandle, IntPtr)

Calls native method g_value_set_boxed.

public static extern void SetBoxed(ValueHandle value, IntPtr vBoxed)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vBoxed IntPtr

Transfer ownership: None Nullable: True

SetBoxedTakeOwnership(ValueHandle, IntPtr)

Calls native method g_value_set_boxed_take_ownership.

public static extern void SetBoxedTakeOwnership(ValueHandle value, IntPtr vBoxed)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vBoxed IntPtr

Transfer ownership: None Nullable: True

SetChar(ValueHandle, sbyte)

Calls native method g_value_set_char.

public static extern void SetChar(ValueHandle value, sbyte vChar)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vChar sbyte

Transfer ownership: None Nullable: False

SetDouble(ValueHandle, double)

Calls native method g_value_set_double.

public static extern void SetDouble(ValueHandle value, double vDouble)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vDouble double

Transfer ownership: None Nullable: False

SetEnum(ValueHandle, int)

Calls native method g_value_set_enum.

public static extern void SetEnum(ValueHandle value, int vEnum)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vEnum int

Transfer ownership: None Nullable: False

SetFlags(ValueHandle, uint)

Calls native method g_value_set_flags.

public static extern void SetFlags(ValueHandle value, uint vFlags)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vFlags uint

Transfer ownership: None Nullable: False

SetFloat(ValueHandle, float)

Calls native method g_value_set_float.

public static extern void SetFloat(ValueHandle value, float vFloat)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vFloat float

Transfer ownership: None Nullable: False

SetGtype(ValueHandle, Type)

Calls native method g_value_set_gtype. Version: 2.12

[Version("2.12")]
public static extern void SetGtype(ValueHandle value, Type vGtype)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vGtype Type

Transfer ownership: None Nullable: False

SetInstance(ValueHandle, IntPtr)

Calls native method g_value_set_instance.

public static extern void SetInstance(ValueHandle value, IntPtr instance)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

instance IntPtr

Transfer ownership: None Nullable: True

SetInt(ValueHandle, int)

Calls native method g_value_set_int.

public static extern void SetInt(ValueHandle value, int vInt)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vInt int

Transfer ownership: None Nullable: False

SetInt64(ValueHandle, long)

Calls native method g_value_set_int64.

public static extern void SetInt64(ValueHandle value, long vInt64)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vInt64 long

Transfer ownership: None Nullable: False

SetInternedString(ValueHandle, NullableUtf8StringHandle)

Calls native method g_value_set_interned_string. Version: 2.66

[Version("2.66")]
public static extern void SetInternedString(ValueHandle value, NullableUtf8StringHandle vString)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vString NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetLong(ValueHandle, long)

Calls native method g_value_set_long.

public static extern void SetLong(ValueHandle value, long vLong)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vLong long

Transfer ownership: None Nullable: False

SetObject(ValueHandle, IntPtr)

Calls native method g_value_set_object.

public static extern void SetObject(ValueHandle value, IntPtr vObject)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vObject IntPtr

Transfer ownership: None Nullable: True

SetObjectTakeOwnership(ValueHandle, IntPtr)

Calls native method g_value_set_object_take_ownership.

public static extern void SetObjectTakeOwnership(ValueHandle value, IntPtr vObject)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vObject IntPtr

Transfer ownership: None Nullable: True

SetParam(ValueHandle, IntPtr)

Calls native method g_value_set_param.

public static extern void SetParam(ValueHandle value, IntPtr param)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

param IntPtr

Transfer ownership: None Nullable: True

SetParamTakeOwnership(ValueHandle, IntPtr)

Calls native method g_value_set_param_take_ownership.

public static extern void SetParamTakeOwnership(ValueHandle value, IntPtr param)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

param IntPtr

Transfer ownership: None Nullable: True

SetPointer(ValueHandle, IntPtr)

Calls native method g_value_set_pointer.

public static extern void SetPointer(ValueHandle value, IntPtr vPointer)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vPointer IntPtr

Transfer ownership: None Nullable: True

SetSchar(ValueHandle, sbyte)

Calls native method g_value_set_schar. Version: 2.32

[Version("2.32")]
public static extern void SetSchar(ValueHandle value, sbyte vChar)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vChar sbyte

Transfer ownership: None Nullable: False

SetStaticBoxed(ValueHandle, IntPtr)

Calls native method g_value_set_static_boxed.

public static extern void SetStaticBoxed(ValueHandle value, IntPtr vBoxed)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vBoxed IntPtr

Transfer ownership: None Nullable: True

SetStaticString(ValueHandle, NullableUtf8StringHandle)

Calls native method g_value_set_static_string.

public static extern void SetStaticString(ValueHandle value, NullableUtf8StringHandle vString)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vString NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetString(ValueHandle, NullableUtf8StringHandle)

Calls native method g_value_set_string.

public static extern void SetString(ValueHandle value, NullableUtf8StringHandle vString)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vString NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetStringTakeOwnership(ValueHandle, NullableUtf8StringHandle)

Calls native method g_value_set_string_take_ownership.

public static extern void SetStringTakeOwnership(ValueHandle value, NullableUtf8StringHandle vString)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vString NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetUchar(ValueHandle, byte)

Calls native method g_value_set_uchar.

public static extern void SetUchar(ValueHandle value, byte vUchar)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vUchar byte

Transfer ownership: None Nullable: False

SetUint(ValueHandle, uint)

Calls native method g_value_set_uint.

public static extern void SetUint(ValueHandle value, uint vUint)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vUint uint

Transfer ownership: None Nullable: False

SetUint64(ValueHandle, ulong)

Calls native method g_value_set_uint64.

public static extern void SetUint64(ValueHandle value, ulong vUint64)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vUint64 ulong

Transfer ownership: None Nullable: False

SetUlong(ValueHandle, ulong)

Calls native method g_value_set_ulong.

public static extern void SetUlong(ValueHandle value, ulong vUlong)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vUlong ulong

Transfer ownership: None Nullable: False

SetVariant(ValueHandle, VariantHandle)

Calls native method g_value_set_variant. Version: 2.26

[Version("2.26")]
public static extern void SetVariant(ValueHandle value, VariantHandle variant)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

variant VariantHandle

Transfer ownership: None Nullable: True

StealString(ValueHandle)

Calls native method g_value_steal_string. Version: 2.80

[Version("2.80")]
public static extern NullableUtf8StringOwnedHandle StealString(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

TakeBoxed(ValueHandle, IntPtr)

Calls native method g_value_take_boxed. Version: 2.4

[Version("2.4")]
public static extern void TakeBoxed(ValueHandle value, IntPtr vBoxed)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vBoxed IntPtr

Transfer ownership: None Nullable: True

TakeObject(ValueHandle, IntPtr)

Calls native method g_value_take_object. Version: 2.4

[Version("2.4")]
public static extern void TakeObject(ValueHandle value, IntPtr vObject)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vObject IntPtr

Transfer ownership: None Nullable: True

TakeParam(ValueHandle, IntPtr)

Calls native method g_value_take_param. Version: 2.4

[Version("2.4")]
public static extern void TakeParam(ValueHandle value, IntPtr param)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

param IntPtr

Transfer ownership: None Nullable: True

TakeString(ValueHandle, NullableUtf8StringHandle)

Calls native method g_value_take_string. Version: 2.4

[Version("2.4")]
public static extern void TakeString(ValueHandle value, NullableUtf8StringHandle vString)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

vString NullableUtf8StringHandle

Transfer ownership: Full Nullable: True

TakeVariant(ValueHandle, VariantUnownedHandle)

Calls native method g_value_take_variant. Version: 2.26

[Version("2.26")]
public static extern void TakeVariant(ValueHandle value, VariantUnownedHandle variant)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False

variant VariantUnownedHandle

Transfer ownership: Full Nullable: True

Transform(ValueHandle, ValueHandle)

Calls native method g_value_transform.

public static extern bool Transform(ValueHandle srcValue, ValueHandle destValue)

Parameters

srcValue ValueHandle

Transfer ownership: None Nullable: False

destValue ValueHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

TypeCompatible(Type, Type)

Calls native function g_value_type_compatible.

public static extern bool TypeCompatible(Type srcType, Type destType)

Parameters

srcType Type

Transfer ownership: None Nullable: False

destType Type

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

TypeTransformable(Type, Type)

Calls native function g_value_type_transformable.

public static extern bool TypeTransformable(Type srcType, Type destType)

Parameters

srcType Type

Transfer ownership: None Nullable: False

destType Type

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Unset(ValueHandle)

Calls native method g_value_unset.

public static extern void Unset(ValueHandle value)

Parameters

value ValueHandle

Transfer ownership: None Nullable: False