Lines Matching defs:shape
64 XkbComputeShapeBounds(XkbShapePtr shape)
70 if ((!shape) || (shape->num_outlines < 1))
72 shape->bounds.x1 = shape->bounds.y1 = MAXSHORT;
73 shape->bounds.x2 = shape->bounds.y2 = MINSHORT;
74 for (outline = shape->outlines, o = 0; o < shape->num_outlines;
77 _XkbCheckBounds(&shape->bounds, pt->x, pt->y);
80 _XkbCheckBounds(&shape->bounds, 0, 0);
87 XkbComputeShapeTop(XkbShapePtr shape, XkbBoundsPtr bounds)
93 if ((!shape) || (shape->num_outlines < 1))
95 if (shape->approx)
96 outline = shape->approx;
98 outline = &shape->outlines[shape->num_outlines - 1];
153 XkbShapePtr shape;
178 shape = XkbShapeDoodadShape(geom, &doodad->shape);
179 rbounds = &shape->bounds;
189 shape = XkbIndicatorDoodadShape(geom, &doodad->indicator);
190 rbounds = &shape->bounds;
193 shape = XkbLogoDoodadShape(geom, &doodad->logo);
194 rbounds = &shape->bounds;
349 XkbShapePtr shape;
356 shape = XkbAddGeomShape(geom, shapeWire->name, shapeWire->nOutlines);
357 if (!shape)
369 ol = XkbAddGeomOutline(shape, olWire->nPoints);
387 shape->primary = &shape->outlines[shapeWire->primaryNdx];
389 shape->primary = NULL;
392 shape->approx = &shape->outlines[shapeWire->approxNdx];
394 shape->approx = NULL;
395 XkbComputeShapeBounds(shape);
423 doodad->shape.color_ndx = doodadWire->shape.colorNdx;
424 doodad->shape.shape_ndx = doodadWire->shape.shapeNdx;