]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/progress-bars/progress-bars-docs.factor
Progress bars for long-running operations that yield.
[factor.git] / extra / progress-bars / progress-bars-docs.factor
diff --git a/extra/progress-bars/progress-bars-docs.factor b/extra/progress-bars/progress-bars-docs.factor
new file mode 100644 (file)
index 0000000..d600e72
--- /dev/null
@@ -0,0 +1,19 @@
+! Copyright (C) 2011 Doug Coleman.
+! See http://factorcode.org/license.txt for BSD license.
+USING: help.markup help.syntax kernel math strings ;
+IN: progress-bars
+
+HELP: make-progress-bar
+{ $values
+    { "percent" "a real number between 0 and 1" } { "length" integer }
+    { "string" string }
+}
+{ $description "Makes a progress bar " { $snippet "percent" } " completed that is " { $snippet "length" } " characters long." } ;
+
+ARTICLE: "progress-bars" "Progress bars"
+"The " { $vocab-link "progress-bars" } " vocabulary implements a simple progress bar string." $nl
+"To make a generic progress bar string:"
+{ $subsections make-progress-bar }
+"The " { $vocab-link "progress-bars.models" } " vocabulary implements a word to display a progress bar that shows how much of a file has been read so far." ;
+
+ABOUT: "progress-bars"