comparison etc/NEWS @ 53338:25ce3b9f2836

Add pointer text property. Add image maps.
author Kim F. Storm <storm@cua.dk>
date Sun, 28 Dec 2003 00:40:46 +0000
parents 4050f3f80340
children 3f0eafd05a7b
comparison
equal deleted inserted replaced
53337:59bc3f594f55 53338:25ce3b9f2836
1737 ** New function `get-char-property-and-overlay' accepts the same 1737 ** New function `get-char-property-and-overlay' accepts the same
1738 arguments as `get-char-property' and returns a cons whose car is the 1738 arguments as `get-char-property' and returns a cons whose car is the
1739 return value of `get-char-property' called with those arguments and 1739 return value of `get-char-property' called with those arguments and
1740 whose cdr is the overlay in which the property was found, or nil if 1740 whose cdr is the overlay in which the property was found, or nil if
1741 it was found as a text property or not found at all. 1741 it was found as a text property or not found at all.
1742
1743 ** The mouse pointer shape in void text areas (i.e. after the end of a
1744 line or below the last line in the buffer) of the text window is now
1745 controlled by the new variable `void-text-area-pointer'. The default
1746 is to use the `arrow' (non-text) pointer. Other choices are `text'
1747 (or nil), `hand', `vdrag', `hdrag', `modeline', and `hourglass'.
1748
1749 ** The mouse pointer shape over an image can now be controlled by the
1750 :pointer image property.
1751
1752 ** The mouse pointer shape over ordinary text or images may now be
1753 controlled/overriden via the `pointer' text property.
1754
1755 ** Images may now have an associated image map via the :map property.
1756
1757 An image map is an alist where each element has the format (AREA ID PLIST).
1758 An AREA is specified as either a rectangle, a circle, or a polygon:
1759 A rectangle is a cons (rect . ((x0 . y0) . (x1 . y1))) specifying the
1760 pixel coordinates of the upper left and bottom right corners.
1761 A circle is a cons (circle . ((x0 . y0) . r)) specifying the center
1762 and the radius of the circle; r may be a float or integer.
1763 A polygon is a cons (poly . [x0 y0 x1 y1 ...]) where each pair in the
1764 vector describes one corner in the polygon.
1765
1766 When the mouse pointer is above a hot-spot area of an image, the
1767 PLIST of that hot-spot is consulted; if it contains a `help-echo'
1768 property it defines a tool-tip for the hot-spot, and if it contains
1769 a `pointer' property, it defines the shape of the mouse cursor when
1770 it is over the hot-spot. See the variable 'void-area-text-pointer'
1771 for possible pointer shapes.
1772
1773 When you click the mouse when the mouse pointer is over a hot-spot,
1774 an event is composed by combining the ID of the hot-spot with the
1775 mouse event, e.g. [area4 mouse-1] if the hot-spot's ID is `area4'.
1742 1776
1743 ** Mouse event enhancements: 1777 ** Mouse event enhancements:
1744 1778
1745 *** Mouse clicks on fringes now generates left-fringe or right-fringes 1779 *** Mouse clicks on fringes now generates left-fringe or right-fringes
1746 events, rather than a text area click event. 1780 events, rather than a text area click event.