Home | History | Annotate | Download | only in gobject

Lines Matching defs:src_type

121   GType src_type;
381 transform_func_lookup (GType src_type,
386 entry.src_type = src_type;
399 g_type_value_table_peek (entry.src_type) == g_type_value_table_peek (src_type))
406 entry.src_type = g_type_parent (entry.src_type);
408 while (entry.src_type);
419 gint cmp = G_BSEARCH_ARRAY_CMP (e1->src_type, e2->src_type);
429 * @src_type: Source type.
431 * @transform_func: a function which transforms values of type @src_type
435 * A previously registered transformation function for @src_type and @dest_type
439 g_value_register_transform_func (GType src_type,
446 * g_return_if_fail (G_TYPE_HAS_VALUE_TABLE (src_type));
451 entry.src_type = src_type;
458 g_type_name (src_type),
468 * @src_type: Source type.
472 * of type @src_type into values of type @dest_type.
477 g_value_type_transformable (GType src_type,
480 g_return_val_if_fail (G_TYPE_IS_VALUE (src_type), FALSE);
483 return (g_value_type_compatible (src_type, dest_type) ||
484 transform_func_lookup (src_type, dest_type) != NULL);
489 * @src_type: source type to be copied.
492 * Returns whether a #GValue of type @src_type can be copied into
495 * Returns: %TRUE if g_value_copy() is possible with @src_type and @dest_type.
498 g_value_type_compatible (GType src_type,
501 g_return_val_if_fail (G_TYPE_IS_VALUE (src_type), FALSE);
504 return (g_type_is_a (src_type, dest_type) &&
505 g_type_value_table_peek (dest_type) == g_type_value_table_peek (src_type));