Lines Matching defs:ndx
106 XkbVModIndexText(Display *dpy, XkbDescPtr xkb, unsigned ndx, unsigned format)
118 if (ndx >= XkbNumVirtualMods)
120 else if (vmodNames && (vmodNames[ndx] != None))
121 tmp = XkbAtomGetString(dpy, vmodNames[ndx]);
124 snprintf(tmp, 20, "%d", ndx);
237 XkbModIndexText(unsigned ndx, unsigned format)
243 if (ndx < XkbNumModifiers)
244 snprintf(buf, sizeof(buf), "%sMapIndex", modNames[ndx]);
245 else if (ndx == XkbNoModifier)
248 snprintf(buf, sizeof(buf), "0x%02x", ndx);
251 if (ndx < XkbNumModifiers)
252 strcpy(buf, modNames[ndx]);
253 else if (ndx == XkbNoModifier)
256 snprintf(buf, sizeof(buf), "ILLEGAL_%02x", ndx);
1493 int ndx, kc;
1496 ndx = ((type == XkbKB_Overlay1) ? 1 : 2);
1507 snprintf(buf, sizeof(buf), "permanentOverlay%d= %s", ndx, kn);
1509 snprintf(buf, sizeof(buf), "overlay%d= %s", ndx, kn);