Variant.int32


Description:

public Variant.int32 (int32 value)

Creates a new int32 Variant instance.

Example: Create a new int32 Variant:

public static int main () {
Variant var1 = new Variant.int32 (10);
// Output: ``10``
print ("%d\n", var1.get_int32 ());
// Output: ``10``
print ("%d\n", (int32) var1);
return 0;
}

valac --pkg glib-2.0 GLib.Variant.Variant.int32.vala

Parameters:

value

a int32 value

Returns:

a floating reference to a new int32 Variant instance