Fetch Functions

The fetch function is called by Builder Xcessory when it wants to obtain the current value displayed in the resource type editor. The fetch function does what is necessary to convert the value currently being displayed to a string representation, and returns that value to Builder Xcessory. You can convert the returned string to the proper resource type by using the Xt resource conversion mechanism.

EditorFetchFunc function prototype

The fetch function has the following function prototype:

char * EditorFetchFunc(Widget wgt, XtPointer data)

wgt Widget that is above the top-level container of your resource type editor. For an extended editor, wgt is the shell widget containing the editor. For a simple editor, wgt is the parent widget of your top-level container.

data Pointer value that you supplied in the creation function. If you did not specify a value, data is NULL.