The format field of an image instantiator should be a symbol denoting a valid format. Which formats are valid will depend on the features (such as image decoding libraries) available, on platform support, and on the locale.
This function returns non-
nilif format is a valid image instantiator format.If locale is non-
nilthen the format is checked in that locale. If locale isnilthe current console is used.Note that the return value for many formats listed above depends on whether SXEmacs was compiled with support for that format.
This function returns a list of valid image-instantiator formats.
Here is a table of image-instantiator formats, giving the keywords that are usable with each, and the kinds of instances that may result.
nothingnothing.
stringtext, although support for instancing as mono-pixmap
should be added. The valid keyword is :data. The value should
be a string, and it is interpreted as a string of characters.
formatted-string:data.
The value should be a string, and it is interpreted as a string of
characters containing format sequences.
Not currently implemented.
xbmIf used in a buffer glyph, icon glyph, or face background pixmap, it
will be instantiated as mono-pixmap unless the :foreground
or :background keywords are present. In the latter case it will
be instantiated as color-pixmap with the two specified colors.
(Probably if :foreground or :background is omitted, it
defaults to black or white respectively.) If used in a pointer glyph,
it will be instantiated as an pointer.
The valid keywords and their values are
:data:file:mask-data:data property.
:mask-file:data property.
:foreground:backgroundmake-color-instance.
:hotspot-x:hotspot-yxpmCan be instanced as color-pixmap, mono-pixmap, or
pointer.
XPM is an add-on library for X that was designed to rectify the shortcomings of the XBM format. Many icons and labels used in the XEmacs GUI are still distributed in XPM format (although we are moving to standardize on the PNG format). It is therefore highly desirable that XPM be available in your SXEmacs.
Most implementations of X include the XPM library as a standard part. If your vendor does not, it is highly recommended that you download it and install it. You can get it from the XEmacs FTP site and mirrors, as well as from most sites that distribute X11.
The valid keywords and their values are
:data:file:hotspot-x:hotspot-y:color-symbolsxpm-color-symbols are
used to generate the alist.
xfaceWill be instanced as mono-pixmap, color-pixmap, or
pointer, depending on the target instance type and the presence
of color keywords.
The valid keywords and their values are
:data:file:mask-data:data property.
:mask-file:data property.
:foreground:backgroundmake-color-instance.
:hotspot-x:hotspot-ygifjpegpngtiffNote that PNG is the standard format for images distributed with XEmacs, so it is highly recommended that PNG support be built in.
All of these instantiators will be instanced as color-pixmap.
The valid keywords and their values are
:data:filecursor-fontpointer. This
should probably be fixed.
The valid keyword is :data. Its value should be a string
containing one of the standard cursor-font names, such as ‘watch’
or ‘right_ptr’ under X. More specifically, in the X Window System
it may be any of the standard cursor names from appendix B of the Xlib
manual, provided in the file <X11/cursorfont.h> by most
distributions, minus the ‘XC_’ prefix.
Other window systems may have different lists.
fontpointer. This should probably be fixed.
subwindowsubwindow. Not implemented.
buttonwidget.
combo-boxwidget.
edit-fieldwidget.
labelwidget.
layoutwidget.
native-layoutwidget.
progress-gaugewidget.
tab-controlwidget.
tree-viewwidget.
scrollbarwidget.
autodetectpointer
is one of the allowable image-instance types and the string names a
valid cursor-font name, the image will be created as a pointer.
Otherwise, the image will be displayed as text. If no X support exists,
the image will always be displayed as text.
inheritmono-pixmap.
There are two convenience variables for use with the XBM and XPM image formats.
This variable holds definitions of logical color-names used when reading XPM files. Elements of this list should be of the form
(color-name form-to-evaluate). The color-name should be a string, which is the name of the color to define; the form-to-evaluate should evaluate to a color specifier object, or a string to be passed tomake-color-instance(see Colors). If a loaded XPM file references a symbolic color called color-name, it will display as the computed color instead.The default value of this variable defines the logical color names ‘"foreground"’ and ‘"background"’ to be the colors of the
defaultface.
A list of the directories in which X bitmap files may be found. If
nil, this is initialized from the ‘"*bitmapFilePath"’ resource. This is used by themake-image-instancefunction (however, note that if the environment variable ‘XBMLANGPATH’ is set, it is consulted first).