]> gitweb.factorcode.org Git - factor.git/blob - basis/ui/gadgets/menus/menus-docs.factor
505eb2231f9f6724f192437bdce21d7120bd8402
[factor.git] / basis / ui / gadgets / menus / menus-docs.factor
1 USING: ui.gadgets help.markup help.syntax ui.gadgets.worlds
2 kernel ;
3 IN: ui.gadgets.menus
4
5 HELP: <commands-menu>
6 { $values { "hook" "a quotation with stack effect " { $snippet "( button -- )" } } { "target" object } { "commands" "a sequence of commands" } { "gadget" "a new " { $link gadget } } }
7 { $description "Creates a popup menu of commands which are to be invoked on " { $snippet "target" } ". The " { $snippet "hook" } " quotation is run before a command is invoked." } ;
8
9 HELP: show-menu
10 { $values { "gadget" gadget } { "owner" gadget } }
11 { $description "Displays a popup menu in the " { $link world } " containing " { $snippet "owner" } " at the current mouse location." } ;