![]() |
![]() |
![]() |
Gwyddion Module Library Reference Manual | ![]() |
---|---|---|---|---|
enum GwyFileOperationType; enum GwyToolSwitchEvent; enum GwyRunType;
typedef enum { GWY_FILE_OPERATION_DETECT = 1 << 0, GWY_FILE_OPERATION_LOAD = 1 << 1, GWY_FILE_OPERATION_SAVE = 1 << 2, GWY_FILE_OPERATION_EXPORT = 1 << 3, GWY_FILE_OPERATION_MASK = 0x0f } GwyFileOperationType;
File type function file operations (capabilities).
The difference between save and export is that save is supposed to create
a file containing fairly complete representation of the container, while
export is the possibility to write some information to given file type.
Generally only native file format module implements
GWY_FILE_OPERATION_SAVE
, all others implement GWY_FILE_OPERATION_EXPORT
.
typedef enum { GWY_TOOL_SWITCH_WINDOW = 1, GWY_TOOL_SWITCH_TOOL } GwyToolSwitchEvent;
Tool switch events.
typedef enum { GWY_RUN_NONE = 0, GWY_RUN_NONINTERACTIVE = 1 << 0, GWY_RUN_INTERACTIVE = 1 << 1, GWY_RUN_IMMEDIATE = 1 << 2, GWY_RUN_MASK = 0x07 } GwyRunType;
Module function run-modes.
Note GWY_RUN_NONINTERACTIVE
is only possible for file functions,
processing functions do not have a truly non-interactive interface yet and
therefore they should not claim they support it. The closest match for
process functions is GWY_RUN_IMMEDIATE
.