aboutsummaryrefslogtreecommitdiff
path: root/extensions/xgui/doc/02_behaviors.pd
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/xgui/doc/02_behaviors.pd')
-rw-r--r--extensions/xgui/doc/02_behaviors.pd49
1 files changed, 49 insertions, 0 deletions
diff --git a/extensions/xgui/doc/02_behaviors.pd b/extensions/xgui/doc/02_behaviors.pd
new file mode 100644
index 00000000..8c4367ab
--- /dev/null
+++ b/extensions/xgui/doc/02_behaviors.pd
@@ -0,0 +1,49 @@
+#N canvas 418 -8 563 706 10;
+#X obj 22 628 light_over;
+#X text 404 671 dh20020212;
+#X text 7 30 This example shows the diferent properties oand methodes
+of a seg object;
+#X floatatom 87 651 1 0 1;
+#X obj 22 588 spigot;
+#X floatatom 59 564 1 0 1;
+#X msg 27 166 show;
+#X msg 67 166 hide;
+#X msg 27 89 show;
+#X msg 67 89 hide;
+#X text 9 9 Patch "pdx_connect.pd" must be loaded and connected;
+#X text 244 88 First create the canvas.;
+#X text 246 108 uses the show method;
+#X text 255 171 then you can draw a segment into it.;
+#X text 20 315 You'll receive here all the event from the seg windows
+;
+#X msg 111 90 size 500 500;
+#X obj 24 270 alias a_seg;
+#X obj 25 292 print a_seg;
+#X obj 24 384 alias a_seg;
+#X obj 24 474 alias a_seg;
+#X text 50 404 a_seg detect a move;
+#X text 49 451 and send it to himselve;
+#X text 116 474 this way you can drag and drop the seg;
+#X msg 152 170 width 20;
+#X obj 22 537 alias a_seg;
+#X obj 22 675 alias a_seg;
+#X text 81 567 breaking the link is killing the behavior;
+#X text 61 334 Try to move the segment with your mouse !;
+#X obj 24 427 dragable;
+#X text 101 427 dragable is a behaviors;
+#X obj 27 120 canvas */my_canvas;
+#X obj 26 208 seg a_seg */my_canvas/a_seg;
+#X connect 0 0 25 0;
+#X connect 0 1 3 0;
+#X connect 4 0 0 0;
+#X connect 5 0 4 1;
+#X connect 6 0 31 0;
+#X connect 7 0 31 0;
+#X connect 8 0 30 0;
+#X connect 9 0 30 0;
+#X connect 15 0 30 0;
+#X connect 16 0 17 0;
+#X connect 18 0 28 0;
+#X connect 23 0 31 0;
+#X connect 24 0 4 0;
+#X connect 28 0 19 0;