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

version» Context lines:

Roxen.git/server/modules/graphics/gbutton.pike:18:   // icon-data -- inline icon data   // align -- left|center|right text alignment   // align-icon -- left|center-before|center-after|right icon alignment   // valign-icon -- above|middle|below icon vertical 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.64 2000/10/17 22:15:55 mast Exp $"; + constant cvs_version = "$Id: gbutton.pike,v 1.65 2000/11/17 15:56:30 anders Exp $";   constant thread_safe = 1;      #include <module.h>   inherit "module";      roxen.ImageCache button_cache;      constant module_type = MODULE_TAG;   constant module_name = "GButton";   constant module_doc =
Roxen.git/server/modules/graphics/gbutton.pike:648:    button_layers += ({ q });    }    }      // if( !equal( args->pagebg, args->bg ) )   // {    // FIXME: fix transparency (somewhat)    // this version totally destroys the alpha channel of the image,    // but that's sort of the intention. The reason is that    // the png images are generated without alpha. -  // -  // however, it would be nice to have transparency with gif images. +  if (args->format == "png")    return ({ Image.Layer(([ "fill":args->pagebg, ])) }) + button_layers; -  +  else +  return button_layers;   // } - // return button_layers; +    }         mapping find_internal(string f, RequestID id)   {    return button_cache->http_file_answer(f, id);   }         class ButtonFrame {
Roxen.git/server/modules/graphics/gbutton.pike:715:    "icva": lower_case(args->valign_icon || "middle"),// Vertical align    "font": (args->font||id->misc->defines->font||    roxen->query("default_font")),    "border_image":fi,    "extra_layers":args["extra-layers"],    "extra_left_layers":args["extra-left-layers"],    "extra_right_layers":args["extra-right-layers"],    "extra_background_layers":args["extra-background-layers"],    "extra_mask_layers":args["extra-mask-layers"],    "extra_frame_layers":args["extra-frame-layers"], +  "scale":args["scale"], +  "format":args["format"], +  "gamma":args["gamma"], +  "crop":args["crop"],    ]);       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, content }), id);