Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XtAppSetTypeConverter(3Xt) — Digital UNIX 3.2c

Media Vault

Software Library

Restoration Projects

Artifacts Sought

XtAppSetTypeConverter(3Xt)  —  Subroutines  —  XT FUNCTIONS

NAME

XtAppSetTypeConverter, XtSetTypeConverter − register resource converter

SYNTAX

void XtAppSetTypeConverter(app_context, from_type, to_type, converter, convert_args, num_args, cache_type, destructor)
    XtAppContext app_context;
    String from_type;
    String to_type;
    XtConverter converter;
    XtConvertArgList convert_args;
    Cardinal num_args;
    XtCacheType cache_type;
    XtDestructor destructor;

void XtSetTypeConverter(from_type, to_type, converter, convert_args, num_args, cache_type, destructor)
    String from_type;
    String to_type;
    XtConverter converter;
    XtConvertArgList convert_args;
    Cardinal num_args;
    XtCacheType cache_type;
    XtDestructor destructor;

ARGUMENTS

app_contextSpecifies the application context. 

converterSpecifies the type converter procedure. 

convert_argsSpecifies how to compute the additional arguments to the converter or NULL. 

from_typeSpecifies the source type. 

num_argsSpecifies the number of additional arguments to the converter or zero. 

to_typeSpecifies the destination type. 

cache_typeSpecifies whether or not resources produced by this converter are sharable or display-specific and when they should be freed. 

destructorSpecifies a destroy procedure for resources produced by this conversion, or NULL if no addional action is required to deallocate resources produced by the converter. 

DESCRIPTION

XtSetTypeConverter registers the specified type converter and destructor in all application contexts created by the calling process, including any future application contexts that may be created. XtAppSetTypeConverter registers the specified type converter in the single application context specified. If the same from_type and to_type are specified in multiple calls to either function, the most recent overrides the previous ones. 

SEE ALSO

X Toolkit Intrinsics − C Language Interface
Xlib − C Language X Interface

  —  X Version 11  —  Release 6

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026