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

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1:   // This is a roxen module. Copyright © 1996 - 2000, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.222 2000/03/20 19:24:39 per Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.223 2000/03/21 15:23:19 nilsson Exp $";      #include <module.h>   inherit "module";   inherit "roxenlib";         // ------------------- Module registration ---------------------      constant module_type = MODULE_PARSER;   constant module_name = "Graphics text";
Roxen.git/server/modules/graphics/graphic_text.pike:737:   // if(arg->border && (search(arg->border,",")!=-1))   // {   // p->border=arg->border;   // m_delete(arg,"border");   // }       array i = indices( arg );    foreach(textarg, string tmp)    foreach( glob( tmp, i ), string a )    { +  if(a[0..5]!="magic-") {    p[a]=arg[a]; // ,id    i-=({a});    m_delete(arg,a);    } -  +  }       foreach(theme, string tmp)    if( (id->misc->defines[tmp] || id->misc->defines["theme_"+tmp]) && !p[tmp])    p[tmp]=id->misc->defines["theme_"+tmp] || id->misc->defines[tmp];       if(!p->fgcolor) p->fgcolor="#000000";    if(!p->bgcolor) p->bgcolor="#ffffff";       if(id->misc->defines->nfont && !p->nfont) p->nfont=id->misc->gtext_nfont;    if(id->misc->defines->afont && !p->afont) p->afont=id->misc->gtext_afont;
Roxen.git/server/modules/graphics/graphic_text.pike:874:    }       if(arg->magic)    {    string magic=replace(arg->magic,"'","`");    m_delete(arg,"magic");       if(p->bevel) p->pressed=1;       m_delete(p, "fgcolor"); -  foreach(glob("magic-*", indices(p)), string q) +  foreach(glob("magic-*", indices(arg)), string q)    { -  p[q[6..]]=p[q]; -  m_delete(p, q); +  p[q[6..]]=arg[q]; +  m_delete(arg, q);    }       if(!p->fgcolor) p->fgcolor=id->misc->defines->theme_alink||    id->misc->defines->alink||"#ff0000";       string num2 = image_cache->store( ({ p, c }),id );    size = image_cache->metadata( num2, id );    if(size) {    arg->width=(string)max(arg->xsize,size->xsize);    arg->height=(string)max(arg->ysize,size->ysize);