2000-06-02 01:34:56 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
|
|
*
|
|
|
|
* gimpchannel.h
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This library is free software: you can redistribute it and/or
|
2000-06-02 01:34:56 +08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-18 06:28:01 +08:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
2003-12-04 21:21:27 +08:00
|
|
|
*
|
2000-06-02 01:34:56 +08:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2003-12-04 21:21:27 +08:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2000-06-02 01:34:56 +08:00
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2009-01-18 06:28:01 +08:00
|
|
|
* License along with this library. If not, see
|
2018-07-12 05:27:07 +08:00
|
|
|
* <https://www.gnu.org/licenses/>.
|
2003-12-04 21:21:27 +08:00
|
|
|
*/
|
2000-06-02 01:34:56 +08:00
|
|
|
|
2011-04-29 01:59:52 +08:00
|
|
|
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
|
|
|
|
#error "Only <libgimp/gimp.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2000-06-02 01:34:56 +08:00
|
|
|
#ifndef __GIMP_CHANNEL_H__
|
|
|
|
#define __GIMP_CHANNEL_H__
|
|
|
|
|
2001-11-23 07:46:13 +08:00
|
|
|
G_BEGIN_DECLS
|
2000-06-02 01:34:56 +08:00
|
|
|
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
2019-08-14 03:36:03 +08:00
|
|
|
#include <libgimp/gimpdrawable.h>
|
|
|
|
|
2019-08-27 22:47:17 +08:00
|
|
|
|
2021-04-06 18:39:52 +08:00
|
|
|
#define GIMP_TYPE_CHANNEL (gimp_channel_get_type ())
|
|
|
|
G_DECLARE_DERIVABLE_TYPE (GimpChannel, gimp_channel, GIMP, CHANNEL, GimpDrawable)
|
2019-08-14 03:36:03 +08:00
|
|
|
|
|
|
|
|
|
|
|
struct _GimpChannelClass
|
|
|
|
{
|
|
|
|
GimpDrawableClass parent_class;
|
|
|
|
|
|
|
|
/* Padding for future expansion */
|
|
|
|
void (*_gimp_reserved1) (void);
|
|
|
|
void (*_gimp_reserved2) (void);
|
|
|
|
void (*_gimp_reserved3) (void);
|
|
|
|
void (*_gimp_reserved4) (void);
|
|
|
|
void (*_gimp_reserved5) (void);
|
|
|
|
void (*_gimp_reserved6) (void);
|
|
|
|
void (*_gimp_reserved7) (void);
|
|
|
|
void (*_gimp_reserved8) (void);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2023-11-20 07:20:03 +08:00
|
|
|
GimpChannel * gimp_channel_get_by_id (gint32 channel_id);
|
|
|
|
|
|
|
|
GimpChannel * gimp_channel_new (GimpImage *image,
|
|
|
|
const gchar *name,
|
|
|
|
guint width,
|
|
|
|
guint height,
|
|
|
|
gdouble opacity,
|
|
|
|
GeglColor *color);
|
2019-08-13 06:42:10 +08:00
|
|
|
|
2019-08-27 22:47:17 +08:00
|
|
|
|
2001-11-23 07:46:13 +08:00
|
|
|
G_END_DECLS
|
2000-06-02 01:34:56 +08:00
|
|
|
|
|
|
|
#endif /* __GIMP_CHANNEL_H__ */
|