XkbKeyKeyType(3)

✨ NAME ✨

Okay bestie, gather round πŸ’– β€” this is XkbKeyKeyType, from the XKB FUNCTIONS corner of the libX11 universe, and its whole job is: obtain the index of a key type or the pointer to a key type. That's it, that's the vibe. Two-for-one energy, we love to see it πŸ’…


🌸 SYNOPSIS 🌸

XkbKeyTypePtr XkbKeyKeyType (XkbDescPtr xkb, KeyCode keycode, int group);

πŸŽ€ ARGUMENTS πŸŽ€

  • xkb β€” the Xkb description of interest, like, the whole lore dump you're digging through πŸ¦‹
  • keycode β€” the keycode of interest, i.e. which key we're being nosy about πŸ‘€
  • group β€” the group index. yes girl, the group index 🌈

πŸ’œ DESCRIPTION πŸ’œ

So here's the tea, fr fr: XkbKeyKeyType returns a pointer to the key type in the types vector of the client map in xkb that corresponds to the given keycode and group index. That's the entire plot β€” no plot twists, no cap 🫢


⭐ STRUCTURES ⭐

Behold, the XkbKeyTypeRec β€” she's iconic, she's the blueprint, and she's laid out exactly like this πŸ”₯

typedef struct {                             /* Key Type */
     XkbModsRec              mods;           /* modifiers used to compute shift level */
     unsigned char           num_levels;     /* total # shift levels, do not modify directly */
     unsigned char           map_count;      /* # entries in map, preserve (if non-NULL) */
     XkbKTMapEntryPtr        map;            /* vector of modifiers for each shift level */
     XkbModsPtr              preserve;       /* mods to preserve for corresponding map entry */
     Atom                    name;           /* name of key type */
     Atom *                  level_names;    /* array of names of each shift level */
} XkbKeyTypeRec, *XkbKeyTypePtr;
Heads up bestie 🚨 β€” those little /* ... */ notes are not decorative. num_levels says do not modify directly, and map_count says preserve (if non-NULL). Respect the comments or the struct will simply not slay πŸ’€

And that's the whole page, mwah 😘 β€” written by the libX11 girlies, X Version 11, libX11 1.8.14, dated XkbKeyKeyType(3). Stream it, cite it, stay hydrated πŸ“πŸ’–

πŸ“¦ where this page comes from