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.11 2000/02/02 00:21:49 per Exp $"; + constant cvs_version = "$Id: gbutton.pike,v 1.12 2000/02/02 06:09:26 per Exp $";   constant thread_safe = 1;      #include <module.h>   inherit "module";   inherit "roxenlib";         roxen.ImageCache button_cache;   Image.Image button_border;   Image.Image button_mask;
Roxen.git/server/modules/graphics/gbutton.pike:275:    id->misc->defines->fgcolor || "#000000"), // Text color    "cnd" : args->condensed || // Condensed text    (lower_case(args->textstyle || "") == "condensed"),    "wi" : (int) args->width, // Min button width    "al" : args->align || "left", // Text alignment    "dim" : args->dim || // Button dimming    (< "dim", "disabled" >)[lower_case(args->state || "")],    "icn" : args->icon_src && fix_relative(args->icon_src, id), // Icon URL    "icd" : args->icon_data, // Inline icon data    "ica" : args->align_icon || "left", // Icon alignment -  "font": args->font, +  "font": (args->font||id->misc->defines->font),    ]);       if(args->bordercolor)    new_args->bo=parse_color(args->bordercolor); // Border color    else    new_args->bo=Array.map(new_args->bg, lambda(int c){ return c/5; });       if(args->borderbottom)    new_args->bob=parse_color(args->borderbottom);    else