Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
XkbAllocKeyboard(3)		  XKB FUNCTIONS 	     XkbAllocKeyboard(3)

NAME
     XkbAllocKeyboard -  Creates a keyboard description from scratch

SYNOPSIS
     XkbDescRec XkbAllocKeyboard (void);

DESCRIPTION
     Applications seldom need to directly allocate a keyboard description; call-
     ing XkbGetKeyboard usually suffices. In the event you need to create a key-
     board  description  from scratch, however, use XkbAllocKeyboard rather than
     directly calling malloc.

     If XkbAllocKeyboard fails to allocate the keyboard description, it  returns
     NULL.   Otherwise,  it  returns  a pointer to an empty keyboard description
     structure. The device_spec field will have  been  initialized  to	XkbUseC-
     oreKbd.  You  may	then  either fill in the structure components or use Xkb
     functions to obtain values for the structure components from a keyboard de-
     vice.

SEE ALSO
     malloc(3F), XkbUseCoreKbd(3), XkbGetKeyboard(3)

X Version 11			  libX11 1.8.13 	     XkbAllocKeyboard(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=XkbAllocKeyboard&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help