1XkbComputeShapeTop(3) XKB FUNCTIONS XkbComputeShapeTop(3)
2
3
4
6 XkbComputeShapeTop - Determines the bounding box of the top surface of
7 a shape
8
10 Bool XkbComputeShapeTop (XkbShapePtr shape, XkbBoundsPtr bounds_rtrn);
11
13 shape shape to be examined
14
15 bounds_rtrn
16 backfilled with the bounding box for the shape
17
19 Xkb provides a number of convenience functions to help use a keyboard
20 geometry. These include functions to return the bounding box of a
21 shape's top surface and to update the bounding box of a shape row or
22 section.
23
24 A shape is made up of a number of outlines. Each outline is a polygon
25 made up of a number of points. The bounding box of a shape is a rectan‐
26 gle that contains all the outlines of that shape.
27
28 XkbComputeShapeTop returns a BoundsRec that contains two x and y coor‐
29 dinates. These coordinates describe the corners of a rectangle that
30 contains the outline that describes the top surface of the shape. The
31 top surface is defined to be the approximating outline if the approx
32 field of shape is not NULL. If approx is NULL, the top surface is de‐
33 fined as the last outline in the shape's array of outlines. XkbCom‐
34 puteShapeTop returns False if shape is NULL or if there are no outlines
35 for the shape; otherwise, it returns True.
36
38 typedef struct _XkbBounds {
39 short x1,y1; /* upper left corner of the bounds, in mm/10 */
40 short x2,y2; /* lower right corner of the bounds, in mm/10 */
41 } XkbBoundsRec, *XkbBoundsPtr;
42
43
44
45
46X Version 11 libX11 1.8.7 XkbComputeShapeTop(3)