Home » Personal collection » Acorn ADFS disks » Archimedes » Dominic_1.ADF » !DrawPlus/tech

!DrawPlus/tech

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn ADFS disks » Archimedes » Dominic_1.ADF
Filename: !DrawPlus/tech
Read OK:
File size: 123E bytes
Load address: FFFFFF43
Exec address: 138CFD2F
Duplicates

There are 4 duplicate copies of this file in the archive:

File contents

                       DRAW PLUS TECHNICAL DETAILS

                             � JJM April 1991



This  file  gives  details  of the  additional  data  structures  used  by 
Draw Plus.   They  are defined in terms of C structures.   Details of  the 
standard  types and objects can be found in the include file  drawftypes.h 
supplied with C release 3.  Any future changes to these structures will be 
backwards compatible with Draw Plus version 2�00.



Extended object tag

This  replaces the 4-byte object tag used in standard  Draw  objects,  and 
stores the layer information and miscellaneous flags.  The default for the 
extended  information  is all zeros,  which means that objects  and  files 
without  this  information are fully compatible  with  other  applications 
which produce or use Draw files.

The extended tag is described by the following structure:

  typedef unsigned char draw_tagtyp;
  typedef unsigned char draw_layer;
  typedef unsigned char draw_objflags;

  struct draw_extag               /* Extended object tag */
  {
          draw_tagtyp tag;        /* Basic object type */
          draw_layer layer;       /* Drawing layer, 0 to 31 */
          draw_objflags flag;     /* Object flags */
          unsigned char spare;    /* For future expansion */
  };

The following bits in flag are used at present:

  #define flag_NODISPLAY     1    /* Object is never displayed */
  #define flag_LOCKED        2    /* Object is locked */
  #define flag_HIDDEN        4    /* Object is temporarily hidden */

The NODISPLAY flag is used to mark objects,  such as saved settings,  used 
internally.  The HIDDEN flag marks objects that are temporarily invisible, 
such as path objects that are in the process of being edited.   The LOCKED 
flag is set if the object has been locked.

The  extended tag replaces the original draw_tagtyp in the object  header, 
as follows:

  struct draw_objhdr              /* General object header */
  {
          draw_extag t;           /* Extended tag */
          draw_sizetyp size;      /* Object size */
          draw_bboxtyp bbox;      /* Bounding box */
  };



Saved settings

Settings,  styles, layer and dash pattern information is saved in a number 
of objects which are described by the following structure:

  struct draw_setstrhdr           /* Saved settings object header */
  {
          draw_extag t;           /* Extended tag */
          draw_sizetyp size;      /* Object size */
          draw_bboxtyp bbox;      /* Bounding box */
          int version;            /* Structure version */
          int contents;           /* What this contains */
  };

The  settings  structure version field is used to detect  incompatible  or 
out-of-date settings;  it is currently 4.

The contents field indicates what is stored in this structure.   The types 
currently defined are:

  #define set_USER           1    /* General user settings */
  #define set_TEXTSTYLE      2    /* Default text style */
  #define set_PATHSTYLE      3    /* Default path style  */
  #define set_EXTRAS         4    /* Layers and dash patterns */
  #define set_EXPAND         5    /* For future expansion */

The data immediately follows this structure.  Since the format and content 
is subject to change,  details are not included here.  The object type for 
a saved settings object is 101.



Library file

The  library  file format is very similar to a standard  Draw  file.   The 
header  is identical,  except that the creator string is "Library"  rather 
than "Draw".  The major version number is 2.

The  rest  of  the file contains standard Draw objects  described  by  the 
following structures:

  struct draw_libstrhdr           /* Library object header */
  {
          draw_extag tag;         /* Object tag */
          draw_sizetyp size;      /* Size (including contained object) */
          draw_bboxtyp bbox;      /* Copy of object's bounding box */
          char name[21];          /* Object name */
          time_t time;            /* Time last updated */
  };

The  included  object  (with  its  own  tag  and  bounding  box)   follows 
immediately after the header:

  struct draw_libstr              /* Library object */
  {
          draw_extag tag;         /* Object tag */
          draw_sizetyp size;      /* Size (including contained object) */
          draw_bboxtyp bbox;      /* Copy of object's bounding box */
          char name[21];          /* Object name */
          time_t time;            /* Time last updated */
          draw_objhdr object;     /* Object data */
  };

The type time_t is defined in the header file time.h.  The object type for 
a library object is 100.

