Handbook
Glossary
create-pixmap ( dim visual -- pixmap )
Vocabulary
x11
.
windows
Inputs
dim
an
object
visual
an
object
Outputs
pixmap
an
object
Definition
USING:
kernel
namespaces
sequences
x11
x11.xlib
;
IN:
x11.windows
:
create-pixmap
( dim visual -- pixmap )
[
[
{
0 0
}
swap
]
dip
create-window
]
[
drop
[
dpy
get
]
2dip
first2
24
XCreatePixmap
[
"Failed to create offscreen pixmap"
throw
]
unless*
]
2bi
;