pike.git / lib / modules / Graphics.pmod / Graph.pmod / create_pie.pike

version» Context lines:

pike.git/lib/modules/Graphics.pmod/Graph.pmod/create_pie.pike:5:   #include "graph.h"      // import Image;   import Array;   import Stdio;      inherit "polyline.pike";   inherit "create_graph.pike";   inherit "create_bars.pike";    - constant cvs_version = "$Id: create_pie.pike,v 1.4 2000/09/28 03:38:43 hubbe Exp $"; + constant cvs_version = "$Id: create_pie.pike,v 1.5 2000/10/12 00:42:15 nilsson Exp $";      /*    * name = "BG: Create pies";    * doc = "Business Graphics sub-module for drawing pie-charts.";    */      /*   These functions were written by Henrik "Hedda" Wallin (hedda@idonex.se)   Create_pie can draw pie charts in different forms.   
pike.git/lib/modules/Graphics.pmod/Graph.pmod/create_pie.pike:100:             //create the text objects    if (names)    text=allocate(sizeof(names));       if (diagram_data["3Ddepth"]>diagram_data["ysize"]/5)    diagram_data["3Ddepth"]=diagram_data["ysize"]/5;    -  GETFONT(xnamesfont); +  notext=GETFONT(xnamesfont);    if (names)    if (notext)    for(int i=0; i<sizeof(names); i++)    {    if ((names[i]!=0) && (names[i]!=""))    text[i]=notext    ->write(UNICODE((string)(names[i]),diagram_data["encoding"]))    ->scale(0,diagram_data["fontsize"]);    else    text[i]=Image.image(diagram_data["fontsize"],