Mercurial > hg > xemacs-beta
comparison man/lispref/glyphs.texi @ 1137:c6facab13185
[xemacs-hg @ 2002-12-03 10:35:06 by didierv]
new function `set-face-background-pixmap-file'
author | didierv |
---|---|
date | Tue, 03 Dec 2002 10:35:17 +0000 |
parents | a307f9a2021d |
children | 2ba4f06a264d |
comparison
equal
deleted
inserted
replaced
1136:14f3ffacd8be | 1137:c6facab13185 |
---|---|
224 | 224 |
225 @item | 225 @item |
226 To use a glyph as the background pixmap of a face: Note that the | 226 To use a glyph as the background pixmap of a face: Note that the |
227 background pixmap of a face is actually an image specifier -- probably | 227 background pixmap of a face is actually an image specifier -- probably |
228 the only place in XEmacs where an image specifier occurs outside of a | 228 the only place in XEmacs where an image specifier occurs outside of a |
229 glyph. Similarly to how the glyph's image specifier works, you don't | 229 glyph. Similarly to how the glyph's image specifier works, you don't |
230 create your own image specifier, but rather add specifications to the | 230 create your own image specifier, but rather add specifications to the |
231 existing one (using @code{set-face-background-pixmap}). Note that the | 231 existing one (using @code{set-face-background-pixmap-file} or |
232 image instance that is generated in order to actually display the | 232 @code{set-face-background-pixmap}). Note that the image instance that is |
233 background pixmap is of type @code{mono-pixmap}, meaning that it's a | 233 generated in order to actually display the background pixmap is of type |
234 two-color image and the foreground and background of the image get | 234 @code{mono-pixmap}, meaning that it's a two-color image and the |
235 filled in with the corresponding colors from the face. | 235 foreground and background of the image get filled in with the |
236 corresponding colors from the face. | |
236 @end itemize | 237 @end itemize |
237 | 238 |
238 It is extremely rare that you will ever have to specify a value for | 239 It is extremely rare that you will ever have to specify a value for |
239 @var{type}, which should be one of @code{buffer} (used for glyphs in an | 240 @var{type}, which should be one of @code{buffer} (used for glyphs in an |
240 extent, the modeline, the toolbar, or elsewhere in a buffer), | 241 extent, the modeline, the toolbar, or elsewhere in a buffer), |
1452 @lisp | 1453 @lisp |
1453 ;; Use this function to insert a glyph at the left edge of point in the | 1454 ;; Use this function to insert a glyph at the left edge of point in the |
1454 ;; current buffer. Any existing glyph at this location is replaced. | 1455 ;; current buffer. Any existing glyph at this location is replaced. |
1455 (defun insert-glyph (gl) | 1456 (defun insert-glyph (gl) |
1456 "Insert a glyph at the left edge of point." | 1457 "Insert a glyph at the left edge of point." |
1457 (let ( (prop 'myimage) ;; myimage is an arbitrary name, chosen | 1458 (let ( (prop 'myimage) ;; myimage is an arbitrary name, chosen |
1458 ;; to (hopefully) not conflict with any | 1459 ;; to (hopefully) not conflict with any |
1459 ;; other properties. Change it if | 1460 ;; other properties. Change it if |
1460 ;; necessary. | 1461 ;; necessary. |
1461 extent ) | 1462 extent ) |
1462 ;; First, check to see if one of our extents already exists at | 1463 ;; First, check to see if one of our extents already exists at |