]> gitweb.factorcode.org Git - factor.git/commitdiff
ui-docs: add help for resize-window
authorAlexander Iljin <ajsoft@yandex.ru>
Tue, 6 Mar 2018 00:11:00 +0000 (01:11 +0100)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 6 Mar 2018 00:45:35 +0000 (16:45 -0800)
basis/ui/ui-docs.factor

index 75b9cc5dbcd752fbc6a1f67c9502af6ca32874bb..148e1e0a3205052de659ab7ebb4a4cfb035ea3f7 100644 (file)
@@ -13,6 +13,10 @@ HELP: open-window
 { $values { "gadget" gadget } { "title/attributes" { "a " { $link string } " or a " { $link world-attributes } " tuple" } } }
 { $description "Opens a native window containing " { $snippet "gadget" } " with the specified attributes. If a string is provided, it is used as the window title; otherwise, the window attributes are specified in a " { $link world-attributes } " tuple." } ;
 
+HELP: resize-window
+{ $values { "world" world } { "dim" "a pair of integers: width and height" } }
+{ $description "Resize the native window so that its contents area (called the \"client area\" in Windows) has the specified dimensions." } ;
+
 HELP: set-fullscreen
 { $values { "gadget" gadget } { "?" boolean } }
 { $description "Sets and unsets fullscreen mode for the gadget's world." } ;