Handbook
Glossary
view-dim ( view -- dim )
Cocoa bridge
ยป
Cocoa view utilities
Prev:
<GLView> ( class dim pixel-format -- view )
Next:
mouse-location ( view event -- loc )
Vocabulary
cocoa
.
views
Inputs
view
an
NSView
Outputs
dim
a pair of real numbers
Word description
Outputs the dimensions of the given view.
Definition
USING:
arrays
cocoa.messages
cocoa.runtime
cocoa.types
core-graphics.types
kernel
math
;
IN:
cocoa.views
:
view-dim
( view -- dim )
{
NSRect
{
id
SEL
}
}
"bounds"
send
[
CGRect-w
>fixnum
]
[
CGRect-h
>fixnum
]
bi
2array
;