summaryrefslogtreecommitdiffstats
path: root/tkblt/tests/marker.tcl
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2017-01-04 19:54:17 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2017-01-04 19:54:17 (GMT)
commitf654b92094d21d5b3d197edc505799f1b9cd3c44 (patch)
tree5a58d68e4e2e2b19d9ca7fa2be2ff634e57e3a8c /tkblt/tests/marker.tcl
parentdc750f3e329a241f24831da739509d90c996ec20 (diff)
parentba1a25c6143d0f853d1d6225611d0c4222f9cfec (diff)
downloadblt-f654b92094d21d5b3d197edc505799f1b9cd3c44.zip
blt-f654b92094d21d5b3d197edc505799f1b9cd3c44.tar.gz
blt-f654b92094d21d5b3d197edc505799f1b9cd3c44.tar.bz2
Merge commit 'ba1a25c6143d0f853d1d6225611d0c4222f9cfec' as 'tkblt'
Diffstat (limited to 'tkblt/tests/marker.tcl')
-rw-r--r--tkblt/tests/marker.tcl33
1 files changed, 33 insertions, 0 deletions
diff --git a/tkblt/tests/marker.tcl b/tkblt/tests/marker.tcl
new file mode 100644
index 0000000..8a09a43
--- /dev/null
+++ b/tkblt/tests/marker.tcl
@@ -0,0 +1,33 @@
+source base.tcl
+
+set w .line
+set graph [bltLineGraph $w]
+
+set mm [$graph marker create line tt -element data1 \
+ -coords {1 50 1.5 100 1 150} -linewidth 5 -bind {aa}]
+set nn [$graph marker create line ss -element data1 \
+ -coords {1 150 .5 100 1 50} -linewidth 1 \
+ -outline green -dashes 4]
+
+puts stderr "Testing Marker..."
+
+#bltCmd $graph marker bind aa <Button-1> [list puts "%x %y"]
+bltCmd $graph marker cget $mm -cap
+bltCmd $graph marker configure $mm
+bltCmd $graph marker configure $mm -cap
+set foo [$graph marker create line]
+bltCmd $graph marker delete $foo
+set foo [$graph marker create line foo]
+bltCmd $graph marker delete $foo
+bltCmd $graph marker exists $mm
+bltCmd $graph marker find enclosed 0 0 2 200
+bltCmd $graph marker lower $mm
+bltCmd $graph marker lower $mm $nn
+bltCmd $graph marker names
+bltCmd $graph marker raise $mm
+bltCmd $graph marker raise $mm $nn
+bltCmd $graph marker type $mm
+
+puts stderr "done"
+bltPlotDestroy $w
+