Introduction Xmt NAME Introduction -- introduction to the reference pages for Xmt functions and widgets. SYNOPSIS The synopsis section of a reference page shows an ANSI-C signature for each function documented on the page. It also shows the header file that must be included to declare the function, and may also show typedefs for structures, enumerated types, or procedure types used by the functions. These reference pages adopt an unusual convention for describing functions with variable-length argument lists. For any functions that expect a variable-length list of arguments of a specific type or types these pages use curly braces (`{' and `}') to indicate the arguments that repeat. If the argument list must be NULL-terminated, the NULL will appear at the end of the synopsis. Thus the function XmtVaRegisterColors() has the following synopsis: void XmtVaRegisterColors(XmtColorTable table, { String symbolic_name, String color_name, } NULL) Notice how this syntax clearly indicates the arguments that are to be repeated in the variable-length portion of the argument list, and also indicates how the list should be terminated. A number of functions in the Xmt library take a printf()-style variable-length argument list. These argu- ment lists don't have any pre-determined types, and so the synopses for these functions simply show the standard ANSI-C ... argument. ARGUMENTS This section explains each of the function arguments shown in the ``Synopsis'' section. INPUTS This subsection describes each of the arguments that pass information in to the function or functions documented on this page.. OUTPUTS This subsection describes any of the arguments that are used to return information from the function(s). These arguments are always of some pointer type, and you should use the C address-of operator (&) to pass the address of the variable in which the function will store the return value. The names of these arguments are usually suffixed with _return to indicate that values are returned in them. Some arguments both supply and return a value; they will Motif Tools Library Release 2.0 1 Introduction Xmt be listed in this section and in the ``Inputs'' section above. Finally, note that because the list of function arguments is broken into ``Input'' and ``Output'' sec- tions, they do not always appear in the same order that they are passed to the function(s). See the function sig- nature(s) for the actual calling order. RETURNS This subsection explains the return value, if any of the function or functions documented on the page. It may also explain how you should free, release, or otherwise deallo- cated the return value when you no longer need it. DESCRIPTION This section of the each reference page describes each of the functions and contains any additional information you need in order to use them. To keep this book a managable size, many related functions have been documented on the same reference page. (279 Xmt functions and widgets are documented on 109 individual reference pages.) This means that the functions do not appear in strict alphabetical order. Until you become familiar with this reference section through repeated use, you may have some trouble locating the reference page that a given function is documented on. To help you find the page you are looking for, the title of each reference page generally indicates which functions are documented on the page. This is done with a variety of common syntaxes: o Curly braces indicate a number of alternatives, just as they do for filenames in /bin/csh. Thus, the reference page titled ``XmtCli{Printf,Puts,Clear}()'' documents three functions: XmtCliPrintf(), XmtCliPuts(), and Xmt- CliClear(). o Square brackets indicate something optional. Thus the reference page titled ``XmtDialogDo[Sync]()'' documents the functions XmtDialogDo() and XmtDialogDoSync(). o Angle brackets and italics indicate an entire category of functions. The reference page titled ``Xmt- Create<Widget>()'', for example, documents all of the Xmt widget constructor functions. o An asterisk serves its usual role as a wildcard. The reference page titled ``XmtHashTable*()'' documents all of the XmtHashTable manipulation functions. Motif Tools Library Release 2.0 2 Introduction Xmt o Note that not all function names can be conveniently fit into a reference page title in this way and some of the more obscure Xmt functions do not appear in the title of their page. If you cannot find the function you are looking for, try the index below--it shows the title of the reference page that each function is docu- mented on. SEE ALSO The ``See Also'' section of each reference page refers you to related functions and widgets that you may alwo want to read about. This section of the book contains ``reference pages'', not ``manual pages''--the rest of this book is the manual for Xmt; this part is just the reference section of that man- ual. The chapters of this book are the definitive sources of information on most topics, and you'll find that these reference pages will often refer you back to the chapters for a full explanation of functions or of the concepts behind them. Index | For function... | See page... XmtAddDeleteCallback() | XmtAdd{Delete,SaveYourself}Callback() XmtAddSaveYourselfCallback() | XmtAdd{Delete,SaveYourself}Callback() XmtAllocColor() | Xmt{Alloc,Free,Store}[Widget]Color() XmtAllocWidgetColor() | Xmt{Alloc,Free,Store}[Widget]Color() XmtAskForBoolean() | XmtAskForBoolean() XmtAskForDouble() | XmtAskFor{Double,Integer}() XmtAskForFile() | XmtAskForFile[name]() XmtAskForFilename() | XmtAskForFile[name]() XmtAskForInteger() | XmtAskFor{Double,Integer}() XmtAskForItem() | XmtAskForItem[Number]() XmtAskForItemNumber() | XmtAskForItem[Number]() XmtAskForString() | XmtAskForString() XmtAssertWidgetClass() | XmtAssertWidgetClass() XmtBlock() | XmtBlock() XmtBuildApplication() | XmtBuild[Query]Application() XmtBuildDialog() | XmtBuild[Query]Dialog() XmtBuildQueryApplication() | XmtBuild[Query]Application() XmtBuildQueryDialog() | XmtBuild[Query]Dialog() XmtBuildQueryToplevel() | XmtBuild[Query]Toplevel() XmtBuildToplevel() | XmtBuild[Query]Toplevel() XmtChangePixmapIcon() | Xmt{Create,Change,Destroy}PixmapIcon() XmtCheckPrintfFormat() | XmtCheckPrintfFormat() XmtChooserGetSensitivity() | XmtChooserGet{State,Value,Sensitivity}() XmtChooserGetState() | XmtChooserGet{State,Value,Sensitivity}() XmtChooserGetValue() | XmtChooserGet{State,Value,Sensitivity}() XmtChooserLookupItemByName() | XmtChooserLookupItem[By]{Name,Value}() XmtChooserLookupItemByValue() | XmtChooserLookupItem[By]{Name,Value}() XmtChooserLookupItemName() | XmtChooserLookupItem[By]{Name,Value}() Motif Tools Library Release 2.0 3 Introduction Xmt | XmtChooserLookupItemValue() | XmtChooserLookupItem[By]{Name,Value}() XmtChooserSetItemValue() | XmtChooserSet{State,Sensitive,ItemValue}() XmtChooserSetSensitive() | XmtChooserSet{State,Sensitive,ItemValue}() XmtChooserSetState() | XmtChooserSet{State,Sensitive,ItemValue}() XmtCliClear() | XmtCli{Printf,Puts,Clear}() XmtCliFlush() | XmtCliFlush() XmtCliGets() | XmtCliGets() XmtCliPrintf() | XmtCli{Printf,Puts,Clear}() XmtCliPuts() | XmtCli{Printf,Puts,Clear}() XmtColorTableGetParent() | XmtCreateColorTable() XmtColorTableSetParent() | XmtCreateColorTable() XmtConvertStringToBitmap() | XmtConvertStringTo<Type>() XmtConvertStringToBitmask() | XmtConvertStringTo<Type>() XmtConvertStringToCallback() | XmtConvertStringTo<Type>() XmtConvertStringToColorTable() | XmtConvertStringTo<Type>() XmtConvertStringToEnum() | XmtRegisterEnumConverter() XmtConvertStringToPixel() | XmtConvertStringTo<Type>() XmtConvertStringToPixmap() | XmtConvertStringTo<Type>() XmtConvertStringToPixmapList() | XmtConvertStringTo<Type>() XmtConvertStringToStringList() | XmtConvertStringTo<Type>() XmtConvertStringToWidget() | XmtConvertStringTo<Type>() XmtConvertStringToXmFontList() | XmtConvertStringTo<Type>() XmtConvertStringToXmString() | XmtConvertStringTo<Type>() XmtConvertStringToXmtMenuItems() | XmtConvertStringTo<Type>() XmtCreateChild() | XmtCreate[Query]Child() XmtCreateChildren() | XmtCreate[Query]Children() XmtCreateChooser() | XmtCreate<Widget>() XmtCreateCli() | XmtCreate<Widget>() XmtCreateColorTable() | XmtCreateColorTable() XmtCreateHelpBox() | XmtCreate<Widget>() XmtCreateHelpDialog() | XmtCreate<Widget>() XmtCreateInputField() | XmtCreate<Widget>() XmtCreateLayout() | XmtCreate<Widget>() XmtCreateLayoutBox() | XmtCreate<Widget>() XmtCreateLayoutCol() | XmtCreate<Widget>() XmtCreateLayoutDialog() | XmtCreate<Widget>() XmtCreateLayoutPixmap() | XmtCreate<Widget>() XmtCreateLayoutRow() | XmtCreate<Widget>() XmtCreateLayoutSeparator() | XmtCreate<Widget>() XmtCreateLayoutSpace() | XmtCreate<Widget>() XmtCreateLayoutString() | XmtCreate<Widget>() XmtCreateMenuPane() | XmtCreate<Widget>() XmtCreateMenubar() | XmtCreate<Widget>() XmtCreateMsgLine() | XmtCreate<Widget>() XmtCreateOptionMenu() | XmtCreate<Widget>() XmtCreatePixmapFromXmtImage() | XmtCreate{Pixmap,XImage}FromXmtImage() XmtCreatePixmapIcon() | Xmt{Create,Change,Destroy}PixmapIcon() XmtCreatePopupMenu() | XmtCreate<Widget>() XmtCreateQueryChild() | XmtCreate[Query]Child() XmtCreateQueryChildren() | XmtCreate[Query]Children() XmtCreateScrolledCli() | XmtCreate<Widget>() XmtCreateWidgetType() | Xmt{Create,Lookup}WidgetType() XmtCreateWorkingBox() | XmtCreate<Widget>() Motif Tools Library Release 2.0 4 Introduction Xmt | XmtCreateWorkingDialog() | XmtCreate<Widget>() XmtCreateXImageFromXmtImage() | XmtCreate{Pixmap,XImage}FromXmtImage() XmtCreateXmString() | XmtCreateXmString() XmtDeiconifyShell() | Xmt{Iconify,Deiconify,Raise,Lower}Shell() XmtDestroyColorTable() | XmtCreateColorTable() XmtDestroyPixmapIcon() | Xmt{Create,Change,Destroy}PixmapIcon() XmtDialogApplyCallback() | XmtDialog{Okay,Cancel,Apply,Reset,Done}Callb ack() XmtDialogBindResourceList() | XmtDialogBindResourceList() XmtDialogCancelCallback() | XmtDialog{Okay,Cancel,Apply,Reset,Done}Callb ack() XmtDialogDo() | XmtDialogDo[Sync]() XmtDialogDoSync() | XmtDialogDo[Sync]() XmtDialogDoneCallback() | XmtDialog{Okay,Cancel,Apply,Reset,Done}Callb ack() XmtDialogGetDataAddress() | XmtDialog{Okay,Cancel,Apply,Reset,Done}Callb ack() XmtDialogGetDefaultValues() | XmtDialogGetDefaultValues() XmtDialogGetDialogValues() | XmtDialog{Get,Set}DialogValues() XmtDialogOkayCallback() | XmtDialog{Okay,Cancel,Apply,Reset,Done}Callb ack() XmtDialogPosition() | XmtDialogPosition() XmtDialogResetCallback() | XmtDialog{Okay,Cancel,Apply,Reset,Done}Callb ack() XmtDialogSetDialogValues() | XmtDialog{Get,Set}DialogValues() XmtDialogSetReturnValue() | XmtDialog{Okay,Cancel,Apply,Reset,Done}Callb ack() XmtDiscardButtonEvents() | XmtDiscard{Button,KeyPress}Events() XmtDiscardKeyPressEvents() | XmtDiscard{Button,KeyPress}Events() XmtDisplayBusyCursor() | XmtDisplay{Busy,Default,}Cursor() XmtDisplayCursor() | XmtDisplay{Busy,Default,}Cursor() XmtDisplayDefaultCursor() | XmtDisplay{Busy,Default,}Cursor() XmtDisplayError() | XmtDisplay{Error,Warning,Information}() XmtDisplayErrorAndAsk() | XmtDisplay{Error,Warning}AndAsk() XmtDisplayErrorMsg() | XmtDisplay{Error,Warning,Information}Msg() XmtDisplayErrorMsgAndWait() | XmtDisplay{Error,Warning}MsgAndWait() XmtDisplayInformation() | XmtDisplay{Error,Warning,Information}() XmtDisplayInformationMsg() | XmtDisplay{Error,Warning,Information}Msg() XmtDisplayMessage() | XmtDisplayMessage{,AndWait,VaList}() XmtDisplayMessageAndWait() | XmtDisplayMessage{,AndWait,VaList}() XmtDisplayMessageVaList() | XmtDisplayMessage{,AndWait,VaList}() XmtDisplayWarning() | XmtDisplay{Error,Warning,Information}() XmtDisplayWarningAndAsk() | XmtDisplay{Error,Warning}AndAsk() XmtDisplayWarningMsg() | XmtDisplay{Error,Warning,Information}Msg() XmtDisplayWarningMsgAndWait() | XmtDisplay{Error,Warning}MsgAndWait() XmtDisplayWorkingDialog() | Xmt{Display,Hide}WorkingDialog() XmtErrorMsg() | Xmt{Error,Warning}Msg() XmtFindFile() | XmtFindFile() XmtFocusShell() | XmtFocusShell() XmtFreeColor() | Xmt{Alloc,Free,Store}[Widget]Color() XmtFreeWidgetColor() | Xmt{Alloc,Free,Store}[Widget]Color() XmtFreeXmtImage() | XmtParseXpm{Data,File}() XmtGetApplicationShell() | XmtGet{,Application,TopLevel}Shell() XmtGetApplicationValues() | Xmt{Get,Set}ApplicationValues() XmtGetBitmap() | XmtGet{Bitmap,Pixmap}() XmtGetHomeDir() | XmtGetHomeDir() XmtGetPixmap() | XmtGet{Bitmap,Pixmap}() XmtGetShell() | XmtGet{,Application,TopLevel}Shell() XmtGetTopLevelShell() | XmtGet{,Application,TopLevel}Shell() XmtHSLToRGB() | XmtHSLToRGB() Motif Tools Library Release 2.0 5 Introduction Xmt | XmtHashTableCreate() | XmtHashTable*() XmtHashTableDelete() | XmtHashTable*() XmtHashTableDestroy() | XmtHashTable*() XmtHashTableForEach() | XmtHashTable*() XmtHashTableLookup() | XmtHashTable*() XmtHashTableStore() | XmtHashTable*() XmtHelpContextHelpCallback() | XmtHelpInstallContextHelp() XmtHelpDisplayContextHelp() | XmtHelp{Do,Display,Get}ContextHelp() XmtHelpDoContextHelp() | XmtHelp{Do,Display,Get}ContextHelp() XmtHelpGetContextHelp() | XmtHelp{Do,Display,Get}ContextHelp() XmtHelpInstallContextHelp() | XmtHelpInstallContextHelp() XmtHideWorkingDialog() | Xmt{Display,Hide}WorkingDialog() XmtIconifyShell() | Xmt{Iconify,Deiconify,Raise,Lower}Shell() XmtInitialize() | XmtInitialize() XmtInitializeApplicationShell() | XmtInitializeApplicationShell() XmtInputFieldGetString() | XmtInputField{Get,Set}String() XmtInputFieldSetString() | XmtInputField{Get,Set}String() XmtLayoutConvertSizeToPixels() | XmtLayoutConvertSizeToPixels() XmtLayoutDisableLayout() | XmtLayout{Disable,Enable}Layout() XmtLayoutEnableLayout() | XmtLayout{Disable,Enable}Layout() XmtLoadResourceFile() | XmtLoadResourceFile[List]() XmtLoadResourceFileList() | XmtLoadResourceFile[List]() XmtLocalize() | XmtLocalize() XmtLocalize2() | XmtLocalize() XmtLocalizeWidget() | XmtLocalize() XmtLookupBitmap() | XmtLookup{Pixmap,Bitmap,Bitmask}() XmtLookupBitmask() | XmtLookup{Pixmap,Bitmap,Bitmask}() XmtLookupColorName() | XmtLookupColorName() XmtLookupPixmap() | XmtLookup{Pixmap,Bitmap,Bitmask}() XmtLookupSimplePixmap() | XmtLookup{Pixmap,Bitmap,Bitmask}() XmtLookupStyle() | Xmt{Lookup,Register}{Style,Template}() XmtLookupSymbol() | XmtVaRegisterSymbols() XmtLookupTemplate() | Xmt{Lookup,Register}{Style,Template}() XmtLookupWidgetPixmap() | XmtLookup{Pixmap,Bitmap,Bitmask}() XmtLookupWidgetType() | Xmt{Create,Lookup}WidgetType() XmtLowerShell() | Xmt{Iconify,Deiconify,Raise,Lower}Shell() XmtMenuActivateProcedure() | XmtMenu{Activate,Inactivate}Procedure() XmtMenuGetMenuItem() | XmtMenuItem*() XmtMenuInactivateProcedure() | XmtMenu{Activate,Inactivate}Procedure() XmtMenuItemGetState() | XmtMenuItem*() XmtMenuItemGetSubmenu() | XmtMenuItem*() XmtMenuItemGetWidget() | XmtMenuItem*() XmtMenuItemSetSensitivity() | XmtMenuItem*() XmtMenuItemSetState() | XmtMenuItem*() XmtMenuPopupHandler() | XmtMenuPopupHandler() XmtMoveShellToPointer() | XmtFocusShell() XmtMsgLineAppend() | XmtMsgLine{Set,Append,Printf,Clear}() XmtMsgLineClear() | XmtMsgLine{Set,Append,Printf,Clear}() XmtMsgLineGetDouble() | XmtMsgLineGet{String,Double,Int,Unsigned,Cha r}() XmtMsgLineGetInput() | XmtMsgLine{Set,Get}Input() XmtMsgLineGetInt() | XmtMsgLineGet{String,Double,Int,Unsigned,Cha r}() XmtMsgLineGetString() | XmtMsgLineGet{String,Double,Int,Unsigned,Cha r}() XmtMsgLineGetUnsigned() | XmtMsgLineGet{String,Double,Int,Unsigned,Cha r}() Motif Tools Library Release 2.0 6 Introduction Xmt | XmtMsgLinePop() | XmtMsgLine{Push,Pop}() XmtMsgLinePrintf() | XmtMsgLine{Set,Append,Printf,Clear}() XmtMsgLinePush() | XmtMsgLine{Push,Pop}() XmtMsgLineSet() | XmtMsgLine{Set,Append,Printf,Clear}() XmtMsgLineSetInput() | XmtMsgLine{Set,Get}Input() XmtNameToWidget() | XmtNameToWidget() XmtParseCommandLine() | XmtParseCommandLine() XmtParseXpmData() | XmtParseXpm{Data,File}() XmtParseXpmFile() | XmtParseXpm{Data,File}() XmtPatchVisualInheritance() | XmtPatchVisualInheritance() XmtRGBToHSL() | XmtHSLToRGB() XmtRaiseShell() | Xmt{Iconify,Deiconify,Raise,Lower}Shell() XmtRegisterAll() | XmtRegisterAll() XmtRegisterBitmapConverter() | XmtRegister<Type>Converter() XmtRegisterBitmaskConverter() | XmtRegister<Type>Converter() XmtRegisterCallbackConverter() | XmtRegister<Type>Converter() XmtRegisterCallbackProcedure() | XmtRegisterProcedures() XmtRegisterChooser() | XmtRegister<Widget>() XmtRegisterColor() | Xmt[Va]RegisterColor[s]() XmtRegisterColorTableConverter() | XmtRegister<Type>Converter() XmtRegisterColors() | Xmt[Va]RegisterColor[s]() XmtRegisterEnumConverter() | XmtRegisterEnumConverter() XmtRegisterImage() | XmtRegister{Image,XbmData}() XmtRegisterImprovedIcons() | XmtRegisterImprovedIcons() XmtRegisterInputField() | XmtRegister<Widget>() XmtRegisterLayoutCreateMethod() | XmtRegisterLayout{Parser,CreateMethod}() XmtRegisterLayoutParser() | XmtRegisterLayout{Parser,CreateMethod}() XmtRegisterMenuItemsConverter() | XmtRegister<Type>Converter() XmtRegisterMotifWidgets() | XmtRegister{Motif,Xmt}Widgets() XmtRegisterPixel() | Xmt[Va]RegisterColor[s]() XmtRegisterPixelConverter() | XmtRegister<Type>Converter() XmtRegisterPixmapConverter() | XmtRegister<Type>Converter() XmtRegisterPixmapListConverter() | XmtRegister<Type>Converter() XmtRegisterPopupClass() | Xmt[Va]RegisterWidget{Class,Constructor}() XmtRegisterPopupConstructor() | Xmt[Va]RegisterWidget{Class,Constructor}() XmtRegisterProcedures() | XmtRegisterProcedures() XmtRegisterStandardColors() | Xmt[Va]RegisterColor[s]() XmtRegisterStringListConverter() | XmtRegister<Type>Converter() XmtRegisterStyle() | Xmt{Lookup,Register}{Style,Template}() XmtRegisterTemplate() | Xmt{Lookup,Register}{Style,Template}() XmtRegisterUnixProcedures() | XmtRegister{Unix,Xmt,Xt}Procedures() XmtRegisterWidgetClass() | Xmt[Va]RegisterWidget{Class,Constructor}() XmtRegisterWidgetConstructor() | Xmt[Va]RegisterWidget{Class,Constructor}() XmtRegisterWidgetConverter() | XmtRegister<Type>Converter() XmtRegisterWidgetTypes() | XmtRegisterWidgetTypes() XmtRegisterXbmData() | XmtRegister{Image,XbmData}() XmtRegisterXmFontListConverter() | XmtRegister<Type>Converter() XmtRegisterXmScale() | XmtRegister<Widget>() XmtRegisterXmScrolledText() | XmtRegister<Widget>() XmtRegisterXmStringConverter() | XmtRegister<Type>Converter() XmtRegisterXmText() | XmtRegister<Widget>() XmtRegisterXmTextField() | XmtRegister<Widget>() XmtRegisterXmToggleButton() | XmtRegister<Widget>() Motif Tools Library Release 2.0 7 Introduction Xmt | XmtRegisterXmtProcedures() | XmtRegister{Unix,Xmt,Xt}Procedures() XmtRegisterXmtWidgets() | XmtRegister{Motif,Xmt}Widgets() XmtRegisterXtProcedures() | XmtRegister{Unix,Xmt,Xt}Procedures() XmtReleasePixmap() | XmtReleasePixmap() XmtSetApplicationValues() | Xmt{Get,Set}ApplicationValues() XmtSetFocusToShell() | XmtFocusShell() XmtSetInitialFocus() | XmtSetInitialFocus() XmtSetTypedValue() | XmtSet[Typed]Value() XmtSetValue() | XmtSet[Typed]Value() XmtStoreColor() | Xmt{Alloc,Free,Store}[Widget]Color() XmtStoreWidgetColor() | Xmt{Alloc,Free,Store}[Widget]Color() XmtSymbolAddCallback() | XmtSymbol{Add,Remove}Callback() XmtSymbolGetValue() | XmtSymbol{Get,Set}Value() XmtSymbolRemoveCallback() | XmtSymbol{Add,Remove}Callback() XmtSymbolSetValue() | XmtSymbol{Get,Set}Value() XmtTemplateInstantiate() | Xmt{Lookup,Register}{Style,Template}() XmtVaRegisterCallbackProcedures() | XmtRegisterProcedures() XmtVaRegisterColors() | Xmt[Va]RegisterColor[s]() XmtVaRegisterSymbols() | XmtVaRegisterSymbols() XmtVaRegisterWidgetClasses() | Xmt[Va]RegisterWidget{Class,Constructor}() XmtVaRegisterWidgetConstructors() | Xmt[Va]RegisterWidget{Class,Constructor}() XmtWaitUntilMapped() | XmtWaitUntilMapped() XmtWarningMsg() | Xmt{Error,Warning}Msg() XmtWarpToShell() | XmtFocusShell() XmtWorkingBoxHandleEvents() | XmtWorkingBox{HandleEvents,SetScaleValue}() XmtWorkingBoxSetScaleValue() | XmtWorkingBox{HandleEvents,SetScaleValue}() Motif Tools Library Release 2.0 8