Lines Matching refs:shape
217 XkbFreeGeomOutlines(XkbShapePtr shape,int first,int count,Bool freeAll)
220 &shape->num_outlines,&shape->sz_outlines,
221 (char **)&shape->outlines,
232 XkbShapePtr shape= (XkbShapePtr)shape_in;
234 if (shape->outlines)
235 XkbFreeGeomOutlines(shape,0,shape->num_outlines,TRUE);
571 XkbAllocGeomOutlines(XkbShapePtr shape,int nOL)
573 return _XkbAllocOutlines(shape,nOL);
732 XkbAddGeomOutline(XkbShapePtr shape,int sz_points)
736 if ((!shape)||(sz_points<0))
738 if ((shape->num_outlines>=shape->sz_outlines)&&
739 (_XkbAllocOutlines(shape,1)!=Success)) {
742 outline= &shape->outlines[shape->num_outlines];
746 shape->num_outlines++;
753 XkbShapePtr shape;
759 for (shape=geom->shapes,i=0;i<geom->num_shapes;i++,shape++) {
760 if (name==shape->name)
761 return shape;
767 shape= &geom->shapes[geom->num_shapes];
768 memset(shape, 0, sizeof(XkbShapeRec));
769 if ((sz_outlines>0)&&(_XkbAllocOutlines(shape,sz_outlines)!=Success))
771 shape->name= name;
772 shape->primary= shape->approx= NULL;
774 return shape;