Name
hw_FindBrush -- find brush handle or identifier (V7.1)
Synopsis
APTR rhandle = hw_FindBrush(lua_ID *id, APTR handle);
Function
This function can be used to get a brush handle from an object identifier or an object identifier from a brush handle. If you pass a brush handle in the second parameter, hw_FindBrush() will return its object identifier in the lua_ID passed in the first parameter. If the second parameter is NULL, hw_FindBrush() will return the brush handle that matches the specified object identifier. See Object identifiers for details.

Note that hw_FindBrush() can currently only find handles to hardware brushes allocated by your plugin. Brushes allocated by Hollywood or brushes that use software bitmaps are currently unsupported.

Designer compatibility
Unsupported

Inputs
lua_ID
pointer to a lua_ID containing or receiving an object identifier
handle
handle to a brush or NULL
Results
rhandle
brush handle

Show TOC