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

Find the index of a feature by its type name.

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

The type name of the feature should not be confused with its data type. See GdkToolInfo_AddFeature.

Parameters
toolTool object.
typeNameType name of the feature.
Returns
Index of feature. kSIZE_NULL if not found.