]> gitweb.factorcode.org Git - factor.git/blob - extra/cocoa/types/types-docs.factor
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / extra / cocoa / types / types-docs.factor
1 USING: math help.markup help.syntax ;
2 IN: cocoa.types
3
4 HELP: <NSRect>
5 { $values { "x" real } { "y" real } { "w" real } { "h" real } { "rect" "an " { $snippet "NSRect" } } }
6 { $description "Allocates a new " { $snippet "NSRect" } " in the Factor heap." } ;
7
8 HELP: <NSPoint>
9 { $values { "x" real } { "y" real } { "point" "an " { $snippet "NSPoint" } } }
10 { $description "Allocates a new " { $snippet "NSPoint" } " in the Factor heap." } ;
11
12 HELP: <NSSize>
13 { $values { "w" real } { "h" real } { "size" "an " { $snippet "NSSize" } } }
14 { $description "Allocates a new " { $snippet "NSSize" } " in the Factor heap." } ;
15
16 ARTICLE: "cocoa-types" "Cocoa types"
17 "The Cocoa binding defines some common C structs:"
18 { $code
19     "NSRect"
20     "NSPoint"
21     "NSSize"
22 }
23 "Some words for working with the above:"
24 { $subsection <NSRect> }
25 { $subsection <NSPoint> }
26 { $subsection <NSSize> } ;
27
28 IN: cocoa.types
29 ABOUT: "cocoa-types"