app: factor file_gbr_brush_to_layer() out of the brush-to-image logic

of file-gbr-load, and add some layer handling magic that doesn't
change a thing for simple brushes, but is needed for loading brush
pipes.

(cherry picked from commit 3b89ae40d0)
This commit is contained in:
Michael Natterer
2019-02-19 23:13:59 +01:00
parent a07c086d7a
commit 13de8f2982
2 changed files with 99 additions and 47 deletions

View File

@ -19,19 +19,22 @@
#define __FILE_DATA_GBR_H__
GimpValueArray * file_gbr_load_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
const GimpValueArray *args,
GError **error);
GimpValueArray * file_gbr_load_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
const GimpValueArray *args,
GError **error);
GimpValueArray * file_gbr_save_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
const GimpValueArray *args,
GError **error);
GimpValueArray * file_gbr_save_invoker (GimpProcedure *procedure,
Gimp *gimp,
GimpContext *context,
GimpProgress *progress,
const GimpValueArray *args,
GError **error);
GimpLayer * file_gbr_brush_to_layer (GimpImage *image,
GimpBrush *brush);
#endif /* __FILE_DATA_GBR_H__ */