00000000  0a 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |..              |
00000010  20 20 20 20 20 20 20 20  20 44 52 41 57 20 50 4c  |         DRAW PL|
00000020  55 53 20 54 45 43 48 4e  49 43 41 4c 20 44 45 54  |US TECHNICAL DET|
00000030  41 49 4c 53 0a 0a 20 20  20 20 20 20 20 20 20 20  |AILS..          |
00000040  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000050  20 20 20 a9 20 4a 4a 4d  20 41 70 72 69 6c 20 31  |   . JJM April 1|
00000060  39 39 31 0a 0a 0a 0a 54  68 69 73 20 20 66 69 6c  |991....This  fil|
00000070  65 20 20 67 69 76 65 73  20 20 64 65 74 61 69 6c  |e  gives  detail|
00000080  73 20 20 6f 66 20 74 68  65 20 20 61 64 64 69 74  |s  of the  addit|
00000090  69 6f 6e 61 6c 20 20 64  61 74 61 20 20 73 74 72  |ional  data  str|
000000a0  75 63 74 75 72 65 73 20  20 75 73 65 64 20 20 62  |uctures  used  b|
000000b0  79 20 0a 44 72 61 77 20  50 6c 75 73 2e 20 20 20  |y .Draw Plus.   |
000000c0  54 68 65 79 20 20 61 72  65 20 64 65 66 69 6e 65  |They  are define|
000000d0  64 20 69 6e 20 74 65 72  6d 73 20 6f 66 20 43 20  |d in terms of C |
000000e0  73 74 72 75 63 74 75 72  65 73 2e 20 20 20 44 65  |structures.   De|
000000f0  74 61 69 6c 73 20 6f 66  20 20 74 68 65 20 0a 73  |tails of  the .s|
00000100  74 61 6e 64 61 72 64 20  20 74 79 70 65 73 20 61  |tandard  types a|
00000110  6e 64 20 6f 62 6a 65 63  74 73 20 63 61 6e 20 62  |nd objects can b|
00000120  65 20 66 6f 75 6e 64 20  69 6e 20 74 68 65 20 69  |e found in the i|
00000130  6e 63 6c 75 64 65 20 66  69 6c 65 20 20 64 72 61  |nclude file  dra|
00000140  77 66 74 79 70 65 73 2e  68 20 0a 73 75 70 70 6c  |wftypes.h .suppl|
00000150  69 65 64 20 77 69 74 68  20 43 20 72 65 6c 65 61  |ied with C relea|
00000160  73 65 20 33 2e 20 20 41  6e 79 20 66 75 74 75 72  |se 3.  Any futur|
00000170  65 20 63 68 61 6e 67 65  73 20 74 6f 20 74 68 65  |e changes to the|
00000180  73 65 20 73 74 72 75 63  74 75 72 65 73 20 77 69  |se structures wi|
00000190  6c 6c 20 62 65 20 0a 62  61 63 6b 77 61 72 64 73  |ll be .backwards|
000001a0  20 63 6f 6d 70 61 74 69  62 6c 65 20 77 69 74 68  | compatible with|
000001b0  20 44 72 61 77 20 50 6c  75 73 20 76 65 72 73 69  | Draw Plus versi|
000001c0  6f 6e 20 32 b7 30 30 2e  0a 0a 0a 0a 45 78 74 65  |on 2.00.....Exte|
000001d0  6e 64 65 64 20 6f 62 6a  65 63 74 20 74 61 67 0a  |nded object tag.|
000001e0  0a 54 68 69 73 20 20 72  65 70 6c 61 63 65 73 20  |.This  replaces |
000001f0  74 68 65 20 34 2d 62 79  74 65 20 6f 62 6a 65 63  |the 4-byte objec|
00000200  74 20 74 61 67 20 75 73  65 64 20 69 6e 20 73 74  |t tag used in st|
00000210  61 6e 64 61 72 64 20 20  44 72 61 77 20 20 6f 62  |andard  Draw  ob|
00000220  6a 65 63 74 73 2c 20 20  61 6e 64 20 0a 73 74 6f  |jects,  and .sto|
00000230  72 65 73 20 74 68 65 20  6c 61 79 65 72 20 69 6e  |res the layer in|
00000240  66 6f 72 6d 61 74 69 6f  6e 20 61 6e 64 20 6d 69  |formation and mi|
00000250  73 63 65 6c 6c 61 6e 65  6f 75 73 20 66 6c 61 67  |scellaneous flag|
00000260  73 2e 20 20 54 68 65 20  64 65 66 61 75 6c 74 20  |s.  The default |
00000270  66 6f 72 20 74 68 65 20  0a 65 78 74 65 6e 64 65  |for the .extende|
00000280  64 20 20 69 6e 66 6f 72  6d 61 74 69 6f 6e 20 20  |d  information  |
00000290  69 73 20 61 6c 6c 20 7a  65 72 6f 73 2c 20 20 77  |is all zeros,  w|
000002a0  68 69 63 68 20 6d 65 61  6e 73 20 74 68 61 74 20  |hich means that |
000002b0  6f 62 6a 65 63 74 73 20  20 61 6e 64 20 20 66 69  |objects  and  fi|
000002c0  6c 65 73 20 0a 77 69 74  68 6f 75 74 20 20 74 68  |les .without  th|
000002d0  69 73 20 20 69 6e 66 6f  72 6d 61 74 69 6f 6e 20  |is  information |
000002e0  61 72 65 20 66 75 6c 6c  79 20 63 6f 6d 70 61 74  |are fully compat|
000002f0  69 62 6c 65 20 20 77 69  74 68 20 20 6f 74 68 65  |ible  with  othe|
00000300  72 20 20 61 70 70 6c 69  63 61 74 69 6f 6e 73 20  |r  applications |
00000310  0a 77 68 69 63 68 20 70  72 6f 64 75 63 65 20 6f  |.which produce o|
00000320  72 20 75 73 65 20 44 72  61 77 20 66 69 6c 65 73  |r use Draw files|
00000330  2e 0a 0a 54 68 65 20 65  78 74 65 6e 64 65 64 20  |...The extended |
00000340  74 61 67 20 69 73 20 64  65 73 63 72 69 62 65 64  |tag is described|
00000350  20 62 79 20 74 68 65 20  66 6f 6c 6c 6f 77 69 6e  | by the followin|
00000360  67 20 73 74 72 75 63 74  75 72 65 3a 0a 0a 20 20  |g structure:..  |
00000370  74 79 70 65 64 65 66 20  75 6e 73 69 67 6e 65 64  |typedef unsigned|
00000380  20 63 68 61 72 20 64 72  61 77 5f 74 61 67 74 79  | char draw_tagty|
00000390  70 3b 0a 20 20 74 79 70  65 64 65 66 20 75 6e 73  |p;.  typedef uns|
000003a0  69 67 6e 65 64 20 63 68  61 72 20 64 72 61 77 5f  |igned char draw_|
000003b0  6c 61 79 65 72 3b 0a 20  20 74 79 70 65 64 65 66  |layer;.  typedef|
000003c0  20 75 6e 73 69 67 6e 65  64 20 63 68 61 72 20 64  | unsigned char d|
000003d0  72 61 77 5f 6f 62 6a 66  6c 61 67 73 3b 0a 0a 20  |raw_objflags;.. |
000003e0  20 73 74 72 75 63 74 20  64 72 61 77 5f 65 78 74  | struct draw_ext|
000003f0  61 67 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |ag              |
00000400  20 2f 2a 20 45 78 74 65  6e 64 65 64 20 6f 62 6a  | /* Extended obj|
00000410  65 63 74 20 74 61 67 20  2a 2f 0a 20 20 7b 0a 20  |ect tag */.  {. |
00000420  20 20 20 20 20 20 20 20  20 64 72 61 77 5f 74 61  |         draw_ta|
00000430  67 74 79 70 20 74 61 67  3b 20 20 20 20 20 20 20  |gtyp tag;       |
00000440  20 2f 2a 20 42 61 73 69  63 20 6f 62 6a 65 63 74  | /* Basic object|
00000450  20 74 79 70 65 20 2a 2f  0a 20 20 20 20 20 20 20  | type */.       |
00000460  20 20 20 64 72 61 77 5f  6c 61 79 65 72 20 6c 61  |   draw_layer la|
00000470  79 65 72 3b 20 20 20 20  20 20 20 2f 2a 20 44 72  |yer;       /* Dr|
00000480  61 77 69 6e 67 20 6c 61  79 65 72 2c 20 30 20 74  |awing layer, 0 t|
00000490  6f 20 33 31 20 2a 2f 0a  20 20 20 20 20 20 20 20  |o 31 */.        |
000004a0  20 20 64 72 61 77 5f 6f  62 6a 66 6c 61 67 73 20  |  draw_objflags |
000004b0  66 6c 61 67 3b 20 20 20  20 20 2f 2a 20 4f 62 6a  |flag;     /* Obj|
000004c0  65 63 74 20 66 6c 61 67  73 20 2a 2f 0a 20 20 20  |ect flags */.   |
000004d0  20 20 20 20 20 20 20 75  6e 73 69 67 6e 65 64 20  |       unsigned |
000004e0  63 68 61 72 20 73 70 61  72 65 3b 20 20 20 20 2f  |char spare;    /|
000004f0  2a 20 46 6f 72 20 66 75  74 75 72 65 20 65 78 70  |* For future exp|
00000500  61 6e 73 69 6f 6e 20 2a  2f 0a 20 20 7d 3b 0a 0a  |ansion */.  };..|
00000510  54 68 65 20 66 6f 6c 6c  6f 77 69 6e 67 20 62 69  |The following bi|
00000520  74 73 20 69 6e 20 66 6c  61 67 20 61 72 65 20 75  |ts in flag are u|
00000530  73 65 64 20 61 74 20 70  72 65 73 65 6e 74 3a 0a  |sed at present:.|
00000540  0a 20 20 23 64 65 66 69  6e 65 20 66 6c 61 67 5f  |.  #define flag_|
00000550  4e 4f 44 49 53 50 4c 41  59 20 20 20 20 20 31 20  |NODISPLAY     1 |
00000560  20 20 20 2f 2a 20 4f 62  6a 65 63 74 20 69 73 20  |   /* Object is |
00000570  6e 65 76 65 72 20 64 69  73 70 6c 61 79 65 64 20  |never displayed |
00000580  2a 2f 0a 20 20 23 64 65  66 69 6e 65 20 66 6c 61  |*/.  #define fla|
00000590  67 5f 4c 4f 43 4b 45 44  20 20 20 20 20 20 20 20  |g_LOCKED        |
000005a0  32 20 20 20 20 2f 2a 20  4f 62 6a 65 63 74 20 69  |2    /* Object i|
000005b0  73 20 6c 6f 63 6b 65 64  20 2a 2f 0a 20 20 23 64  |s locked */.  #d|
000005c0  65 66 69 6e 65 20 66 6c  61 67 5f 48 49 44 44 45  |efine flag_HIDDE|
000005d0  4e 20 20 20 20 20 20 20  20 34 20 20 20 20 2f 2a  |N        4    /*|
000005e0  20 4f 62 6a 65 63 74 20  69 73 20 74 65 6d 70 6f  | Object is tempo|
000005f0  72 61 72 69 6c 79 20 68  69 64 64 65 6e 20 2a 2f  |rarily hidden */|
00000600  0a 0a 54 68 65 20 4e 4f  44 49 53 50 4c 41 59 20  |..The NODISPLAY |
00000610  66 6c 61 67 20 69 73 20  75 73 65 64 20 74 6f 20  |flag is used to |
00000620  6d 61 72 6b 20 6f 62 6a  65 63 74 73 2c 20 20 73  |mark objects,  s|
00000630  75 63 68 20 61 73 20 73  61 76 65 64 20 73 65 74  |uch as saved set|
00000640  74 69 6e 67 73 2c 20 20  75 73 65 64 20 0a 69 6e  |tings,  used .in|
00000650  74 65 72 6e 61 6c 6c 79  2e 20 20 54 68 65 20 48  |ternally.  The H|
00000660  49 44 44 45 4e 20 66 6c  61 67 20 6d 61 72 6b 73  |IDDEN flag marks|
00000670  20 6f 62 6a 65 63 74 73  20 74 68 61 74 20 61 72  | objects that ar|
00000680  65 20 74 65 6d 70 6f 72  61 72 69 6c 79 20 69 6e  |e temporarily in|
00000690  76 69 73 69 62 6c 65 2c  20 0a 73 75 63 68 20 61  |visible, .such a|
000006a0  73 20 70 61 74 68 20 6f  62 6a 65 63 74 73 20 74  |s path objects t|
000006b0  68 61 74 20 61 72 65 20  69 6e 20 74 68 65 20 70  |hat are in the p|
000006c0  72 6f 63 65 73 73 20 6f  66 20 62 65 69 6e 67 20  |rocess of being |
000006d0  65 64 69 74 65 64 2e 20  20 20 54 68 65 20 4c 4f  |edited.   The LO|
000006e0  43 4b 45 44 20 0a 66 6c  61 67 20 69 73 20 73 65  |CKED .flag is se|
000006f0  74 20 69 66 20 74 68 65  20 6f 62 6a 65 63 74 20  |t if the object |
00000700  68 61 73 20 62 65 65 6e  20 6c 6f 63 6b 65 64 2e  |has been locked.|
00000710  0a 0a 54 68 65 20 20 65  78 74 65 6e 64 65 64 20  |..The  extended |
00000720  74 61 67 20 72 65 70 6c  61 63 65 73 20 74 68 65  |tag replaces the|
00000730  20 6f 72 69 67 69 6e 61  6c 20 64 72 61 77 5f 74  | original draw_t|
00000740  61 67 74 79 70 20 69 6e  20 74 68 65 20 6f 62 6a  |agtyp in the obj|
00000750  65 63 74 20 20 68 65 61  64 65 72 2c 20 0a 61 73  |ect  header, .as|
00000760  20 66 6f 6c 6c 6f 77 73  3a 0a 0a 20 20 73 74 72  | follows:..  str|
00000770  75 63 74 20 64 72 61 77  5f 6f 62 6a 68 64 72 20  |uct draw_objhdr |
00000780  20 20 20 20 20 20 20 20  20 20 20 20 20 2f 2a 20  |             /* |
00000790  47 65 6e 65 72 61 6c 20  6f 62 6a 65 63 74 20 68  |General object h|
000007a0  65 61 64 65 72 20 2a 2f  0a 20 20 7b 0a 20 20 20  |eader */.  {.   |
000007b0  20 20 20 20 20 20 20 64  72 61 77 5f 65 78 74 61  |       draw_exta|
000007c0  67 20 74 3b 20 20 20 20  20 20 20 20 20 20 20 2f  |g t;           /|
000007d0  2a 20 45 78 74 65 6e 64  65 64 20 74 61 67 20 2a  |* Extended tag *|
000007e0  2f 0a 20 20 20 20 20 20  20 20 20 20 64 72 61 77  |/.          draw|
000007f0  5f 73 69 7a 65 74 79 70  20 73 69 7a 65 3b 20 20  |_sizetyp size;  |
00000800  20 20 20 20 2f 2a 20 4f  62 6a 65 63 74 20 73 69  |    /* Object si|
00000810  7a 65 20 2a 2f 0a 20 20  20 20 20 20 20 20 20 20  |ze */.          |
00000820  64 72 61 77 5f 62 62 6f  78 74 79 70 20 62 62 6f  |draw_bboxtyp bbo|
00000830  78 3b 20 20 20 20 20 20  2f 2a 20 42 6f 75 6e 64  |x;      /* Bound|
00000840  69 6e 67 20 62 6f 78 20  2a 2f 0a 20 20 7d 3b 0a  |ing box */.  };.|
00000850  0a 0a 0a 53 61 76 65 64  20 73 65 74 74 69 6e 67  |...Saved setting|
00000860  73 0a 0a 53 65 74 74 69  6e 67 73 2c 20 20 73 74  |s..Settings,  st|
00000870  79 6c 65 73 2c 20 6c 61  79 65 72 20 61 6e 64 20  |yles, layer and |
00000880  64 61 73 68 20 70 61 74  74 65 72 6e 20 69 6e 66  |dash pattern inf|
00000890  6f 72 6d 61 74 69 6f 6e  20 69 73 20 73 61 76 65  |ormation is save|
000008a0  64 20 69 6e 20 61 20 6e  75 6d 62 65 72 20 0a 6f  |d in a number .o|
000008b0  66 20 6f 62 6a 65 63 74  73 20 77 68 69 63 68 20  |f objects which |
000008c0  61 72 65 20 64 65 73 63  72 69 62 65 64 20 62 79  |are described by|
000008d0  20 74 68 65 20 66 6f 6c  6c 6f 77 69 6e 67 20 73  | the following s|
000008e0  74 72 75 63 74 75 72 65  3a 0a 0a 20 20 73 74 72  |tructure:..  str|
000008f0  75 63 74 20 64 72 61 77  5f 73 65 74 73 74 72 68  |uct draw_setstrh|
00000900  64 72 20 20 20 20 20 20  20 20 20 20 20 2f 2a 20  |dr           /* |
00000910  53 61 76 65 64 20 73 65  74 74 69 6e 67 73 20 6f  |Saved settings o|
00000920  62 6a 65 63 74 20 68 65  61 64 65 72 20 2a 2f 0a  |bject header */.|
00000930  20 20 7b 0a 20 20 20 20  20 20 20 20 20 20 64 72  |  {.          dr|
00000940  61 77 5f 65 78 74 61 67  20 74 3b 20 20 20 20 20  |aw_extag t;     |
00000950  20 20 20 20 20 20 2f 2a  20 45 78 74 65 6e 64 65  |      /* Extende|
00000960  64 20 74 61 67 20 2a 2f  0a 20 20 20 20 20 20 20  |d tag */.       |
00000970  20 20 20 64 72 61 77 5f  73 69 7a 65 74 79 70 20  |   draw_sizetyp |
00000980  73 69 7a 65 3b 20 20 20  20 20 20 2f 2a 20 4f 62  |size;      /* Ob|
00000990  6a 65 63 74 20 73 69 7a  65 20 2a 2f 0a 20 20 20  |ject size */.   |
000009a0  20 20 20 20 20 20 20 64  72 61 77 5f 62 62 6f 78  |       draw_bbox|
000009b0  74 79 70 20 62 62 6f 78  3b 20 20 20 20 20 20 2f  |typ bbox;      /|
000009c0  2a 20 42 6f 75 6e 64 69  6e 67 20 62 6f 78 20 2a  |* Bounding box *|
000009d0  2f 0a 20 20 20 20 20 20  20 20 20 20 69 6e 74 20  |/.          int |
000009e0  76 65 72 73 69 6f 6e 3b  20 20 20 20 20 20 20 20  |version;        |
000009f0  20 20 20 20 2f 2a 20 53  74 72 75 63 74 75 72 65  |    /* Structure|
00000a00  20 76 65 72 73 69 6f 6e  20 2a 2f 0a 20 20 20 20  | version */.    |
00000a10  20 20 20 20 20 20 69 6e  74 20 63 6f 6e 74 65 6e  |      int conten|
00000a20  74 73 3b 20 20 20 20 20  20 20 20 20 20 20 2f 2a  |ts;           /*|
00000a30  20 57 68 61 74 20 74 68  69 73 20 63 6f 6e 74 61  | What this conta|
00000a40  69 6e 73 20 2a 2f 0a 20  20 7d 3b 0a 0a 54 68 65  |ins */.  };..The|
00000a50  20 20 73 65 74 74 69 6e  67 73 20 20 73 74 72 75  |  settings  stru|
00000a60  63 74 75 72 65 20 76 65  72 73 69 6f 6e 20 66 69  |cture version fi|
00000a70  65 6c 64 20 69 73 20 75  73 65 64 20 74 6f 20 64  |eld is used to d|
00000a80  65 74 65 63 74 20 20 69  6e 63 6f 6d 70 61 74 69  |etect  incompati|
00000a90  62 6c 65 20 20 6f 72 20  0a 6f 75 74 2d 6f 66 2d  |ble  or .out-of-|
00000aa0  64 61 74 65 20 73 65 74  74 69 6e 67 73 3b 20 20  |date settings;  |
00000ab0  69 74 20 69 73 20 63 75  72 72 65 6e 74 6c 79 20  |it is currently |
00000ac0  34 2e 0a 0a 54 68 65 20  63 6f 6e 74 65 6e 74 73  |4...The contents|
00000ad0  20 66 69 65 6c 64 20 69  6e 64 69 63 61 74 65 73  | field indicates|
00000ae0  20 77 68 61 74 20 69 73  20 73 74 6f 72 65 64 20  | what is stored |
00000af0  69 6e 20 74 68 69 73 20  73 74 72 75 63 74 75 72  |in this structur|
00000b00  65 2e 20 20 20 54 68 65  20 74 79 70 65 73 20 0a  |e.   The types .|
00000b10  63 75 72 72 65 6e 74 6c  79 20 64 65 66 69 6e 65  |currently define|
00000b20  64 20 61 72 65 3a 0a 0a  20 20 23 64 65 66 69 6e  |d are:..  #defin|
00000b30  65 20 73 65 74 5f 55 53  45 52 20 20 20 20 20 20  |e set_USER      |
00000b40  20 20 20 20 20 31 20 20  20 20 2f 2a 20 47 65 6e  |     1    /* Gen|
00000b50  65 72 61 6c 20 75 73 65  72 20 73 65 74 74 69 6e  |eral user settin|
00000b60  67 73 20 2a 2f 0a 20 20  23 64 65 66 69 6e 65 20  |gs */.  #define |
00000b70  73 65 74 5f 54 45 58 54  53 54 59 4c 45 20 20 20  |set_TEXTSTYLE   |
00000b80  20 20 20 32 20 20 20 20  2f 2a 20 44 65 66 61 75  |   2    /* Defau|
00000b90  6c 74 20 74 65 78 74 20  73 74 79 6c 65 20 2a 2f  |lt text style */|
00000ba0  0a 20 20 23 64 65 66 69  6e 65 20 73 65 74 5f 50  |.  #define set_P|
00000bb0  41 54 48 53 54 59 4c 45  20 20 20 20 20 20 33 20  |ATHSTYLE      3 |
00000bc0  20 20 20 2f 2a 20 44 65  66 61 75 6c 74 20 70 61  |   /* Default pa|
00000bd0  74 68 20 73 74 79 6c 65  20 20 2a 2f 0a 20 20 23  |th style  */.  #|
00000be0  64 65 66 69 6e 65 20 73  65 74 5f 45 58 54 52 41  |define set_EXTRA|
00000bf0  53 20 20 20 20 20 20 20  20 20 34 20 20 20 20 2f  |S         4    /|
00000c00  2a 20 4c 61 79 65 72 73  20 61 6e 64 20 64 61 73  |* Layers and das|
00000c10  68 20 70 61 74 74 65 72  6e 73 20 2a 2f 0a 20 20  |h patterns */.  |
00000c20  23 64 65 66 69 6e 65 20  73 65 74 5f 45 58 50 41  |#define set_EXPA|
00000c30  4e 44 20 20 20 20 20 20  20 20 20 35 20 20 20 20  |ND         5    |
00000c40  2f 2a 20 46 6f 72 20 66  75 74 75 72 65 20 65 78  |/* For future ex|
00000c50  70 61 6e 73 69 6f 6e 20  2a 2f 0a 0a 54 68 65 20  |pansion */..The |
00000c60  64 61 74 61 20 69 6d 6d  65 64 69 61 74 65 6c 79  |data immediately|
00000c70  20 66 6f 6c 6c 6f 77 73  20 74 68 69 73 20 73 74  | follows this st|
00000c80  72 75 63 74 75 72 65 2e  20 20 53 69 6e 63 65 20  |ructure.  Since |
00000c90  74 68 65 20 66 6f 72 6d  61 74 20 61 6e 64 20 63  |the format and c|
00000ca0  6f 6e 74 65 6e 74 20 0a  69 73 20 73 75 62 6a 65  |ontent .is subje|
00000cb0  63 74 20 74 6f 20 63 68  61 6e 67 65 2c 20 20 64  |ct to change,  d|
00000cc0  65 74 61 69 6c 73 20 61  72 65 20 6e 6f 74 20 69  |etails are not i|
00000cd0  6e 63 6c 75 64 65 64 20  68 65 72 65 2e 20 20 54  |ncluded here.  T|
00000ce0  68 65 20 6f 62 6a 65 63  74 20 74 79 70 65 20 66  |he object type f|
00000cf0  6f 72 20 0a 61 20 73 61  76 65 64 20 73 65 74 74  |or .a saved sett|
00000d00  69 6e 67 73 20 6f 62 6a  65 63 74 20 69 73 20 31  |ings object is 1|
00000d10  30 31 2e 0a 0a 0a 0a 4c  69 62 72 61 72 79 20 66  |01.....Library f|
00000d20  69 6c 65 0a 0a 54 68 65  20 20 6c 69 62 72 61 72  |ile..The  librar|
00000d30  79 20 20 66 69 6c 65 20  66 6f 72 6d 61 74 20 69  |y  file format i|
00000d40  73 20 76 65 72 79 20 73  69 6d 69 6c 61 72 20 74  |s very similar t|
00000d50  6f 20 61 20 73 74 61 6e  64 61 72 64 20 20 44 72  |o a standard  Dr|
00000d60  61 77 20 20 66 69 6c 65  2e 20 20 20 54 68 65 20  |aw  file.   The |
00000d70  0a 68 65 61 64 65 72 20  20 69 73 20 69 64 65 6e  |.header  is iden|
00000d80  74 69 63 61 6c 2c 20 20  65 78 63 65 70 74 20 74  |tical,  except t|
00000d90  68 61 74 20 74 68 65 20  63 72 65 61 74 6f 72 20  |hat the creator |
00000da0  73 74 72 69 6e 67 20 69  73 20 22 4c 69 62 72 61  |string is "Libra|
00000db0  72 79 22 20 20 72 61 74  68 65 72 20 0a 74 68 61  |ry"  rather .tha|
00000dc0  6e 20 22 44 72 61 77 22  2e 20 20 54 68 65 20 6d  |n "Draw".  The m|
00000dd0  61 6a 6f 72 20 76 65 72  73 69 6f 6e 20 6e 75 6d  |ajor version num|
00000de0  62 65 72 20 69 73 20 32  2e 0a 0a 54 68 65 20 20  |ber is 2...The  |
00000df0  72 65 73 74 20 20 6f 66  20 20 74 68 65 20 66 69  |rest  of  the fi|
00000e00  6c 65 20 63 6f 6e 74 61  69 6e 73 20 73 74 61 6e  |le contains stan|
00000e10  64 61 72 64 20 44 72 61  77 20 6f 62 6a 65 63 74  |dard Draw object|
00000e20  73 20 20 64 65 73 63 72  69 62 65 64 20 20 62 79  |s  described  by|
00000e30  20 20 74 68 65 20 0a 66  6f 6c 6c 6f 77 69 6e 67  |  the .following|
00000e40  20 73 74 72 75 63 74 75  72 65 73 3a 0a 0a 20 20  | structures:..  |
00000e50  73 74 72 75 63 74 20 64  72 61 77 5f 6c 69 62 73  |struct draw_libs|
00000e60  74 72 68 64 72 20 20 20  20 20 20 20 20 20 20 20  |trhdr           |
00000e70  2f 2a 20 4c 69 62 72 61  72 79 20 6f 62 6a 65 63  |/* Library objec|
00000e80  74 20 68 65 61 64 65 72  20 2a 2f 0a 20 20 7b 0a  |t header */.  {.|
00000e90  20 20 20 20 20 20 20 20  20 20 64 72 61 77 5f 65  |          draw_e|
00000ea0  78 74 61 67 20 74 61 67  3b 20 20 20 20 20 20 20  |xtag tag;       |
00000eb0  20 20 2f 2a 20 4f 62 6a  65 63 74 20 74 61 67 20  |  /* Object tag |
00000ec0  2a 2f 0a 20 20 20 20 20  20 20 20 20 20 64 72 61  |*/.          dra|
00000ed0  77 5f 73 69 7a 65 74 79  70 20 73 69 7a 65 3b 20  |w_sizetyp size; |
00000ee0  20 20 20 20 20 2f 2a 20  53 69 7a 65 20 28 69 6e  |     /* Size (in|
00000ef0  63 6c 75 64 69 6e 67 20  63 6f 6e 74 61 69 6e 65  |cluding containe|
00000f00  64 20 6f 62 6a 65 63 74  29 20 2a 2f 0a 20 20 20  |d object) */.   |
00000f10  20 20 20 20 20 20 20 64  72 61 77 5f 62 62 6f 78  |       draw_bbox|
00000f20  74 79 70 20 62 62 6f 78  3b 20 20 20 20 20 20 2f  |typ bbox;      /|
00000f30  2a 20 43 6f 70 79 20 6f  66 20 6f 62 6a 65 63 74  |* Copy of object|
00000f40  27 73 20 62 6f 75 6e 64  69 6e 67 20 62 6f 78 20  |'s bounding box |
00000f50  2a 2f 0a 20 20 20 20 20  20 20 20 20 20 63 68 61  |*/.          cha|
00000f60  72 20 6e 61 6d 65 5b 32  31 5d 3b 20 20 20 20 20  |r name[21];     |
00000f70  20 20 20 20 20 2f 2a 20  4f 62 6a 65 63 74 20 6e  |     /* Object n|
00000f80  61 6d 65 20 2a 2f 0a 20  20 20 20 20 20 20 20 20  |ame */.         |
00000f90  20 74 69 6d 65 5f 74 20  74 69 6d 65 3b 20 20 20  | time_t time;   |
00000fa0  20 20 20 20 20 20 20 20  20 2f 2a 20 54 69 6d 65  |         /* Time|
00000fb0  20 6c 61 73 74 20 75 70  64 61 74 65 64 20 2a 2f  | last updated */|
00000fc0  0a 20 20 7d 3b 0a 0a 54  68 65 20 20 69 6e 63 6c  |.  };..The  incl|
00000fd0  75 64 65 64 20 20 6f 62  6a 65 63 74 20 20 28 77  |uded  object  (w|
00000fe0  69 74 68 20 20 69 74 73  20 20 6f 77 6e 20 20 74  |ith  its  own  t|
00000ff0  61 67 20 20 61 6e 64 20  20 62 6f 75 6e 64 69 6e  |ag  and  boundin|
00001000  67 20 20 62 6f 78 29 20  20 20 66 6f 6c 6c 6f 77  |g  box)   follow|
00001010  73 20 0a 69 6d 6d 65 64  69 61 74 65 6c 79 20 61  |s .immediately a|
00001020  66 74 65 72 20 74 68 65  20 68 65 61 64 65 72 3a  |fter the header:|
00001030  0a 0a 20 20 73 74 72 75  63 74 20 64 72 61 77 5f  |..  struct draw_|
00001040  6c 69 62 73 74 72 20 20  20 20 20 20 20 20 20 20  |libstr          |
00001050  20 20 20 20 2f 2a 20 4c  69 62 72 61 72 79 20 6f  |    /* Library o|
00001060  62 6a 65 63 74 20 2a 2f  0a 20 20 7b 0a 20 20 20  |bject */.  {.   |
00001070  20 20 20 20 20 20 20 64  72 61 77 5f 65 78 74 61  |       draw_exta|
00001080  67 20 74 61 67 3b 20 20  20 20 20 20 20 20 20 2f  |g tag;         /|
00001090  2a 20 4f 62 6a 65 63 74  20 74 61 67 20 2a 2f 0a  |* Object tag */.|
000010a0  20 20 20 20 20 20 20 20  20 20 64 72 61 77 5f 73  |          draw_s|
000010b0  69 7a 65 74 79 70 20 73  69 7a 65 3b 20 20 20 20  |izetyp size;    |
000010c0  20 20 2f 2a 20 53 69 7a  65 20 28 69 6e 63 6c 75  |  /* Size (inclu|
000010d0  64 69 6e 67 20 63 6f 6e  74 61 69 6e 65 64 20 6f  |ding contained o|
000010e0  62 6a 65 63 74 29 20 2a  2f 0a 20 20 20 20 20 20  |bject) */.      |
000010f0  20 20 20 20 64 72 61 77  5f 62 62 6f 78 74 79 70  |    draw_bboxtyp|
00001100  20 62 62 6f 78 3b 20 20  20 20 20 20 2f 2a 20 43  | bbox;      /* C|
00001110  6f 70 79 20 6f 66 20 6f  62 6a 65 63 74 27 73 20  |opy of object's |
00001120  62 6f 75 6e 64 69 6e 67  20 62 6f 78 20 2a 2f 0a  |bounding box */.|
00001130  20 20 20 20 20 20 20 20  20 20 63 68 61 72 20 6e  |          char n|
00001140  61 6d 65 5b 32 31 5d 3b  20 20 20 20 20 20 20 20  |ame[21];        |
00001150  20 20 2f 2a 20 4f 62 6a  65 63 74 20 6e 61 6d 65  |  /* Object name|
00001160  20 2a 2f 0a 20 20 20 20  20 20 20 20 20 20 74 69  | */.          ti|
00001170  6d 65 5f 74 20 74 69 6d  65 3b 20 20 20 20 20 20  |me_t time;      |
00001180  20 20 20 20 20 20 2f 2a  20 54 69 6d 65 20 6c 61  |      /* Time la|
00001190  73 74 20 75 70 64 61 74  65 64 20 2a 2f 0a 20 20  |st updated */.  |
000011a0  20 20 20 20 20 20 20 20  64 72 61 77 5f 6f 62 6a  |        draw_obj|
000011b0  68 64 72 20 6f 62 6a 65  63 74 3b 20 20 20 20 20  |hdr object;     |
000011c0  2f 2a 20 4f 62 6a 65 63  74 20 64 61 74 61 20 2a  |/* Object data *|
000011d0  2f 0a 20 20 7d 3b 0a 0a  54 68 65 20 74 79 70 65  |/.  };..The type|
000011e0  20 74 69 6d 65 5f 74 20  69 73 20 64 65 66 69 6e  | time_t is defin|
000011f0  65 64 20 69 6e 20 74 68  65 20 68 65 61 64 65 72  |ed in the header|
00001200  20 66 69 6c 65 20 74 69  6d 65 2e 68 2e 20 20 54  | file time.h.  T|
00001210  68 65 20 6f 62 6a 65 63  74 20 74 79 70 65 20 66  |he object type f|
00001220  6f 72 20 0a 61 20 6c 69  62 72 61 72 79 20 6f 62  |or .a library ob|
00001230  6a 65 63 74 20 69 73 20  31 30 30 2e 0a 0a        |ject is 100...|
0000123e
!DrawPlus/tech.m0
!DrawPlus/tech.m1
!DrawPlus/tech.m2
!DrawPlus/tech.m4
!DrawPlus/tech.m5