home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume19 / xfig / part01 / object.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-27  |  1.8 KB  |  60 lines

  1. /*
  2.  * FIG : Facility for Interactive Generation of figures
  3.  * Copyright (c) 1985 by Supoj Sutanthavibul
  4.  *
  5.  * "Permission to use, copy, modify, distribute, and sell this software and its
  6.  * documentation for any purpose is hereby granted without fee, provided that
  7.  * the above copyright notice appear in all copies and that both the copyright
  8.  * notice and this permission notice appear in supporting documentation. 
  9.  * No representations are made about the suitability of this software for 
  10.  * any purpose.  It is provided "as is" without express or implied warranty."
  11.  */
  12.  
  13. #include "fig.h"
  14. #include "mode.h"
  15. #include "resources.h"
  16. #include "object.h"
  17. #include "paintop.h"
  18.  
  19. /************************  Objects  **********************/
  20.  
  21. F_compound    objects = {0, { 0, 0 }, { 0, 0 }, 
  22.                 NULL, NULL, NULL, NULL, NULL, NULL, NULL};
  23.  
  24. /************  global object pointers ************/
  25.  
  26. F_line           *cur_l, *new_l, *old_l;
  27. F_arc           *cur_a, *new_a, *old_a;
  28. F_ellipse      *cur_e, *new_e, *old_e;
  29. F_text           *cur_t, *new_t, *old_t;
  30. F_spline       *cur_s, *new_s, *old_s;
  31. F_compound     *cur_c, *new_c, *old_c;
  32. F_point           *first_point, *cur_point;
  33. F_linkinfo     *cur_links;
  34.  
  35. /*************** object attribute settings ***********/
  36.  
  37. /*  Lines  */
  38. int        cur_linewidth = 1;
  39. int        cur_linestyle = SOLID_LINE;
  40. float        cur_dashlength = DEF_DASHLENGTH;
  41. float        cur_dotgap = DEF_DOTGAP;
  42. float        cur_styleval = 0.0;
  43. int        pen_size = 0;
  44. int        pen_type = 0;
  45. Color        cur_color = DEFAULT_COLOR;
  46. int        cur_boxradius = DEF_BOXRADIUS;
  47. int        cur_fillstyle = 0;
  48. int        cur_arrowmode = L_NOARROWS;
  49. char        EMPTY_EPS[8] = "<empty>";
  50.  
  51. /* Text */
  52. int        cur_fontsize;    /* font size */
  53. int        cur_latex_font = 0;
  54. int        cur_ps_font = 0;
  55. int        cur_textjust = T_LEFT_JUSTIFIED;
  56. int        cur_textflags = PSFONT_TEXT;
  57.  
  58. /* Misc */
  59. float        cur_elltextangle = 0.0;    /* text/ellipse input angle */
  60.