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
|
|
|
|
2019-08-14 03:36:03 +08:00
|
|
|
#define GIMP_TYPE_CHANNEL (gimp_channel_get_type ())
|
|
|
|
#define GIMP_CHANNEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_CHANNEL, GimpChannel))
|
|
|
|
#define GIMP_CHANNEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_CHANNEL, GimpChannelClass))
|
|
|
|
#define GIMP_IS_CHANNEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_CHANNEL))
|
|
|
|
#define GIMP_IS_CHANNEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_CHANNEL))
|
|
|
|
#define GIMP_CHANNEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_CHANNEL, GimpChannelClass))
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _GimpChannelClass GimpChannelClass;
|
2019-08-27 22:47:17 +08:00
|
|
|
typedef struct _GimpChannelPrivate GimpChannelPrivate;
|
2019-08-14 03:36:03 +08:00
|
|
|
|
|
|
|
struct _GimpChannel
|
|
|
|
{
|
2019-08-27 22:47:17 +08:00
|
|
|
GimpDrawable parent_instance;
|
|
|
|
|
|
|
|
GimpChannelPrivate *priv;
|
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);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-09-03 16:24:24 +08:00
|
|
|
GType gimp_channel_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
GimpChannel * gimp_channel_get_by_id (gint32 channel_id);
|
|
|
|
|
|
|
|
GimpChannel * gimp_channel_new (GimpImage *image,
|
|
|
|
const gchar *name,
|
|
|
|
guint width,
|
|
|
|
guint height,
|
|
|
|
gdouble opacity,
|
|
|
|
const GimpRGB *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__ */
|