]> gitweb.factorcode.org Git - factor.git/blob - basis/cocoa/views/views-docs.factor
Solution to Project Euler problem 65
[factor.git] / basis / cocoa / views / views-docs.factor
1 USING: help.syntax help.markup ui.pixel-formats ;
2 IN: cocoa.views
3
4 HELP: <GLView>
5 { $values { "class" "an subclass of " { $snippet "NSOpenGLView" } } { "dim" "a pair of real numbers" } { "pixel-format" pixel-format } { "view" "a new " { $snippet "NSOpenGLView" } } }
6 { $description "Creates a new instance of the specified class, giving it the specified pixel format and size." } ;
7
8 HELP: view-dim
9 { $values { "view" "an " { $snippet "NSView" } } { "dim" "a pair of real numbers" } }
10 { $description "Outputs the dimensions of the given view." } ;
11
12 HELP: mouse-location
13 { $values { "view" "an " { $snippet "NSView" } } { "event" "an " { $snippet "NSEvent" } } { "loc" "a pair of real numbers" } }
14 { $description "Outputs the current mouse location." } ;
15
16 ARTICLE: "cocoa-view-utils" "Cocoa view utilities"
17 { $subsection <GLView> }
18 { $subsection view-dim }
19 { $subsection mouse-location } ;
20
21 IN: cocoa.views
22 ABOUT: "cocoa-view-utils"