Unix/Linux Go Back    

X11R7.4 - man page for xkbresizekeysyms (x11r4 section 3)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

XkbResizeKeySyms(3)			  XKB FUNCTIONS 		      XkbResizeKeySyms(3)

       XkbResizeKeySyms - Change the number of symbols bound to a key

       KeySym * XkbResizeKeySyms ( xkb, key, needed )
	     XkbDescRec * xkb;
	     int key;
	     int needed;

       - xkb  keyboard description to be changed

       - key  keycode for key to modify

       - needed
	      new number of keysyms required for key

       XkbResizeKeySyms reserves the space needed for needed keysyms and returns a pointer to the
       beginning of the new array that holds the keysyms. It adjusts  the  offset  field  of  the
       key_sym_map  entry  for	the  key if necessary and can also change the syms, num_syms, and
       size_syms fields of xkb->map if it is necessary to  reallocate  the  syms  array.   XkbRe-
       sizeKeySyms does not modify either the width or number of groups associated with the key.

       If needed is greater than the current number of keysyms for the key, XkbResizeKeySyms ini-
       tializes all new keysyms in the array to NoSymbol.

       Because the number of symbols needed by a key is normally computed as width  *  number  of
       groups,	and XkbResizeKeySyms does not modify either the width or number of groups for the
       key, a discrepancy exists upon return from XkbResizeKeySyms between  the  space	allocated
       for  the  keysyms  and  the  number  required.  The  unused entries in the list of symbols
       returned by XkbResizeKeySyms are not preserved across future calls to any of the map edit-
       ing functions, so you must update the key symbol mapping (which updates the width and num-
       ber of groups  for  the	key)  before  calling  another	allocator  function.  A  call  to
       XkbChangeTypesOfKey will update the mapping.

       If  any	allocation  errors  occur  while resizing the number of symbols bound to the key,
       XkbResizeKeySyms returns NULL.

       XkbChangeTypesOfKey(3), XkbResizeKeyActions(3)

       A change to the number of symbols bound to a key should be accompanied by a change in  the
       number  of  actions  bound  to a key. Refer to XkbResizeKeyActions for more information on
       changing the number of actions bound to a key.

X Version 11				   libX11 1.2.1 		      XkbResizeKeySyms(3)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 06:46 AM.