extra/cap: add a summary and short docs to cap vocab

factor-shell
Cat Stevens 2018-01-04 22:49:46 -05:00 committed by John Benediktsson
parent 2d084c3178
commit bf5e51b5c3
2 changed files with 16 additions and 0 deletions

15
extra/cap/cap-docs.factor Normal file
View File

@ -0,0 +1,15 @@
USING: cap help.markup help.syntax images opengl ui.gadgets.worlds ;
IN: cap
HELP: screenshot.
{ $values { "window" world } }
{ $description
"Opens a window with a screenshot of the currently active window."
} ;
HELP: screenshot
{ $values { "window" world } { "bitmap" image } }
{ $description
"Creates a bitmap image of a UI window."
}
{ $notes "If the current " { $link gl-scale-factor } " is " { $snippet "2.0" } ", then the " { $snippet "2x" } " slot in the resulting " { $link image } " will be " { $link t } "." } ;

1
extra/cap/summary.txt Normal file
View File

@ -0,0 +1 @@
Creating and displaying screenshots of Factor