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