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

FreeBSD Manual Pages

  
 
  

home | help
define_nulltarget(3)		 Arcan Lua API		  define_nulltarget(3)

NAME
       define_nulltarget - Push	an output subsegment into a target frameserver

SYNOPSIS
       vid
       define_nulltarget( vid:fsrv, func:callback )
       define_nulltarget( vid:fsrv, string:type, func:callback )

DESCRIPTION
       For  certain corner cases (typically clipboard) one might need to spawn
       a subsegment in a frameserver connection	that has  output  characteris-
       tics,  but  other  related  functions  such  as	define_feedtarget etc.
       doesn't need to be used as the generic buffer transfer  methods	aren't
       in  use.	The optional type  argument is reserved	for future/ other cus-
       tom use targets,	and the	default	type is	that of	 the  clipboard	 paste
       operation.

EXAMPLE
       function	define_nulltarget0()
	     target_alloc("demo", function(source, status)
		   if (status.kind == "registered") then
			 local vid = define_nulltarget(source, function()
			 end);
			 target_input(vid, "hello world0);
		   end
	     end);
       end

SEE ALSO:
       define_feedtarget(3) define_rendertarget(3)

targetcontrol			  April	2025		  define_nulltarget(3)

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

home | help