pike.git / src / modules / Image / layers.c

version» Context lines:

pike.git/src/modules/Image/layers.c:1:   /*   **! module Image   **! note - **! $Id: layers.c,v 1.17 1999/06/18 17:34:22 mirar Exp $ + **! $Id: layers.c,v 1.18 1999/06/19 20:24:47 hubbe Exp $   **! class Layer   */      #include "global.h"      #include <math.h> /* floor */    - RCSID("$Id: layers.c,v 1.17 1999/06/18 17:34:22 mirar Exp $"); + RCSID("$Id: layers.c,v 1.18 1999/06/19 20:24:47 hubbe Exp $");      #include "image_machine.h"      #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "array.h"
pike.git/src/modules/Image/layers.c:2084:    for (i=0; i<LAYER_MODES; i++)    layer_mode[i].ps=make_shared_string(layer_mode[i].name);       /* layer object */       ADD_STORAGE(struct layer);    set_init_callback(init_layer);    set_exit_callback(exit_layer);       ADD_FUNCTION("create",image_layer_create, -  tOr4(tFunc(,tVoid), +  tOr4(tFunc(tNone,tVoid),    tFunc(tObj tOr(tObj,tVoid) tOr(tString,tVoid),tVoid),    tFunc(tLayerMap,tVoid),    tFunc(tInt tInt    tOr(tColor,tVoid) tOr(tColor,tVoid),tVoid)),0);       ADD_FUNCTION("cast",image_layer_cast,    tFunc(tString,tMapping),0);       /* set */   
pike.git/src/modules/Image/layers.c:2106:    ADD_FUNCTION("set_image",image_layer_set_image,    tFunc(tOr(tObj,tVoid) tOr(tObj,tVoid),tObj),0);    ADD_FUNCTION("set_fill",image_layer_set_fill,    tFunc(tOr(tObj,tVoid) tOr(tObj,tVoid),tObj),0);    ADD_FUNCTION("set_mode",image_layer_set_mode,tFunc(tStr,tObj),0);    ADD_FUNCTION("set_alpha_value",image_layer_set_mode,tFunc(tFloat,tObj),0);    ADD_FUNCTION("set_tiled",image_layer_set_tiled,tFunc(tInt,tObj),0);       /* query */    -  ADD_FUNCTION("image",image_layer_image,tFunc(,tObj),0); -  ADD_FUNCTION("alpha",image_layer_alpha,tFunc(,tObj),0); -  ADD_FUNCTION("mode",image_layer_mode,tFunc(,tStr),0); +  ADD_FUNCTION("image",image_layer_image,tFunc(tNone,tObj),0); +  ADD_FUNCTION("alpha",image_layer_alpha,tFunc(tNone,tObj),0); +  ADD_FUNCTION("mode",image_layer_mode,tFunc(tNone,tStr),0);       ADD_FUNCTION("available_modes",image_layer_available_modes, -  tFunc(,tArr(tStr)),0); +  tFunc(tNone,tArr(tStr)),0);    -  ADD_FUNCTION("xsize",image_layer_xsize,tFunc(,tInt),0); -  ADD_FUNCTION("ysize",image_layer_ysize,tFunc(,tInt),0); +  ADD_FUNCTION("xsize",image_layer_xsize,tFunc(tNone,tInt),0); +  ADD_FUNCTION("ysize",image_layer_ysize,tFunc(tNone,tInt),0);    -  ADD_FUNCTION("xoffset",image_layer_xoffset,tFunc(,tInt),0); -  ADD_FUNCTION("yoffset",image_layer_yoffset,tFunc(,tInt),0); +  ADD_FUNCTION("xoffset",image_layer_xoffset,tFunc(tNone,tInt),0); +  ADD_FUNCTION("yoffset",image_layer_yoffset,tFunc(tNone,tInt),0);    -  ADD_FUNCTION("alpha_value",image_layer_alpha_value,tFunc(,tFloat),0); -  ADD_FUNCTION("fill",image_layer_fill,tFunc(,tObj),0); -  ADD_FUNCTION("fill_alpha",image_layer_fill_alpha,tFunc(,tObj),0); +  ADD_FUNCTION("alpha_value",image_layer_alpha_value,tFunc(tNone,tFloat),0); +  ADD_FUNCTION("fill",image_layer_fill,tFunc(tNone,tObj),0); +  ADD_FUNCTION("fill_alpha",image_layer_fill_alpha,tFunc(tNone,tObj),0);    -  ADD_FUNCTION("tiled",image_layer_tiled,tFunc(,tInt01),0); +  ADD_FUNCTION("alpha_value",image_layer_alpha_value,tFunc(tNone,tFloat),0); +  ADD_FUNCTION("fill",image_layer_fill,tFunc(tNone,tObj),0); +  ADD_FUNCTION("fill_alpha",image_layer_fill_alpha,tFunc(tNone,tObj),0);    -  +  ADD_FUNCTION("tiled",image_layer_tiled,tFunc(tNone,tInt01),0); +     /* image-object operations */       ADD_FUNCTION("crop",image_layer_crop,    tFunc(tInt tInt tInt tInt,tObj),0);       /*    ADD_FUNCTION("rotate",image_layer_rotate,tFunc(tOr(tInt,tFloat),tObj),0);    ADD_FUNCTION("scale",image_layer_scale,tOr3(tFunc(tInt tInt,tObj),    tFunc(tFloat,tObj),    tFunc(tFloat,tFloat,tObj)),0);