Lines Matching refs:bounds
50 _XkbCheckBounds(XkbBoundsPtr bounds, int x, int y)
52 if (x < bounds->x1)
53 bounds->x1 = x;
54 if (x > bounds->x2)
55 bounds->x2 = x;
56 if (y < bounds->y1)
57 bounds->y1 = y;
58 if (y > bounds->y2)
59 bounds->y2 = y;
72 shape->bounds.x1 = shape->bounds.y1 = MAXSHORT;
73 shape->bounds.x2 = shape->bounds.y2 = MINSHORT;
77 _XkbCheckBounds(&shape->bounds, pt->x, pt->y);
80 _XkbCheckBounds(&shape->bounds, 0, 0);
87 XkbComputeShapeTop(XkbShapePtr shape, XkbBoundsPtr bounds)
100 bounds->x1 = bounds->y1 = 0;
101 bounds->x2 = bounds->y2 = 0;
104 bounds->x1 = bounds->y1 = MAXSHORT;
105 bounds->x2 = bounds->y2 = MINSHORT;
108 _XkbCheckBounds(bounds, pt->x, pt->y);
118 XkbBoundsPtr bounds, sbounds;
122 bounds = &row->bounds;
123 bzero(bounds, sizeof(XkbBoundsRec));
125 sbounds = &XkbKeyShape(geom, key)->bounds;
126 _XkbCheckBounds(bounds, pos, 0);
130 _XkbCheckBounds(bounds, pos, 0);
132 _XkbCheckBounds(bounds, pos + sbounds->x1, sbounds->y1);
133 _XkbCheckBounds(bounds, pos + sbounds->x2, sbounds->y2);
139 _XkbCheckBounds(bounds, 0, pos);
141 _XkbCheckBounds(bounds, pos + sbounds->x1, sbounds->y1);
142 _XkbCheckBounds(bounds, pos + sbounds->x2, sbounds->y2);
156 XkbBoundsPtr bounds, rbounds;
160 bounds = §ion->bounds;
161 bzero(bounds, sizeof(XkbBoundsRec));
165 rbounds = &row->bounds;
166 _XkbCheckBounds(bounds, row->left + rbounds->x1,
168 _XkbCheckBounds(bounds, row->left + rbounds->x2,
179 rbounds = &shape->bounds;
190 rbounds = &shape->bounds;
194 rbounds = &shape->bounds;
202 _XkbCheckBounds(bounds, rbounds->x1, rbounds->y1);
203 _XkbCheckBounds(bounds, rbounds->x2, rbounds->y2);