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

FreeBSD Manual Pages

  
 
  

home | help
cdk_process(3)			 Library calls			cdk_process(3)

NAME
       cdk_process - Cdk widget	pre/post-processing

SYNOPSIS
       Perform	pre- and post-processing of data which is injected into	a wid-
       get.

DESCRIPTION
       Character input is handled by each widget by  its  injection  function.
       That  is	 typically a large case-statement consisting of	the actions to
       be taken	for editing and	scrolling keys.	 The calling  application  can
       modify  the  behavior  of  the injection	function by defining either or
       both preprocess and postprocess functions.

       Preprocessing is	performed before doing anything	with the injected key-
       stroke.	If the preprocess function returns zero, no further action  is
       taken in	the injection function.	 Note that the preprocess function may
       do  more	than filter out	characters; it can fill	in logic to coordinate
       different widgets.

       Postprocessing is performed after all other actions have	been  done  in
       the  injection  function.  Like the other actions, it is	performed only
       if the preprocess function returns a nonzero value.   Unlike  the  pre-
       process function, its return value is ignored.

SEE ALSO
       cdk(3), cdk_binding(3).

				  2024-03-28			cdk_process(3)

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

home | help