
5 The MLWorks Motif Interface Library
The following tables contain mappings from MLWorks Motif interface library identifiers to their corresponding X Window System and Motif identifiers
| ML identifier | C identifier |
|---|---|
isMotifWMRunning | XmIsMotifWMRunning |
updateDisplay | XmUpdateDisplay |
sync | XSync |
synchronize | XSynchronize |
| ML identifier | C identifier |
|---|---|
bell | Xbell |
queryPointer | XQueryPointer |
| ML identifier | C identifier |
|---|---|
screenBlack | BlackPixelOfScreen |
screenWhite | WhitePixelOfScreen |
| ML identifier | C identifier |
|---|---|
load | XLoadFont |
free | XFreeFont |
query | XQueryFont |
textExtents | XTextExtents |
| ML identifier | C identifier |
|---|---|
create | XtCreateWidget |
createMenuBar | XmCreateMenuBar |
createPopupShell | XtCreatePopupShell |
createPulldownMenu | XmCreatePulldownMenu |
createScrolledText | XmCreateScrolledText |
createManaged | Xm.Widget.create followed by Xm.Widget.manage |
destroy | XtDestroyWidget |
manage | XtManageChild |
map | XtMapWidget |
unmanageChild | XtUnmanageChild |
unmap | XtUnMapWidget |
realize | XtRealizeWidget |
unrealize | XtUnrealizeWidget |
isRealized | XtIsRealized |
popup | XtPopup |
valuesSet | XtSetValues |
valuesGet | XtGetValues |
display | XtDisplay |
window | XtWindow |
screen | XtScreen |
parent | XtParent |
name | XtName |
processTraversal | XmProcessTraversal |
toFront | Brings widget to the front using XReconfigureWMWindow. |
| ML identifier | C identifier |
|---|---|
intern | XmInternAtom |
getname | XmGetAtomName |
| ML identifier | C identifier |
|---|---|
create | XCreatePixmap |
free | XFreePixmap |
get | XmGetPixmap |
destroy | XmDestroyPixmap |
| ML identifier | C identifier |
|---|---|
highlight | XmCascadeButtonHighlight |
| ML identifier | C identifier |
|---|---|
highlight | XmCascadeButtonGadgetHighlight |
| ML identifier | C identifier |
|---|---|
baseline | XmStringBaseline |
byteCompare | XmStringByteCompare |
compare | XmStringCompare |
concat | XmStringConcat |
copy | XmStringCopy |
create | XmStringCreate |
createLtoR | XmStringCreateLtoR |
createSimple | XmStringCreateSimple |
directionCreate | XmStringDirectionCreate |
empty | XmStringEmpty |
extent | XmStringExtent |
free | XmStringFree |
hasSubstring | XmStringHasSubstring |
height | XmStringHeight |
length | XmStringLength |
lineCount | XmStringLineCount |
nConcat | XmStringNConcat |
nCopy | XmStringNCopy |
width | XmStringWidth |
convertStringText | no corresponding identifier |
The function convertStringText is a convenience function that extracts a simple string from a compound string.
| ML identifier | C identifier |
|---|---|
getChild | XmFileSelectionBoxGetChild |
doSearch | XmFileSelectionDoSearch |
| ML identifier | C identifier |
|---|---|
add | XmFontListAdd |
copy | XmFontListCopy |
create | XmFontListCreate |
free | XmFontListFree |
| ML identifiers | C identifiers |
|---|---|
addItem | XmListAddItem |
addItemUnselected | XmListAddItemUnselected |
addItems | XmListAddItems |
deleteAllItems | XmListDeleteAllItems |
deleteItem | XmListDeleteItem |
deleteItems | XmListDeleteItems |
deleteItemsPos | XmListDeleteItemsPos |
deletePos | XmListDeletePos |
getSelectedPos | XmListGetSelectedPos |
setBottomPos | XmListSetBottomPos |
selectPos | XmListSelectPos |
setPos | XmListSetPos |
| ML identifier | C identifier |
|---|---|
getChild | XmMessageBoxGetChild |
| ML identifier | C identifier |
|---|---|
getValue | XmScaleGetValue |
setValue | XmScaleSetValue |
| ML identifier | C identifier |
|---|---|
getValues | XmScrollBarGetValues |
setValues | XmScrollBarSetValues |
| ML identifier | C identifier |
|---|---|
setAreas | XmScrolledWindowSetAreas |
| ML identifier | C identifier |
|---|---|
getChild | XmSelectionBoxGetChild |
| ML identifier | C identifier |
|---|---|
add | XmAddTabGroup |
remove | XmRemoveTabGroup |
| ML identifier | C identifier |
|---|---|
clearSelection | XmTextClearSelection |
copy | XmTextCopy |
cut | XmTextCut |
getBaseline | XmTextGetBaseline |
getEditable | XmTextGetEditable |
getMaxLength | XmTextGetMaxLength |
getInsertionPosition | XmTextGetInsertionPosition |
getLastPosition | XmTextGetLastPosition |
getSelection | XmTextGetSelection |
getSelectionPosition | XmTextGetSelectionPosition |
getString | XmTextGetString |
getTopCharacter | XmTextGetTopCharacter |
insert | XmTextInsert |
paste | XmTextPaste |
posToXY | XmTextPosToXYFailure returns (-1, -1). |
remove | XmTextRemoveIgnores return value. |
replace | XmTextReplace |
scroll | XmTextScroll |
setAddMode | XmTextSetAddMode |
setEditable | XmTextSetEditable |
setHighlight | XmTextSetHighlight |
setInsertionPosition | XmTextSetInsertionPosition |
setMaxLength | XmTextSetMaxLength |
setSelection | XmTextSetSelection |
setString | XmTextSetString |
setTopCharacter | XmTextSetTopCharacter |
showPosition | XmTextShowPosition |
xyToPos | XmTextXyToPos |
| ML identifier | C identifier |
|---|---|
getState | XmToggleButtonGetState |
setState | XmToggleButtonSetState |
| ML identifier | C identifier |
|---|---|
getState | XmToggleButtonGadgetGetState |
setState | XmToggleButtonGadgetSetState |
| ML identifier | C identifier |
|---|---|
parseTable | XtParseTranslationTable |
override | XtOverrideTranslations |
augment | XtAugmentTranslations |
uninstall | XtUninstallTranslations |
The following structures provide Xlib graphics capabilities:
| ML identifiers | C identifiers |
|---|---|
create | XCreateGC |
change | XChangeGC |
copy | XCopyGC |
free | XFreeGC |
setClipRectangles | XSetClipRectangles |
getValues | XGetGCValues |
The gc_value datatype, and the types on which it depends, enumerate the possible values that may be set in a GC. The request datatype enumerates the same values for the getValues function.
| ML interface | C interface |
|---|---|
string | XDrawString |
imageString | XDrawImageString |
line | XDrawLine |
lines | XDrawLines |
segments | XDrawSegments |
fillPolygon | XFillPolygon |
point | XDrawPoint |
points | XDrawPoints |
rectangle | XDrawRectangle |
fillRectangle | XFillRectangle |
rectangles | XDrawRectangles |
fillRectangles | XFillRectangles |
arc | XDrawArc |
fillArc | XFillArc |
arcs | XDrawArcs |
fillArcs | XFillArcs |
clearArea | XClearArea |
copyArea | XCopyArea |
copyPlane | XCopyPlane |
| ML identifier | C identifier |
|---|---|
default | DefaultColormapOfScreen |
allocColor | XAllocColor |
allocNamedColor | XAllocNamedColor |
allocColorCells | XAllocColorCells |
freeColors | XFreeColors |
storeColor | XStoreColor |
storeNamedColor | XStoreNamedColor |

Generated with Harlequin WebMaker