XtAddConverter man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

XtAddConverter()					      XtAddConverter()

Name
  XtAddConverter - register an "old-style" resource converter.

Synopsis
  void	 XtAddConverter(from_type,   to_type,	converter,  convert_args,
  num_args)
	 String from_type;
	 String to_type;
	 XtConverter converter;
	 XtConvertArgList convert_args;
	 Cardinal num_args;

Inputs
  from_type Specifies the resource name of the	datatype  that	the  con‐
	    verter converts from.

  to_type   Specifies  the  resource  name  of the datatype that the con‐
	    verter converts to.

  converter Specifies the converter procedure.	See XtConverter(2).

  convert_args
	    Specifies how to obtain any additional arguments  needed  for
	    the conversion.

  num_args  Specifies the number elements in convert_args.

Availability
  Superseded by XtAppAddConverter().

Description
  XtAddConverter()  registers converter as a procedure to convert data of
  resource type from_type to resource  type  to_type.	The  convert_args
  array	 is  registered	 with  the  converter, and will be used to obtain
  arguments to pass to the converter each time it is invoked.

Usage
  XtAddConverter() has	been  superseded  by  XtAppAddConverter(),  which
  allows  the  registration  of	 converter functions on a per-application
  context basis.  XtAddConverter() now calls XtAppAddConverter()  passing
  the  default	application  context created by XtInitialize().	 Very few
  programs need multiple application contexts, and you	can  continue  to
  use XtAddConverter() if you initialize your application with XtInitial‐
  ize().  We recommend, however, that you use XtAppInitialize(), XtAppAd‐
  dConverter(), and the other XtApp*() application context specific func‐
  tions.

  See XtAppAddConverter() for more information about converters	 and  the
  XtConvertArgList data type.

  XtAddConverter()  and XtAppAddConverter() register "old-style" convert‐
  ers which are still in common use, but  are  not  as	flexible  as  the
  (incompatible)  "new-style" converters added in Release 4.  If you must
  register an existing old-style converter, use XtAppAddConverter(),  but
  if  you are writing a converter of your own, consider using a new-style
  converter.  See XtAppSetTypeConverter().

See Also
  XtAppAddConverter(1), XtAppSetTypeConverter(1), XtSetTypeConverter(1),
  XtConverter(2), XtTypeConverter(2).

Xt - Resource Management				      XtAddConverter()
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net