Handbook
Glossary
<GLView> ( class dim pixel-format -- view )
Cocoa bridge
ยป
Cocoa view utilities
Next:
view-dim ( view -- dim )
Vocabulary
cocoa
.
views
Inputs
class
an subclass of
NSOpenGLView
dim
a pair of real numbers
pixel-format
a
pixel-format
Outputs
view
a new
NSOpenGLView
Word description
Creates a new instance of the specified class, giving it the specified pixel format and size.
Definition
USING:
accessors
alien.c-types
cocoa.messages
cocoa.runtime
cocoa.types
core-graphics.types
kernel
sequences
;
IN:
cocoa.views
:
<GLView>
( class dim pixel-format -- view )
[
{
id
{
id
SEL
}
}
"alloc"
send
]
[
[
0 0
]
dip
first2
<CGRect>
]
[
handle>>
]
tri*
{
id
{
id
SEL
NSRect
id
}
}
"initWithFrame:pixelFormat:"
send
dup
1
{
void
{
id
SEL
char
}
}
"setPostsBoundsChangedNotifications:"
send
dup
1
{
void
{
id
SEL
char
}
}
"setPostsFrameChangedNotifications:"
send
;