![]() |
|
All the Xlib functions are available to EusLisp as they are
defined by `defforeign'. On this raw interface, basic Xwindow
objects are defined as EusLisp objects. For example,
an xwindow is created by
(instance x:xwindow :create :width x :height y ...)
Graphic images of solid models can be generated in this window
by draw (simple wire frame image),
hid (hidden-line eliminated image),
render (hidden surface removal or ray-traced image), etc.
GUI programming is provided by the upper layer, EusLisp XToolKit,
which defines panels (subwindows), buttons, text-windows, sliders,
menus, scroll-bars, and so on.
The following two pictures show the filepanel for the interactive
file handling, and the eusdraw window for 2D drawing in a MacDraw
fashion.