get_int32


Description:

public int32 get_int32 ()

Returns the 32-bit signed integer value of this.

It is an error to call this function with a this of any type other than g_variant_type_int32.

Example: Get a int32:

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.get_int32.vala

Parameters:

this

a int32 Variant instance

Returns:

a int32