Tool modules: Gwyddion Application Library Reference Manual

## Tool modules Tool modules — Interactive tool modules |

## Functions

gboolean | gwy_tool_func_register ()
void | gwy_tool_func_foreach ()

## Includes

    #include <libgwyapp/gwyapp.h>

## Description

Tool modules implement interactive tools that work directly on data windows.

## Functions

### gwy_tool_func_register()

    gboolean
    gwy_tool_func_register (GType type);

Registeres a tool function (tool type).

#### Parameters

type | Layer type in GObject type system. That is the return value of `gwy_tool_foo_get_type()`. |

#### Returns

Normally `TRUE`; `FALSE` on failure.

### gwy_tool_func_foreach()

    void
    gwy_tool_func_foreach (GwyNameFunc function,
                           gpointer user_data);

Calls a function for each tool function.

#### Parameters

function | Function to run for each tool, passed by name. | [scope call]
user_data | Data to pass to `function` . |