예제 #1
0
IO_METHOD(IoObject, daemon)
{
	/*doc System daemon(dontChroot, dontRedirectOutputStreams)
	Become a daemon process.  If dontChroot is false, the process will change its directory to /.  If dontRedirectOutputStreams is false, stdout and stderr are redirected to /dev/null.
	*/
	if(daemon(IoMessage_locals_boolArgAt_(m, locals, 0), IoMessage_locals_boolArgAt_(m, locals, 1)))
	{
		IoState_error_(IOSTATE, self, "Daemonize failed. See System errorNumberDescription.");
	}

	return self;
}
예제 #2
0
파일: IoClutterActor.c 프로젝트: Akiyah/io
/*doc ClutterActor allocateprefferedSize(originChanged)
If <code>originChanged</code> is <code>true</code>,
<code>CLUTTER_ABSOLUTE_ORIGIN_CHANGED</code> flag will be used. */
IO_METHOD(IoClutterActor, allocatePrefferedSize) {
  clutter_actor_allocate_preferred_size(
    IOCACTOR(self),
    origin_changed_flags(IoMessage_locals_boolArgAt_(m, locals, 0))
  );

  return self;
}
예제 #3
0
파일: IoClutterActor.c 프로젝트: Akiyah/io
//doc ClutterActor event(clutterEvent, capture)
IO_METHOD(IoClutterActor, event) {
  int success = clutter_actor_event(
    IOCACTOR(self),
    IOCEVENT(IoMessage_locals_clutterEventArgAt_(m, locals, 0)),
    IoMessage_locals_boolArgAt_(m, locals, 1));

  return IOBOOL(self, success);
}
예제 #4
0
파일: IoClutterActor.c 프로젝트: Akiyah/io
//doc ClutterActor allocateAvailableSize(x, y, width, height, originChanged)
IO_METHOD(IoClutterActor, allocateAvailableSize) {
  float x = IoMessage_locals_floatArgAt_(m, locals, 0),
        y = IoMessage_locals_floatArgAt_(m, locals, 1),
        w = IoMessage_locals_floatArgAt_(m, locals, 2),
        h = IoMessage_locals_floatArgAt_(m, locals, 3);
  int   origin_changed = IoMessage_locals_boolArgAt_(m, locals, 4);

  clutter_actor_allocate_available_size(IOCACTOR(self), x, y, w, h, origin_changed);
  return self;
}
예제 #5
0
파일: IoClutterActor.c 프로젝트: Akiyah/io
//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;
}
예제 #6
0
파일: IoDate.c 프로젝트: bomma/io
IO_METHOD(IoDate, convertToZone)
{
	/*doc Date convertToZone(offset, isDST)
	Converts self to an equivalent data in a zone with offset (minutes west) and DST (true, false).
	*/

	struct timezone tz;
	
	int mw = IoMessage_locals_intArgAt_(m, locals, 0);
	int dst = IoMessage_locals_boolArgAt_(m, locals, 1);
	
	tz.tz_minuteswest = mw;
	tz.tz_dsttime = dst;
	Date_convertToTimeZone_(DATA(self), tz);
	IoObject_isDirty_(self, 1);
	return self;
}
예제 #7
0
파일: IoYajlGen.c 프로젝트: Akiyah/io
IoObject *IoYajlGen_pushBool(IoYajlGen *self, IoObject *locals, IoMessage *m)
{
	int b = IoMessage_locals_boolArgAt_(m, locals, 0);
	yajl_gen_bool(DATA(self), b);
	return self;
}
예제 #8
0
파일: IoClutter.c 프로젝트: akimd/io
/*doc Clutter setFontHinting(useFontHinting)
If <code>useFontHinting</code> is <code>false</code>, <code>CLUTTER_FONT_MIPMAPPING</code> flag will be used.
*/
IO_METHOD(IoClutter, setFontHinting) {
    clutter_set_font_flags(font_hinting_flags(IoMessage_locals_boolArgAt_(m, locals, 0)));
    return self;
}
예제 #9
0
파일: IoClutterActor.c 프로젝트: Akiyah/io
IO_METHOD(IoClutterActor, setFixedPosition) {
  int state = IoMessage_locals_boolArgAt_(m, locals, 0);
  clutter_actor_set_fixed_position_set(IOCACTOR(self), state);
  return self;
}