1XkbAddGeomOutline(3)             XKB FUNCTIONS            XkbAddGeomOutline(3)
2
3
4

NAME

6       XkbAddGeomOutline - Add one outline to an existing shape
7

SYNOPSIS

9       XkbOutlinePtr XkbAddGeomOutline (XkbShapePtr shape, int sz_points);
10

ARGUMENTS

12       shape  shape to be updated
13
14       sz_points
15              number of points to be reserved
16

DESCRIPTION

18       Xkb  provides  functions  to  add a single new element to the top-level
19       keyboard geometry. In each case the num_ * fields of the  corresponding
20       structure  is  incremented by 1. These functions do not change sz_* un‐
21       less there is no more room in the array. Some of these  functions  fill
22       in  the values of the element's structure from the arguments. For other
23       functions, you must explicitly write code to fill the structure's  ele‐
24       ments.
25
26       The  top-level geometry description includes a list of geometry proper‐
27       ties.  A geometry property  associates  an  arbitrary  string  with  an
28       equally  arbitrary  name. Programs that display images of keyboards can
29       use geometry properties as hints, but they are not interpreted by  Xkb.
30       No other geometry structures refer to geometry properties.
31
32       An  outline  consists of an arbitrary number of points.  XkbAddGeomOut‐
33       line adds an outline to the  specified  shape  by  reserving  sz_points
34       points for it. The new outline is allocated and zeroed.  XkbAddGeomOut‐
35       line returns NULL if any of the parameters is empty or if  it  was  not
36       able  to  allocate  space. To allocate space for an arbitrary number of
37       outlines to a shape, use XkbAllocGeomOutlines.
38

STRUCTURES

40           typedef struct _XkbOutline {
41               unsigned short    num_points;      /* number of points in the outline */
42               unsigned short    sz_points;       /* size of the points array */
43               unsigned short    corner_radius;   /* draw corners as circles with this radius */
44               XkbPointPtr       points;          /* array of points defining the outline */
45           } XkbOutlineRec, *XkbOutlinePtr;
46
47

SEE ALSO

49       XkbAllocGeomOutlines(3)
50
51
52
53X Version 11                     libX11 1.8.7             XkbAddGeomOutline(3)
Impressum