From d193aad524d74c7a1019fa07a8b21c64db4c9a87 Mon Sep 17 00:00:00 2001 From: Eduardo Cavazos Date: Mon, 22 Dec 2008 15:43:24 -0600 Subject: [PATCH] Demo easy-help in the 'ui.gadgets.slate' vocabulary --- extra/ui/gadgets/slate/slate.factor | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/extra/ui/gadgets/slate/slate.factor b/extra/ui/gadgets/slate/slate.factor index 0505586b53..af2dfcccc2 100644 --- a/extra/ui/gadgets/slate/slate.factor +++ b/extra/ui/gadgets/slate/slate.factor @@ -1,8 +1,35 @@ -USING: kernel namespaces opengl ui.render ui.gadgets accessors ; +USING: kernel namespaces opengl ui.render ui.gadgets accessors + help.syntax + easy-help ; IN: ui.gadgets.slate +! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +ARTICLE: "slate" "Slate Gadget" + +Summary: + + A gadget with an 'action' slot which should be set to a callable. .. + +Example: + + ! Load the right vocabs for the examples + + USING: processing.shapes ui.gadgets.slate ; .. + +Example: + + [ { { 10 10 } { 50 30 } { 10 50 } } polygon fill-mode ] + gadget. .. + +; + +ABOUT: "slate" + +! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + TUPLE: slate < gadget action pdim graft ungraft ; ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -- 2.34.1