#N canvas 378 82 606 389 12;
#N canvas 307 220 491 176 help-template1 0;
#X obj 94 26 struct struct-1 float x float y text z symbol dog array weasel struct-2 20, f 42;
#X text 55 77 In this example \, the "struct-1" structure is defined in which "x" and "y" are "floats" \, i.e. \, numbers \, but "z" is a text \, "dog" is a symbol and "weasel" is an array of objects of structure "struct-2" \, initially with 20 elements., f 56;
#X restore 326 191 pd help-template1;
#N canvas 570 245 463 166 help-template2 0;
#X obj 120 26 struct struct-2 float y;
#X text 26 74 Here is one which specifies only the floating point "y". It's used for the elements of the array shown in the other template.;
#X restore 326 217 pd help-template2;
#X obj 24 15 struct;
#X text 23 322 see also:;
#X obj 97 323 drawpolygon;
#X obj 188 323 drawtext;
#X obj 258 323 plot;
#X obj 6 47 cnv 1 590 1 empty empty empty 8 12 0 13 #000000 #000000 0;
#X obj 6 303 cnv 1 590 1 empty empty empty 8 12 0 13 #000000 #000000 0;
#N canvas 550 145 625 344 reference 0;
#X obj 8 52 cnv 5 600 5 empty empty INLET: 8 18 0 13 #202020 #000000 0;
#X obj 8 164 cnv 2 600 2 empty empty OUTLET: 8 12 0 13 #202020 #000000 0;
#X obj 8 237 cnv 2 600 2 empty empty ARGUMENTS: 8 12 0 13 #202020 #000000 0;
#X obj 7 320 cnv 5 600 5 empty empty empty 8 18 0 13 #202020 #000000 0;
#X text 87 261 1) list -;
#X text 84 177 anything -;
#X text 167 176 messages notifying when there are interactions with objects of the structure ('select' \, 'deselect' \, 'click' \, 'displace' and 'change').;
#X obj 29 16 struct x;
#X text 98 17 - define a data structure template.;
#X text 161 261 template name plus types and names of given fields. (Array fields also need the array's template name. They may also have a third float argument to initialize array size).;
#X text 41 84 add <window> [name value]... -;
#X text 269 82 add a scalar for this template to the named window (prefixed with 'pd' as in 'pd-data') \, optionally initializing float or symbol fields as in 'x 10 y 50'., f 44;
#X restore 491 16 pd reference;
#X text 426 16 click =>;
#X obj 299 323 text;
#X text 97 204 open subpatch for examples -->;
#X obj 197 350 get;
#X obj 229 350 set;
#X obj 76 350 getsize;
#X obj 137 350 setsize;
#X obj 314 350 element;
#X obj 262 350 scalar;
#X obj 15 350 pointer;
#X text 83 16 - define a data structure template;
#X text 52 254 NOTE: In early days \, the [template] object was used instead of [struct] \, but it is now deprecated and you should use [struct] instead., f 72;
#X text 48 64 A [struct] object is used to define a Data Structure template and its fields. There should be one [struct] object in each Pd window you are using as a data structure template. The arguments specify the types and names of the fields. The data types are: "float" \, "symbol" \, "text" and "array". Each type needs a field name. Array fields take an extra argument that specifies the template that the array elements should belong to \, and an optional float arqument to initialize the number of elements., f 71;
#X text 389 321 updated for Pd version 0.56;
