diff options
| author | Dave Love | 2000-09-04 13:57:47 +0000 |
|---|---|---|
| committer | Dave Love | 2000-09-04 13:57:47 +0000 |
| commit | e3b9fc9196ffcde45fed8d4c4a66d5b95fe78f7e (patch) | |
| tree | ebe807b57a4d76f0d2f35be676dc54dee20be9dc /lispref | |
| parent | 05cae5d0b01134da71f92ef93608fc1cc0b46d62 (diff) | |
| download | emacs-e3b9fc9196ffcde45fed8d4c4a66d5b95fe78f7e.tar.gz emacs-e3b9fc9196ffcde45fed8d4c4a66d5b95fe78f7e.zip | |
help-echo stuff, find-image, image-size.
Diffstat (limited to 'lispref')
| -rw-r--r-- | lispref/display.texi | 44 |
1 files changed, 37 insertions, 7 deletions
diff --git a/lispref/display.texi b/lispref/display.texi index e23b8ddfb5b..da774672536 100644 --- a/lispref/display.texi +++ b/lispref/display.texi | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | @c -*-texinfo-*- | 1 | @c -*-texinfo-*- |
| 2 | @c This is part of the GNU Emacs Lisp Reference Manual. | 2 | @c This is part of the GNU Emacs Lisp Reference Manual. |
| 3 | @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999 | 3 | @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2000 |
| 4 | @c Free Software Foundation, Inc. | 4 | @c Free Software Foundation, Inc. |
| 5 | @c See the file elisp.texi for copying conditions. | 5 | @c See the file elisp.texi for copying conditions. |
| 6 | @setfilename ../info/display | 6 | @setfilename ../info/display |
| @@ -822,10 +822,10 @@ or shorter, higher or lower, wider or narror, or replaced with an image. | |||
| 822 | 822 | ||
| 823 | @item help-echo | 823 | @item help-echo |
| 824 | @kindex help-echo @r{(text property)} | 824 | @kindex help-echo @r{(text property)} |
| 825 | If an overlay has a string as its @code{help-echo} property, then when | 825 | If an overlay has a @code{help-echo} property, then when you move the |
| 826 | you move the mouse onto the text in the overlay, Emacs displays that | 826 | mouse onto the text in the overlay, Emacs displays a help string in the |
| 827 | string in the echo area, or in the tooltip window. This feature is | 827 | echo area, or in the tooltip window. For details see @ref{Text |
| 828 | available starting in Emacs 21. | 828 | help-echo}. This feature is available starting in Emacs 21. |
| 829 | 829 | ||
| 830 | @item modification-hooks | 830 | @item modification-hooks |
| 831 | @kindex modification-hooks @r{(overlay property)} | 831 | @kindex modification-hooks @r{(overlay property)} |
| @@ -2621,8 +2621,8 @@ monochromatic images are supported. | |||
| 2621 | @node Defining Images | 2621 | @node Defining Images |
| 2622 | @subsection Defining Images | 2622 | @subsection Defining Images |
| 2623 | 2623 | ||
| 2624 | The functions @code{create-image} and @code{defimage} provide | 2624 | The functions @code{create-image}, @code{defimage} and |
| 2625 | convenient ways to create image descriptors. | 2625 | @code{find-image} provide convenient ways to create image descriptors. |
| 2626 | 2626 | ||
| 2627 | @defun create-image file &optional type &rest props | 2627 | @defun create-image file &optional type &rest props |
| 2628 | @tindex create-image | 2628 | @tindex create-image |
| @@ -2670,6 +2670,25 @@ If none of the alternatives will work, then @var{variable} is defined | |||
| 2670 | as @code{nil}. | 2670 | as @code{nil}. |
| 2671 | @end defmac | 2671 | @end defmac |
| 2672 | 2672 | ||
| 2673 | @defun find-image specs | ||
| 2674 | @tindex find-image | ||
| 2675 | This function provides a convenient way to find an image satisfying one | ||
| 2676 | of a list of image specifications @var{specs}. | ||
| 2677 | |||
| 2678 | Each specification in @var{specs} is a property list with contents | ||
| 2679 | depending on image type. All specifications must at least contain the | ||
| 2680 | properties @code{:type @var{type}} and either @w{@code{:file @var{file}}} | ||
| 2681 | or @w{@code{:data @var{DATA}}}, where @var{type} is a symbol specifying | ||
| 2682 | the image type, e.g.@: @code{xbm}, @var{file} is the file to load the | ||
| 2683 | image from, and @var{data} is a string containing the actual image data. | ||
| 2684 | The first specification in the list whose @var{type} is supported, and | ||
| 2685 | @var{file} exists, is used to construct the image specification to be | ||
| 2686 | returned. If no specification is satisfied, @code{nil} is returned. | ||
| 2687 | |||
| 2688 | The image is looked for first on @code{load-path} and then in | ||
| 2689 | @code{data-directory}. | ||
| 2690 | @end defun | ||
| 2691 | |||
| 2673 | @node Showing Images | 2692 | @node Showing Images |
| 2674 | @subsection Showing Images | 2693 | @subsection Showing Images |
| 2675 | 2694 | ||
| @@ -2726,6 +2745,17 @@ This removes only images that were put into @var{buffer} the way | |||
| 2726 | @code{insert-image} or in other ways. | 2745 | @code{insert-image} or in other ways. |
| 2727 | @end defun | 2746 | @end defun |
| 2728 | 2747 | ||
| 2748 | @defun image-size spec &optional pixels frame | ||
| 2749 | @tindex image-size | ||
| 2750 | This function returns the size of an image as a pair | ||
| 2751 | @w{@code{(@var{width} . @var{height})}}. @var{spec} is an image | ||
| 2752 | specification. @var{pixels} non-nil means return sizes measured in | ||
| 2753 | pixels, otherwise return sizes measured in canonical character units | ||
| 2754 | (fractions of the width/height of the frame's default font). | ||
| 2755 | @var{frame} is the frame on which the image will be displayed. | ||
| 2756 | @var{frame} null or omitted means use the selected frame. | ||
| 2757 | @end defun | ||
| 2758 | |||
| 2729 | @node Image Cache | 2759 | @node Image Cache |
| 2730 | @subsection Image Cache | 2760 | @subsection Image Cache |
| 2731 | 2761 | ||