XtConvert(3)



XtConvert

NAME
SYNTAX
ARGUMENTS
DESCRIPTION
SEE ALSO

NAME

XtConvert, XtDirectConvert − invoke resource converters

SYNTAX

void XtConvert(Widget w, String from_type, XrmValuePtr from, String to_type, XrmValuePtr to_return);

void XtDirectConvert(XtConverter converter, XrmValuePtr args, Cardinal num_args, XrmValuePtr from, XrmValuePtr to_return);

ARGUMENTS

args

Specifies the argument list that contains the additional arguments needed to perform the conversion (often NULL).

converter

Specifies the conversion procedure that is to be called.

from

Specifies the value to be converted.

from_type

Specifies the source type.

num_args

Specifies the number of additional arguments (often zero).

to_type

Specifies the destination type.

to_return

Returns the converted value.

w

Specifies the widget to use for additional arguments (if any are needed).

DESCRIPTION

The XtConvert function looks up the type converter registered to convert from_type to to_type, computes any additional arguments needed, and then calls XtDirectConvert. XtConvert has been replaced by XtConvertAndStore.

The XtDirectConvert function looks in the converter cache to see if this conversion procedure has been called with the specified arguments. If so, it returns a descriptor for information stored in the cache; otherwise, it calls the converter and enters the result in the cache.

Before calling the specified converter, XtDirectConvert sets the return value size to zero and the return value address to NULL. To determine if the conversion was successful, the client should check to_return.address for non-NULL. XtDirectConvert has been replaced by XtCallConverter.

SEE ALSO

XtAppAddConverter(3Xt), XtStringConversionWarning(3Xt), XtConvertAndStore(3Xt), XtCallConverter(3Xt)
X Toolkit Intrinsics − C Language Interface
Xlib − C Language X Interface



More Linux Commands

manpages/Apache::TestTrace.3pm.html
Apache::TestTrace(3pm) - Helper output generation functions
This module exports a number of functions that make it easier generating various diagnostics messages in your programs in a consistent way and saves some keystr

manpages/gs.1.html
gs(1) - Ghostscript (PostScript and PDF language interpreter
The gs (gswin32c, gswin32, gsos2) command invokes Ghostscript, an interpreter of Adobe Systems PostScript(tm) and Portable Document Format (PDF) languages. gs r

manpages/endutxent.3.html
endutxent(3) - access utmp file entries - Linux manual page
New applications should use the POSIX.1-specified utmpx versions of these functions; see CONFORMING TO. utmpname() sets the name of the utmp-format file for the

manpages/unflatten.1.html
unflatten(1) - adjust directed graphs to improve layout aspe
unflatten is a preprocessor to dot that is used to improve the aspect ratio of graphs having many leaves or disconnected nodes. The usual layout for such a grap

manpages/batcher.8.html
batcher(8) - Article batching for InterNetNews (Man Page)...
batcher reads a list of files and prepares news batches for the specified host. It is generally used to prepare UUCP feeds, but the resulting batches can be use

manpages/pam_misc_paste_env.3.html
pam_misc_paste_env(3) - transcribing an environment to that
This function takes the supplied list of environment pointers and uploads its contents to the PAM environment. Success is indicated by PAM_SUCCESS. SEE ALSO pam

manpages/pluginviewer.8.html
pluginviewer(8) - list loadable SASL plugins and their prope
pluginviewer can be used by a server administrator to troubleshoot SASL installations. The utility can list loadable (properly configured) client and server sid

manpages/libsensors.3.html
libsensors(3) - publicly accessible functions provided by th
sensors_init() loads the configuration file and the detected chips list. If this returns a value unequal to zero, you are in trouble; you can not assume anythin

manpages/auto_execok.n.html
auto_execok(n) - standard library of Tcl procedures.........
Tcl includes a library of Tcl procedures for commonly-needed functions. The procedures defined in the Tcl library are generic ones suitable for use by many diff

manpages/makeg.1.html
makeg(1) - make a debuggable executable - Linux manual page
The makeg script runs make, passing it variable settings to create a debuggable target when used with a Makefile generated by imake. For example, it arranges fo

manpages/sgi2tiff.1.html
sgi2tiff(1) create a TIFF file from an SGI image file.......
sgi2tiff converts a file in the SGI image format to TIFF. By default, the TIFF image is created with data samples packed (PlanarConfiguration=1), compressed wit

manpages/pamdice.1.html
pamdice(1) - slice a Netpbm image into many horizontally and
This program is part of Netpbm(1) pamdice reads a PAM, PBM, PGM, or PPM image as input and splits it horizontally and/or vertically into equal size pieces and w





We can't live, work or learn in freedom unless the software we use is free.