Example #1
0
static void
draw_ellipse(DiaRenderer *self, 
             Point *center,
             real width, real height,
             Color *color)
{
  _ellipse (self, center, width, height, color, FALSE);
}
Example #2
0
static void
fill_ellipse(DiaRenderer *self, 
             Point *center,
             real width, real height,
             Color *color)
{
  _ellipse (self, center, width, height, color, TRUE);
}
/* Grafikbildschirm einrichten */
void SimBildschirmmaske(void)
{
  char buf_l[20],buf_d[20];

  sprintf(buf_l,"%6.2f",(float)laenge/100.0F);
  sprintf(buf_d,"%6.2f",(float)durchm/100.0F);

  _setcolor(7);
  _moveto(0,431);
  _lineto(640,431);
  _settextposition(1,1);

   _outtext(" Simulator:   � Pausefunktion: Stop stArt � Trace: troN troFf | Ende: ESC\n");
  _moveto(0,7);
  _lineto(640,7);
  _outtext("X-Drm �:                  Werkzeug: T01 (Ref)        Koordinaten:INC \n");
  _outtext("Z-Pos  :                  Trace   : Aus \n");
  _outtext("\nWerkst�ck: l=");
  _outtext(buf_l);
  _outtext("mm  �=");
  _outtext(buf_d);
  _outtext("mm            Status:\nMeldung  :");

  _moveto(0,7);
  _lineto(640,7);
  _moveto(0,48);
  _lineto(640,48);
  _moveto(0,175);
  _lineto(640,175);

  /* Graphicfenster */
  _setviewport(0,49,639,174);
  _setvieworg(0,50);

  Zeichne_stueck();

  /* Maschinen-NP */
  _ellipse(_GFILLINTERIOR,2,2,-2,-2);
}