~ubuntu-branches/ubuntu/precise/glom/precise

« back to all changes in this revision

Viewing changes to glom/utility_widgets/gimpruler/gimpruler.h

  • Committer: Package Import Robot
  • Author(s): Daniel Holbach
  • Date: 2011-09-13 11:04:29 UTC
  • mfrom: (1.1.46 upstream)
  • Revision ID: package-import@ubuntu.com-20110913110429-39c9eh8ez2qg0aq4
Tags: 1.18.3-0ubuntu1
* New upstream release, fixes FTBFS (LP: #749267).
* debian/watch: updated.
* Updated to 1.18 ABI.
* debian/control: 
  - update build depends,
  - added libxml++2.6-dev depends to libglom-1.18-dev (LP: #736913).
* Use dh_python2.
* Don't ship internal libjs-underscore, use system version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* LIBGIMP - The GIMP Library
 
2
 * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
 
3
 *
 
4
 * This library is free software: you can redistribute it and/or
 
5
 * modify it under the terms of the GNU Lesser General Public
 
6
 * License as published by the Free Software Foundation; either
 
7
 * version 3 of the License, or (at your option) any later version.
 
8
 *
 
9
 * This library is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * Lesser General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Lesser General Public
 
15
 * License along with this library.  If not, see
 
16
 * <http://www.gnu.org/licenses/>.
 
17
 */
 
18
 
 
19
#ifndef __GIMP_RULER_H__
 
20
#define __GIMP_RULER_H__
 
21
 
 
22
/* This is not in the original gimp source code. */
 
23
#include <libgimpbase/gimpunit.h>
 
24
 
 
25
G_BEGIN_DECLS
 
26
 
 
27
#define GIMP_TYPE_RULER            (gimp_ruler_get_type ())
 
28
#define GIMP_RULER(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_RULER, GimpRuler))
 
29
#define GIMP_RULER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_RULER, GimpRulerClass))
 
30
#define GIMP_IS_RULER(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_RULER))
 
31
#define GIMP_IS_RULER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_RULER))
 
32
#define GIMP_RULER_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_RULER, GimpRulerClass))
 
33
 
 
34
/* In the original gimp source code, this is in libgimpwidgets/gimpwidgetstypes.h */
 
35
typedef struct _GimpRuler                 GimpRuler;
 
36
 
 
37
typedef struct _GimpRulerClass   GimpRulerClass;
 
38
 
 
39
struct _GimpRuler
 
40
{
 
41
  GtkWidget  parent_instance;
 
42
};
 
43
 
 
44
struct _GimpRulerClass
 
45
{
 
46
  GtkWidgetClass  parent_class;
 
47
 
 
48
  /* Padding for future expansion */
 
49
  void (*_gimp_reserved1) (void);
 
50
  void (*_gimp_reserved2) (void);
 
51
  void (*_gimp_reserved3) (void);
 
52
  void (*_gimp_reserved4) (void);
 
53
};
 
54
 
 
55
 
 
56
 
 
57
GType       gimp_ruler_get_type            (void) G_GNUC_CONST;
 
58
 
 
59
GtkWidget * gimp_ruler_new                 (GtkOrientation  orientation);
 
60
 
 
61
void        gimp_ruler_add_track_widget    (GimpRuler      *ruler,
 
62
                                            GtkWidget      *widget);
 
63
void        gimp_ruler_remove_track_widget (GimpRuler      *ruler,
 
64
                                            GtkWidget      *widget);
 
65
 
 
66
void        gimp_ruler_set_unit            (GimpRuler      *ruler,
 
67
                                            GimpUnit        unit);
 
68
GimpUnit    gimp_ruler_get_unit            (GimpRuler      *ruler);
 
69
void        gimp_ruler_set_position        (GimpRuler      *ruler,
 
70
                                            gdouble         position);
 
71
gdouble     gimp_ruler_get_position        (GimpRuler      *ruler);
 
72
void        gimp_ruler_set_range           (GimpRuler      *ruler,
 
73
                                            gdouble         lower,
 
74
                                            gdouble         upper,
 
75
                                            gdouble         max_size);
 
76
void        gimp_ruler_get_range           (GimpRuler      *ruler,
 
77
                                            gdouble        *lower,
 
78
                                            gdouble        *upper,
 
79
                                            gdouble        *max_size);
 
80
 
 
81
G_END_DECLS
 
82
 
 
83
#endif /* __GIMP_RULER_H__ */