home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / plug-ins / gap / gap_mod_layer.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-24  |  2.5 KB  |  77 lines

  1. /* gap_mod_layer.h
  2.  * 1998.10.14 hof (Wolfgang Hofer)
  3.  *
  4.  * GAP ... Gimp Animation Plugins
  5.  *
  6.  * This Module contains:
  7.  * modify Layer (perform actions (like raise, set visible, apply filter)
  8.  *               - foreach selected layer
  9.  *               - in each frame of the selected framerange)
  10.  *
  11.  */
  12. /* The GIMP -- an image manipulation program
  13.  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  14.  *
  15.  * This program is free software; you can redistribute it and/or modify
  16.  * it under the terms of the GNU General Public License as published by
  17.  * the Free Software Foundation; either version 2 of the License, or
  18.  * (at your option) any later version.
  19.  *
  20.  * This program is distributed in the hope that it will be useful,
  21.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  22.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  23.  * GNU General Public License for more details.
  24.  *
  25.  * You should have received a copy of the GNU General Public License
  26.  * along with this program; if not, write to the Free Software
  27.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  28.  */
  29.  
  30. /* revision history:
  31.  * version 0.98.00   1998.11.27  hof: - use new module gap_pdb_calls.h
  32.  * version 0.97.00              hof: - created module (as extract gap_fileter_foreach)
  33.  */
  34.  
  35. #ifndef _GAP_MOD_LAYER_H
  36. #define _GAP_MOD_LAYER_H
  37.  
  38. #define MAX_LAYERNAME 128
  39.  
  40. /* action_mode values */
  41. #define     ACM_SET_VISIBLE    0
  42. #define     ACM_SET_INVISIBLE  1
  43. #define     ACM_SET_LINKED        2
  44. #define     ACM_SET_UNLINKED   3
  45. #define     ACM_RAISE          4
  46. #define     ACM_LOWER          5
  47. #define     ACM_MERGE_EXPAND   6
  48. #define     ACM_MERGE_IMG      7
  49. #define     ACM_MERGE_BG       8
  50. #define     ACM_APPLY_FILTER   9
  51. #define     ACM_DUPLICATE     10
  52. #define     ACM_DELETE        11
  53. #define     ACM_RENAME        12
  54.  
  55. typedef struct
  56. {
  57.   gint32 layer_id;
  58.   gint   visible;
  59.   gint   selected;
  60. }  t_LayliElem;
  61.  
  62. t_LayliElem *p_alloc_layli(gint32 image_id, gint32 *l_sel_cnt, gint *nlayers,
  63.                    gint32 sel_mode,
  64.                    gint32 sel_case,
  65.                gint32 sel_invert,
  66.                    char *sel_pattern );
  67. int  p_get_1st_selected (t_LayliElem * layli_ptr, gint nlayers);
  68. void p_prevent_empty_image(gint32 image_id);
  69.  
  70. gint gap_mod_layer(GimpRunModeType run_mode, gint32 image_id,
  71.                    gint32 range_from,  gint32 range_to,
  72.                    gint32 action_mode, gint32 sel_mode,
  73.                    gint32 sel_case, gint32 sel_invert,
  74.                    char *sel_pattern, char *new_layername);
  75.  
  76. #endif
  77.