Home | History | Annotate | Download | only in xkb

Lines Matching refs:bounds

47 _XkbCheckBounds(XkbBoundsPtr bounds, int x, int y)
49 if (x < bounds->x1)
50 bounds->x1 = x;
51 if (x > bounds->x2)
52 bounds->x2 = x;
53 if (y < bounds->y1)
54 bounds->y1 = y;
55 if (y > bounds->y2)
56 bounds->y2 = y;
69 shape->bounds.x1 = shape->bounds.y1 = MAXSHORT;
70 shape->bounds.x2 = shape->bounds.y2 = MINSHORT;
74 _XkbCheckBounds(&shape->bounds, pt->x, pt->y);
77 _XkbCheckBounds(&shape->bounds, 0, 0);
84 XkbComputeShapeTop(XkbShapePtr shape, XkbBoundsPtr bounds)
97 bounds->x1 = bounds->y1 = 0;
98 bounds->x2 = bounds->y2 = 0;
101 bounds->x1 = bounds->y1 = MAXSHORT;
102 bounds->x2 = bounds->y2 = MINSHORT;
105 _XkbCheckBounds(bounds, pt->x, pt->y);
115 XkbBoundsPtr bounds, sbounds;
119 bounds = &row->bounds;
120 bzero(bounds, sizeof(XkbBoundsRec));
122 sbounds = &XkbKeyShape(geom, key)->bounds;
123 _XkbCheckBounds(bounds, pos, 0);
127 _XkbCheckBounds(bounds, pos, 0);
129 _XkbCheckBounds(bounds, pos + sbounds->x1, sbounds->y1);
130 _XkbCheckBounds(bounds, pos + sbounds->x2, sbounds->y2);
136 _XkbCheckBounds(bounds, 0, pos);
138 _XkbCheckBounds(bounds, pos + sbounds->x1, sbounds->y1);
139 _XkbCheckBounds(bounds, pos + sbounds->x2, sbounds->y2);
153 XkbBoundsPtr bounds, rbounds;
157 bounds = &section->bounds;
158 bzero(bounds, sizeof(XkbBoundsRec));
162 rbounds = &row->bounds;
163 _XkbCheckBounds(bounds, row->left + rbounds->x1,
165 _XkbCheckBounds(bounds, row->left + rbounds->x2,
176 rbounds = &shape->bounds;
187 rbounds = &shape->bounds;
191 rbounds = &shape->bounds;
199 _XkbCheckBounds(bounds, rbounds->x1, rbounds->y1);
200 _XkbCheckBounds(bounds, rbounds->x2, rbounds->y2);