2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2006-06-07 06:48:57 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* GimpGuide
|
|
|
|
* Copyright (C) 2003 Henrik Brix Andersen <brix@gimp.org>
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2006-06-07 06:48:57 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2006-06-07 06:48:57 +08:00
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2018-07-12 05:27:07 +08:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2006-06-07 06:48:57 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GIMP_GUIDE_H__
|
|
|
|
#define __GIMP_GUIDE_H__
|
|
|
|
|
|
|
|
|
2018-07-15 23:02:56 +08:00
|
|
|
#include "gimpauxitem.h"
|
|
|
|
|
|
|
|
|
2014-07-10 06:20:57 +08:00
|
|
|
#define GIMP_GUIDE_POSITION_UNDEFINED G_MININT
|
|
|
|
|
|
|
|
|
2006-06-07 06:48:57 +08:00
|
|
|
#define GIMP_TYPE_GUIDE (gimp_guide_get_type ())
|
|
|
|
#define GIMP_GUIDE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_GUIDE, GimpGuide))
|
|
|
|
#define GIMP_GUIDE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_GUIDE, GimpGuideClass))
|
|
|
|
#define GIMP_IS_GUIDE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_GUIDE))
|
|
|
|
#define GIMP_IS_GUIDE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_GUIDE))
|
|
|
|
#define GIMP_GUIDE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_GUIDE, GimpGuideClass))
|
|
|
|
|
|
|
|
|
2014-07-10 06:20:57 +08:00
|
|
|
typedef struct _GimpGuidePrivate GimpGuidePrivate;
|
|
|
|
typedef struct _GimpGuideClass GimpGuideClass;
|
2006-06-07 06:48:57 +08:00
|
|
|
|
|
|
|
struct _GimpGuide
|
|
|
|
{
|
2018-07-15 23:02:56 +08:00
|
|
|
GimpAuxItem parent_instance;
|
2006-06-07 06:48:57 +08:00
|
|
|
|
2014-07-10 06:20:57 +08:00
|
|
|
GimpGuidePrivate *priv;
|
2006-06-07 06:48:57 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _GimpGuideClass
|
|
|
|
{
|
2018-07-15 23:02:56 +08:00
|
|
|
GimpAuxItemClass parent_class;
|
2006-06-07 06:48:57 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2015-12-15 09:54:04 +08:00
|
|
|
GType gimp_guide_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
GimpGuide * gimp_guide_new (GimpOrientationType orientation,
|
|
|
|
guint32 guide_ID);
|
|
|
|
GimpGuide * gimp_guide_custom_new (GimpOrientationType orientation,
|
|
|
|
guint32 guide_ID,
|
2016-02-04 02:38:32 +08:00
|
|
|
GimpGuideStyle guide_style);
|
2015-12-15 09:54:04 +08:00
|
|
|
|
|
|
|
GimpOrientationType gimp_guide_get_orientation (GimpGuide *guide);
|
|
|
|
void gimp_guide_set_orientation (GimpGuide *guide,
|
|
|
|
GimpOrientationType orientation);
|
|
|
|
|
|
|
|
gint gimp_guide_get_position (GimpGuide *guide);
|
|
|
|
void gimp_guide_set_position (GimpGuide *guide,
|
|
|
|
gint position);
|
|
|
|
|
2016-02-04 02:38:32 +08:00
|
|
|
GimpGuideStyle gimp_guide_get_style (GimpGuide *guide);
|
2015-12-15 09:54:04 +08:00
|
|
|
gboolean gimp_guide_is_custom (GimpGuide *guide);
|
2014-07-10 06:20:57 +08:00
|
|
|
|
2016-02-03 21:29:23 +08:00
|
|
|
|
2006-06-07 06:48:57 +08:00
|
|
|
#endif /* __GIMP_GUIDE_H__ */
|