mirror of https://github.com/GNOME/gimp.git
app: add gimp_drawable_get_filters() which returns the filter stack
This commit is contained in:
parent
b109e05806
commit
2538d6fea7
|
@ -33,6 +33,14 @@
|
|||
#include "gimpprogress.h"
|
||||
|
||||
|
||||
GimpContainer *
|
||||
gimp_drawable_get_filters (GimpDrawable *drawable)
|
||||
{
|
||||
g_return_val_if_fail (GIMP_IS_DRAWABLE (drawable), NULL);
|
||||
|
||||
return drawable->private->filter_stack;
|
||||
}
|
||||
|
||||
void
|
||||
gimp_drawable_add_filter (GimpDrawable *drawable,
|
||||
GimpFilter *filter)
|
||||
|
|
|
@ -21,18 +21,20 @@
|
|||
#define __GIMP_DRAWABLE_FILTER_H__
|
||||
|
||||
|
||||
void gimp_drawable_add_filter (GimpDrawable *drawable,
|
||||
GimpFilter *filter);
|
||||
void gimp_drawable_remove_filter (GimpDrawable *drawable,
|
||||
GimpFilter *filter);
|
||||
GimpContainer * gimp_drawable_get_filters (GimpDrawable *drawable);
|
||||
|
||||
gboolean gimp_drawable_has_filter (GimpDrawable *drawable,
|
||||
GimpFilter *filter);
|
||||
void gimp_drawable_add_filter (GimpDrawable *drawable,
|
||||
GimpFilter *filter);
|
||||
void gimp_drawable_remove_filter (GimpDrawable *drawable,
|
||||
GimpFilter *filter);
|
||||
|
||||
void gimp_drawable_merge_filter (GimpDrawable *drawable,
|
||||
GimpFilter *filter,
|
||||
GimpProgress *progress,
|
||||
const gchar *undo_desc);
|
||||
gboolean gimp_drawable_has_filter (GimpDrawable *drawable,
|
||||
GimpFilter *filter);
|
||||
|
||||
void gimp_drawable_merge_filter (GimpDrawable *drawable,
|
||||
GimpFilter *filter,
|
||||
GimpProgress *progress,
|
||||
const gchar *undo_desc);
|
||||
|
||||
|
||||
#endif /* __GIMP_DRAWABLE_FILTER_H__ */
|
||||
|
|
Loading…
Reference in New Issue