Lines Matching refs:shape
207 XkbFreeGeomOutlines(XkbShapePtr shape, int first, int count, Bool freeAll)
210 &shape->num_outlines, &shape->sz_outlines,
211 (char **) &shape->outlines,
222 XkbShapePtr shape = (XkbShapePtr) shape_in;
224 if (shape->outlines)
225 XkbFreeGeomOutlines(shape, 0, shape->num_outlines, TRUE);
635 XkbAddGeomOutline(XkbShapePtr shape, int sz_points)
639 if ((!shape) || (sz_points < 0))
641 if ((shape->num_outlines >= shape->sz_outlines) &&
642 (_XkbAllocOutlines(shape, 1) != Success)) {
645 outline = &shape->outlines[shape->num_outlines];
649 shape->num_outlines++;
656 XkbShapePtr shape;
662 for (shape = geom->shapes, i = 0; i < geom->num_shapes; i++, shape++) {
663 if (name == shape->name)
664 return shape;
670 shape = &geom->shapes[geom->num_shapes];
671 memset(shape, 0, sizeof(XkbShapeRec));
672 if ((sz_outlines > 0) && (_XkbAllocOutlines(shape, sz_outlines) != Success))
674 shape->name = name;
675 shape->primary = shape->approx = NULL;
677 return shape;