Lines Matching defs:overlay
274 XkbFreeGeomOverlayRows(XkbOverlayPtr overlay,int first,int count,Bool freeAll)
277 &overlay->num_rows,&overlay->sz_rows,
278 (char **)&overlay->rows,
288 XkbOverlayPtr overlay= (XkbOverlayPtr)overlay_in;
290 if (overlay->rows!=NULL)
291 XkbFreeGeomOverlayRows(overlay,0,overlay->num_rows,TRUE);
547 XkbAllocGeomOverlayRows(XkbOverlayPtr overlay,int nRows)
549 return _XkbAllocOverlayRows(overlay,nRows);
887 XkbAddGeomOverlayKey( XkbOverlayPtr overlay,
898 if ((!overlay)||(!row)||(!over)||(!under))
900 section= overlay->section_under;
922 XkbAddGeomOverlayRow(XkbOverlayPtr overlay,int row_under,int sz_keys)
927 if ((!overlay)||(sz_keys<0))
929 if (row_under>=overlay->section_under->num_rows)
931 for (i=0;i<overlay->num_rows;i++) {
932 if (overlay->rows[i].row_under==row_under) {
933 row= &overlay->rows[i];
938 return &overlay->rows[i];
941 if ((overlay->num_rows>=overlay->sz_rows)&&
942 (_XkbAllocOverlayRows(overlay,1)!=Success))
944 row= &overlay->rows[overlay->num_rows];
949 overlay->num_rows++;
957 XkbOverlayPtr overlay;
962 for (i=0,overlay=section->overlays;i<section->num_overlays;i++,overlay++) {
963 if (overlay->name==name) {
964 if ((sz_rows>0)&&(_XkbAllocOverlayRows(overlay,sz_rows)!=Success))
966 return overlay;
972 overlay= §ion->overlays[section->num_overlays];
973 if ((sz_rows>0)&&(_XkbAllocOverlayRows(overlay,sz_rows)!=Success))
975 overlay->name= name;
976 overlay->section_under= section;
978 return overlay;