Mercurial > emacs
comparison src/dispextern.h @ 28786:e18bbe250122
(DEFAULT_IMAGE_HEIGHT): New macro.
(IMAGE_ASCENT): Removed.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 02 May 2000 20:02:55 +0000 |
parents | ed910be216eb |
children | 159b3efa8557 |
comparison
equal
deleted
inserted
replaced
28785:796eafcfc070 | 28786:e18bbe250122 |
---|---|
1915 /* These values are used for the rectangles displayed for images | 1915 /* These values are used for the rectangles displayed for images |
1916 that can't be loaded. */ | 1916 that can't be loaded. */ |
1917 #define DEFAULT_IMAGE_WIDTH 30 | 1917 #define DEFAULT_IMAGE_WIDTH 30 |
1918 #define DEFAULT_IMAGE_HEIGHT 30 | 1918 #define DEFAULT_IMAGE_HEIGHT 30 |
1919 | 1919 |
1920 /* Percent of image height used as ascent. */ | 1920 /* Percent of image height used as ascent. A value of |
1921 CENTERED_IMAGE_ASCENT means draw center the image centered on the | |
1922 line. */ | |
1921 int ascent; | 1923 int ascent; |
1922 #define DEFAULT_IMAGE_ASCENT 50 | 1924 #define DEFAULT_IMAGE_ASCENT 50 |
1925 #define CENTERED_IMAGE_ASCENT -1 | |
1923 | 1926 |
1924 /* Lisp specification of this image. */ | 1927 /* Lisp specification of this image. */ |
1925 Lisp_Object spec; | 1928 Lisp_Object spec; |
1926 | 1929 |
1927 /* Relief to draw around the image. */ | 1930 /* Relief to draw around the image. */ |
1977 | 1980 |
1978 /* Reference count (number of frames sharing this cache). */ | 1981 /* Reference count (number of frames sharing this cache). */ |
1979 int refcount; | 1982 int refcount; |
1980 }; | 1983 }; |
1981 | 1984 |
1982 | |
1983 /* Value is the ascent of image IMG. */ | |
1984 | |
1985 #define IMAGE_ASCENT(IMG) \ | |
1986 (((IMG)->height + (IMG)->margin) * (IMG)->ascent / 100.0) | |
1987 | 1985 |
1988 /* Value is a pointer to the image with id ID on frame F, or null if | 1986 /* Value is a pointer to the image with id ID on frame F, or null if |
1989 no image with that id exists. */ | 1987 no image with that id exists. */ |
1990 | 1988 |
1991 #define IMAGE_FROM_ID(F, ID) \ | 1989 #define IMAGE_FROM_ID(F, ID) \ |