Beispiel #1
0
static void iem_image_save(t_gobj *z, t_binbuf *b)
{
    t_iem_image *x = (t_iem_image *)z;
    t_symbol *srl[3];

    srl[0] = x->x_gui.x_snd;
    srl[1] = x->x_gui.x_rcv;
    srl[2] = gensym("empty");
    if(x->x_gifsym)
        binbuf_addv(b, "ssiissiiss", gensym("#X"),gensym("obj"),
                    (t_int)x->x_gui.x_obj.te_xpix, (t_int)x->x_gui.x_obj.te_ypix,
                    atom_getsymbol(binbuf_getvec(x->x_gui.x_obj.te_binbuf)),
                    x->x_gifsym, iem_symargstoint(&x->x_gui.x_isa),
                    iem_fstyletoint(&x->x_gui.x_fsf), srl[0], srl[1]);
    else
        binbuf_addv(b, "ssiisiiiss", gensym("#X"),gensym("obj"),
                    (t_int)x->x_gui.x_obj.te_xpix, (t_int)x->x_gui.x_obj.te_ypix,
                    atom_getsymbol(binbuf_getvec(x->x_gui.x_obj.te_binbuf)),
                    0, iem_symargstoint(&x->x_gui.x_isa),
                    iem_fstyletoint(&x->x_gui.x_fsf), srl[0], srl[1]);
    binbuf_addv(b, ";");
}
Beispiel #2
0
static void iem_vu_save(t_gobj *z, t_binbuf *b)
{
  t_iem_vu *x = (t_iem_vu *)z;
  int bflcol[3];
  t_symbol *srl[3];
  
  iemgui_save(&x->x_gui, srl, bflcol);
  binbuf_addv(b, "ssiisiissiiiiiiii", gensym("#X"),gensym("obj"),
    (t_int)x->x_gui.x_obj.te_xpix, (t_int)x->x_gui.x_obj.te_ypix,
    atom_getsymbol(binbuf_getvec(x->x_gui.x_obj.te_binbuf)),
    /*x->x_gui.x_w+1*/ x->x_gui.x_w, 120,
    srl[1], srl[2],
    x->x_gui.x_ldx, x->x_gui.x_ldy,
    iem_fstyletoint(&x->x_gui.x_fsf), x->x_gui.x_fontsize,
    bflcol[0], bflcol[2], x->x_scale, iem_symargstoint(&x->x_gui.x_isa));
  binbuf_addv(b, ";");
}
Beispiel #3
0
static void iem_event_save(t_gobj *z, t_binbuf *b)
{
  t_iem_event *x = (t_iem_event *)z;
  t_symbol *srl[3];
  
  srl[0] = x->x_gui.x_snd;
  srl[1] = x->x_gui.x_rcv;
  srl[2] = gensym("empty");
  iemgui_all_sym2dollararg(&x->x_gui, srl);
  
  binbuf_addv(b, "ssiisiiiiss", gensym("#X"),gensym("obj"),
    (t_int)x->x_gui.x_obj.te_xpix, (t_int)x->x_gui.x_obj.te_ypix,
    atom_getsymbol(binbuf_getvec(x->x_gui.x_obj.te_binbuf)),
    x->x_gui.x_w, x->x_gui.x_h,
    iem_symargstoint(&x->x_gui.x_isa), iem_fstyletoint(&x->x_gui.x_fsf),
    srl[0], srl[1]);
  binbuf_addv(b, ";");
}