Gocator Development Kit
 All Classes Files Functions Variables Typedefs Friends Modules Pages
kSize GdkTool_DataOutputIndexByType ( GdkTool  tool,
const kChar typeName 
)

Find the index of a tool data output by its type name.

If there are multiple tool data outputs of the same type, only the index of first instance will be returned. A full list of tool data outputs can be found in the tool config. See GdkTool_Config.

The type name of the tool data output should not be confused with its data type. See GdkToolInfo_AddToolDataOutput.

Parameters
toolTool object.
typeNameType name of the tool data output.
Returns
Index of tool data output. kSIZE_NULL if not found.