Ejemplo n.º 1
0
IO_METHOD(IoClutterActor, moveBy) {
  float dx = IoMessage_locals_floatArgAt_(m, locals, 0),
        dy = IoMessage_locals_floatArgAt_(m, locals, 1);

  clutter_actor_move_by(IOCACTOR(self), dx, dy);
  return self;
}
Ejemplo n.º 2
0
static void
draggable_rectangle_drag_motion (MxDraggable *draggable,
                                 gfloat         delta_x,
                                 gfloat         delta_y)
{
  clutter_actor_move_by (CLUTTER_ACTOR (draggable), delta_x, delta_y);
}
Ejemplo n.º 3
0
static void
clutter_drag_action_real_drag_motion (ClutterDragAction *action,
                                      ClutterActor      *actor,
                                      gfloat             delta_x,
                                      gfloat             delta_y)
{
  ClutterActor *drag_handle;

  if (action->priv->drag_handle != NULL)
    drag_handle = action->priv->drag_handle;
  else
    drag_handle = actor;

  clutter_actor_move_by (drag_handle, delta_x, delta_y);
}