alias GObject::TypeValueCopyFunc

Overview

Copies the content of a #GValue into another.

The dest_value is a #GValue with zero-filled data section and src_value is a properly initialized #GValue of same type, or derived type.

The purpose of this function is to copy the contents of src_value into dest_value in a way, that even after src_value has been freed, the contents of dest_value remain valid. String type example:

|[ dest_value->data[0].v_pointer = g_strdup (src_value->data[0].v_pointer); ]|

Alias Definition

GObject::Value, GObject::Value -> Nil

Defined in:

lib/gi-crystal/src/auto/g_object-2.0/g_object.cr