Ejemplo n.º 1
0
void
rut_property_remove_binding (RutProperty *property)
{
    rut_property_set_binding (property,
                              NULL, /* no callback */
                              NULL, /* no user data */
                              NULL); /* null vararg terminator */
}
Ejemplo n.º 2
0
void
rut_property_set_copy_binding (RutPropertyContext *context,
                               RutProperty *target_property,
                               RutProperty *source_property)
{
    rut_property_set_binding (target_property,
                              _rut_property_copy_binding_cb,
                              context,
                              source_property,
                              NULL /* terminator */);
}
Ejemplo n.º 3
0
RigTransition *
rig_transition_new (RutContext *context,
                    uint32_t id)
{
  //CoglError *error = NULL;
  RigTransition *transition;
  static CoglBool initialized = FALSE;

  if (initialized == FALSE)
    {
      _rig_transition_type_init ();

      initialized = TRUE;
    }

  transition = g_slice_new0 (RigTransition);

  transition->id = id;
  transition->context = rut_refable_ref (context);

  rut_object_init (&transition->_parent, &rig_transition_type);

  rut_list_init (&transition->operation_cb_list);

  rut_simple_introspectable_init (transition, _rig_transition_prop_specs, transition->props);

  transition->progress = 0;

  transition->properties = g_hash_table_new_full (g_direct_hash,
                                                  g_direct_equal,
                                                  NULL, /* key_destroy */
                                                  free_prop_data_cb);

#if 0
  rut_property_set_binding (&transition->props[RUT_TRANSITION_PROP_PROGRESS],
                            update_transition_progress_cb,
                            engine,
                            engine->timeline_elapsed,
                            NULL);
#endif

  return transition;
}