Ejemplo n.º 1
0
//doc ClutterActorBox contains(x1, y1)
IO_METHOD(IoClutterActorBox, contains) {
  float x = IoMessage_locals_floatArgAt_(m, locals, 0),
        y = IoMessage_locals_floatArgAt_(m, locals, 1);
  int contains = clutter_actor_box_contains(IOCABOX(self), x, y);

  return IOBOOL(self, contains);
}
Ejemplo n.º 2
0
//doc ClutterActorBox size
IO_METHOD(IoClutterActorBox, getSize) {
  float width  = 0,
        height = 0;
  IoObject *size = IoObject_new(IOSTATE);

  clutter_actor_box_get_origin(IOCABOX(self), &width, &height);
  IoObject_setSlot_to_(size, IOSYMBOL("width"),  IONUMBER(width));
  IoObject_setSlot_to_(size, IOSYMBOL("height"), IONUMBER(height));

  return size;
}
Ejemplo n.º 3
0
//doc ClutterActorBox origin
IO_METHOD(IoClutterActorBox, getOrigin) {
  float x = 0,
        y = 0;
  IoObject *coords = IoObject_new(IOSTATE);

  clutter_actor_box_get_origin(IOCABOX(self), &x, &y);
  IoObject_setSlot_to_(coords, IOSYMBOL("x"), IONUMBER(x));
  IoObject_setSlot_to_(coords, IOSYMBOL("y"), IONUMBER(y));

  return coords;
}
Ejemplo n.º 4
0
//doc ClutterActor allocate(clutterActorBox, absoluteOriginChanged)
IO_METHOD(IoClutterActor, allocate) {
  ClutterActorBox *actorBox = IOCABOX(IoMessage_locals_clutterActorBoxArgAt_(m, locals, 0));

  clutter_actor_allocate(
    IOCACTOR(self),
    actorBox,
    origin_changed_flags(IoMessage_locals_boolArgAt_(m, locals, 1))
  );

  return self;
}
Ejemplo n.º 5
0
IO_METHOD(IoClutterActorBox, equals) {
  ClutterActorBox *other = IOCABOX(IoMessage_locals_clutterActorBoxArgAt_(m, locals, 0));
  return IOBOOL(self, clutter_actor_box_equal(IOCABOX(self), other));
}
Ejemplo n.º 6
0
void IoClutterActorBox_free(IoClutterActorBox *self) {
  if(IOCABOX(self) != NULL)
    clutter_actor_box_free(IOCABOX(self));
}