extern "C" void setup_c0x2eincdec(void) { t_eclass *c; c = eclass_new("c.incdec", (method)incdec_new, (method)incdec_free, (short)sizeof(t_incdec), 0L, A_GIMME, 0); eclass_init(c, 0); eclass_addmethod(c, (method) incdec_assist, "assist", A_CANT, 0); eclass_addmethod(c, (method) incdec_paint, "paint", A_CANT, 0); eclass_addmethod(c, (method) incdec_notify, "notify", A_CANT, 0); eclass_addmethod(c, (method) incdec_getdrawparams, "getdrawparams", A_CANT, 0); eclass_addmethod(c, (method) incdec_oksize, "oksize", A_CANT, 0); eclass_addmethod(c, (method) incdec_set, "set", A_FLOAT,0); eclass_addmethod(c, (method) incdec_float, "float", A_FLOAT,0); eclass_addmethod(c, (method) incdec_output, "bang", A_CANT, 0); eclass_addmethod(c, (method) incdec_inc, "inc", A_CANT, 0); eclass_addmethod(c, (method) incdec_dec, "dec", A_CANT, 0); eclass_addmethod(c, (method) incdec_mousedown, "mousedown", A_CANT, 0); eclass_addmethod(c, (method) incdec_mouseup, "mouseup", A_CANT, 0); CLASS_ATTR_INVISIBLE (c, "fontname", 1); CLASS_ATTR_INVISIBLE (c, "fontweight", 1); CLASS_ATTR_INVISIBLE (c, "fontslant", 1); CLASS_ATTR_INVISIBLE (c, "fontsize", 1); CLASS_ATTR_INVISIBLE (c, "send", 1); CLASS_ATTR_DEFAULT (c, "size", 0, "13 20"); CLASS_ATTR_FLOAT (c, "step", 0, t_incdec, f_increment); CLASS_ATTR_LABEL (c, "step", 0, "Step increment"); CLASS_ATTR_FILTER_MIN (c, "step", 0.); CLASS_ATTR_ORDER (c, "step", 0, "1"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "step", 0, "1."); CLASS_ATTR_STYLE (c, "step", 0, "number"); CLASS_ATTR_STEP (c, "step", 0.1); CLASS_ATTR_RGBA (c, "bgcolor", 0, t_incdec, f_color_background); CLASS_ATTR_LABEL (c, "bgcolor", 0, "Background Color"); CLASS_ATTR_ORDER (c, "bgcolor", 0, "1"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "bgcolor", 0, "0.75 0.75 0.75 1."); CLASS_ATTR_STYLE (c, "bgcolor", 0, "color"); CLASS_ATTR_RGBA (c, "bdcolor", 0, t_incdec, f_color_border); CLASS_ATTR_LABEL (c, "bdcolor", 0, "Border Color"); CLASS_ATTR_ORDER (c, "bdcolor", 0, "2"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "bdcolor", 0, "0.5 0.5 0.5 1."); CLASS_ATTR_STYLE (c, "bdcolor", 0, "color"); CLASS_ATTR_RGBA (c, "arcolor", 0, t_incdec, f_color_arrow); CLASS_ATTR_LABEL (c, "arcolor", 0, "Arrow Color"); CLASS_ATTR_ORDER (c, "arcolor", 0, "3"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "arcolor", 0, "0. 0. 0. 1."); CLASS_ATTR_STYLE (c, "arcolor", 0, "color"); eclass_register(CLASS_BOX, c); cicm_post(); incdec_class = c; }
extern "C" void setup_c0x2eplane(void) { t_eclass *c; c = eclass_new("c.plane", (method)plane_new, (method)plane_free, (short)sizeof(t_plane), 0L, A_GIMME, 0); eclass_init(c, 0); eclass_addmethod(c, (method) plane_assist, "assist", A_CANT, 0); eclass_addmethod(c, (method) plane_paint, "paint", A_CANT, 0); eclass_addmethod(c, (method) plane_notify, "notify", A_CANT, 0); eclass_addmethod(c, (method) plane_getdrawparams, "getdrawparams", A_CANT, 0); eclass_addmethod(c, (method) plane_oksize, "oksize", A_CANT, 0); eclass_addmethod(c, (method) plane_set, "set", A_GIMME,0); eclass_addmethod(c, (method) plane_list, "list", A_GIMME,0); eclass_addmethod(c, (method) plane_output, "bang", A_CANT, 0); eclass_addmethod(c, (method) plane_mousedrag, "mousedown", A_CANT, 0); eclass_addmethod(c, (method) plane_mousedrag, "mousedrag", A_CANT, 0); eclass_addmethod(c, (method) plane_preset, "preset", A_CANT, 0); CLASS_ATTR_INVISIBLE (c, "fontname", 1); CLASS_ATTR_INVISIBLE (c, "fontweight", 1); CLASS_ATTR_INVISIBLE (c, "fontslant", 1); CLASS_ATTR_INVISIBLE (c, "fontsize", 1); CLASS_ATTR_DEFAULT (c, "size", 0, "120 120"); CLASS_ATTR_FLOAT_ARRAY (c, "bound", 0, t_plane, f_boundaries, 4); CLASS_ATTR_LABEL (c, "bound", 0, "Boundaries"); CLASS_ATTR_ACCESSORS (c, "bound", NULL, plane_bound_set); CLASS_ATTR_ORDER (c, "bound", 0, "2"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "bound", 0, "-1. -1. 1. 1."); CLASS_ATTR_FLOAT (c, "ptsize", 0, t_plane, f_size); CLASS_ATTR_LABEL (c, "ptsize", 0, "Point size"); CLASS_ATTR_ORDER (c, "ptsize", 0, "3"); CLASS_ATTR_FILTER_CLIP (c, "ptsize", 5., 50.f); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "ptsize", 0, "5"); CLASS_ATTR_STYLE (c, "ptsize", 0, "number"); CLASS_ATTR_STEP (c, "ptsize", 0.5); CLASS_ATTR_RGBA (c, "bgcolor", 0, t_plane, f_color_background); CLASS_ATTR_LABEL (c, "bgcolor", 0, "Background Color"); CLASS_ATTR_ORDER (c, "bgcolor", 0, "1"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "bgcolor", 0, "0.75 0.75 0.75 1."); CLASS_ATTR_STYLE (c, "bgcolor", 0, "color"); CLASS_ATTR_RGBA (c, "bdcolor", 0, t_plane, f_color_border); CLASS_ATTR_LABEL (c, "bdcolor", 0, "Border Color"); CLASS_ATTR_ORDER (c, "bdcolor", 0, "2"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "bdcolor", 0, "0.5 0.5 0.5 1."); CLASS_ATTR_STYLE (c, "bdcolor", 0, "color"); CLASS_ATTR_RGBA (c, "ptcolor", 0, t_plane, f_color_point); CLASS_ATTR_LABEL (c, "ptcolor", 0, "Point Color"); CLASS_ATTR_ORDER (c, "ptcolor", 0, "3"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "ptcolor", 0, "0. 0. 0. 1"); CLASS_ATTR_STYLE (c, "ptcolor", 0, "color"); eclass_register(CLASS_BOX, c); cicm_post(); plane_class = c; }
extern "C" void setup_c0x2eplane(void) { t_eclass *c = eclass_new("c.plane", (method)plane_new, (method)ebox_free, (short)sizeof(t_plane), CLASS_NOINLET, A_GIMME, 0); if(c) { eclass_guiinit(c, 0); eclass_addmethod(c, (method) plane_paint, "paint", A_NULL, 0); eclass_addmethod(c, (method) plane_notify, "notify", A_NULL, 0); eclass_addmethod(c, (method) plane_getdrawparams, "getdrawparams", A_NULL, 0); eclass_addmethod(c, (method) plane_oksize, "oksize", A_NULL, 0); eclass_addmethod(c, (method) plane_bang, "bang", A_FLOAT,0); eclass_addmethod(c, (method) plane_float, "float", A_FLOAT,0); eclass_addmethod(c, (method) plane_set, "set", A_GIMME,0); eclass_addmethod(c, (method) plane_list, "list", A_GIMME,0); eclass_addmethod(c, (method) plane_output, "bang", A_NULL, 0); eclass_addmethod(c, (method) plane_mousedown, "mousedown", A_NULL, 0); eclass_addmethod(c, (method) plane_mousedrag, "mousedrag", A_NULL, 0); eclass_addmethod(c, (method) plane_mouseup, "mouseup", A_NULL, 0); CLASS_ATTR_DEFAULT (c, "size", 0, "120 120"); CLASS_ATTR_FLOAT_ARRAY (c, "bounds", 0, t_plane, f_dummy, 4); CLASS_ATTR_LABEL (c, "bounds", 0, "Boundaries"); CLASS_ATTR_ACCESSORS (c, "bounds", plane_bounds_get, plane_bounds_set); CLASS_ATTR_ORDER (c, "bounds", 0, "2"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "bounds", 0, "-1. -1. 1. 1."); CLASS_ATTR_FLOAT (c, "ptsize", 0, t_plane, f_size); CLASS_ATTR_LABEL (c, "ptsize", 0, "Point size"); CLASS_ATTR_ORDER (c, "ptsize", 0, "3"); CLASS_ATTR_FILTER_CLIP (c, "ptsize", 1., 50.f); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "ptsize", 0, "5"); CLASS_ATTR_STYLE (c, "ptsize", 0, "number"); CLASS_ATTR_STEP (c, "ptsize", 0.5); CLASS_ATTR_RGBA (c, "bgcolor", 0, t_plane, f_color_background); CLASS_ATTR_LABEL (c, "bgcolor", 0, "Background Color"); CLASS_ATTR_ORDER (c, "bgcolor", 0, "1"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "bgcolor", 0, "0.75 0.75 0.75 1."); CLASS_ATTR_STYLE (c, "bgcolor", 0, "color"); CLASS_ATTR_RGBA (c, "bdcolor", 0, t_plane, f_color_border); CLASS_ATTR_LABEL (c, "bdcolor", 0, "Border Color"); CLASS_ATTR_ORDER (c, "bdcolor", 0, "2"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "bdcolor", 0, "0.5 0.5 0.5 1."); CLASS_ATTR_STYLE (c, "bdcolor", 0, "color"); CLASS_ATTR_RGBA (c, "ptcolor", 0, t_plane, f_color_point); CLASS_ATTR_LABEL (c, "ptcolor", 0, "Point Color"); CLASS_ATTR_ORDER (c, "ptcolor", 0, "3"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "ptcolor", 0, "0.5 0.5 0.5 1."); CLASS_ATTR_STYLE (c, "ptcolor", 0, "color"); eclass_register(CLASS_BOX, c); plane_class = c; } }