Manual Reference Pages - XMTSYMBOLSETVALUE (3)
XmtSymbolSetValue(), XmtSymbolGetValue() - set or query
the value of a symbol.
void XmtSymbolSetValue(XmtSymbol s, XtArgVal value)
void XmtSymbolGetValue(XmtSymbol s, XtArgVal *valuep)
The XmtSymbol that is to have its value queried or
For XmtSymbolSetValue(), the new value for the symbol.
For XmtSymbolGetValue(), the address at which to
store the value of the symbol.
XmtSymbolSetValue() sets the value of symbol s to value.
Recall that an XtArgVal is the type used by Xt for untyped
values passed to XtSetArg(). As when you are setting
resources, you should pass the value itself, if it will fit
within an XtArgVal, and otherwise, you should pass the
address of the value (you rarely have to do this, however,
except when you are using a double value.) Also, notice that
XmtRBuffer is a special case here-you always pass the
address of the buffer, no matter its size.
XmtSymbolGetValue() stores the current value of the symbol s
at the address specified by value. Note that valuep need not
actually be the address of an XtArgVal variable, but must be
large enough to store the value of the Symbol-you must know
the type of the symbol in order to pass an appropriate val
Note that the module that registers a symbol can obtain that
symbols value by reading it directly from the address registered
with the symbol-there is no need to read it indirectly
Chapter 12, Symbols,
XmtLookupSymbol(), XmtSymbolAddCallback(), XmtSymbolRemove
|Xmt ||XMTSYMBOLSETVALUE (3) ||Motif Tools |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.