Roxen.git / server / modules / graphics / gbutton.pike

version» Context lines:

Roxen.git/server/modules/graphics/gbutton.pike:18:   // icon_src -- icon reference   // icon_data -- inline icon data   // align -- left|center|right text alignment   // align_icon -- left|center_before|center_after|right icon alignment   // >Button text</gbutton>   //   // Alignment restriction: when text alignment is either left or right, icons   // must also be aligned left or right.       - constant cvs_version = "$Id: gbutton.pike,v 1.23 2000/02/08 22:54:10 per Exp $"; + constant cvs_version = "$Id: gbutton.pike,v 1.24 2000/02/08 22:55:15 per Exp $";   constant thread_safe = 1;      #include <module.h>   inherit "module";   inherit "roxenlib";         roxen.ImageCache button_cache;      
Roxen.git/server/modules/graphics/gbutton.pike:452:    "ica" : args->align_icon || "left", // Icon alignment    "font": (args->font||id->misc->defines->font||    roxen->query("default_font")),    "border_image":fi,    "extra_layers":args["extra-layers"],    "extra_background_layers":args["extra-background-layers"],    "extra_mask_layers":args["extra-mask-layers"],    "extra_frame_layers":args["extra-frame-layers"],    ]);    - // array hsv = Image.Color( @new_args->bg )->hsv( ); - // hsv[-1] = min( hsv[-1]+70, 255 ); - // new_args->bob = (array)Image.Color.hsv( @hsv ); - // hsv[-1] = max( hsv[-1]-140, 0 ); - // new_args->bo = (array)Image.Color.hsv( @hsv ); -  - // if(args->bordercolor) - // new_args->bo=parse_color(args->bordercolor); // Border color -  - // if(args->borderbottom) - // new_args->bob=parse_color(args->borderbottom); -  +     new_args->quant = args->quant || 128;    foreach(glob("*-*", indices(args)), string n)    new_args[n] = args[n];       string img_src =    query_internal_location() +    button_cache->store( ({ new_args, contents }), id);       if( tag == "gbutton-url" )    return img_src;