Lines Matching refs:shape
219 XkbFreeGeomOutlines(XkbShapePtr shape, int first, int count, Bool freeAll)
222 &shape->num_outlines, &shape->sz_outlines,
223 (char **) &shape->outlines,
234 XkbShapePtr shape = (XkbShapePtr) shape_in;
236 if (shape->outlines)
237 XkbFreeGeomOutlines(shape, 0, shape->num_outlines, True);
583 XkbAllocGeomOutlines(XkbShapePtr shape, int nOL)
585 return _XkbAllocOutlines(shape, nOL);
742 XkbAddGeomOutline(XkbShapePtr shape, int sz_points)
746 if ((!shape) || (sz_points < 0))
748 if ((shape->num_outlines >= shape->sz_outlines) &&
749 (_XkbAllocOutlines(shape, 1) != Success)) {
752 outline = &shape->outlines[shape->num_outlines];
756 shape->num_outlines++;
763 XkbShapePtr shape;
769 for (shape = geom->shapes, i = 0; i < geom->num_shapes; i++, shape++) {
770 if (name == shape->name)
771 return shape;
777 shape = &geom->shapes[geom->num_shapes];
778 bzero(shape, sizeof(XkbShapeRec));
779 if ((sz_outlines > 0) && (_XkbAllocOutlines(shape, sz_outlines) != Success))
781 shape->name = name;
782 shape->primary = shape->approx = NULL;
784 return shape;