~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to app/widgets/gimpcontrollerinfo.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* LIBGIMP - The GIMP Library
 
1
/* GIMP - The GNU Image Manipulation Program
2
2
 * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
3
3
 *
4
4
 * gimpcontrollerinfo.h
5
 
 * Copyright (C) 2004 Michael Natterer <mitch@gimp.org>
6
 
 *
7
 
 * This library is free software; you can redistribute it and/or
8
 
 * modify it under the terms of the GNU Lesser General Public
9
 
 * License as published by the Free Software Foundation; either
10
 
 * version 2 of the License, or (at your option) any later version.
11
 
 *
12
 
 * This library is distributed in the hope that it will be useful,
 
5
 * Copyright (C) 2004-2005 Michael Natterer <mitch@gimp.org>
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or modify
 
8
 * it under the terms of the GNU General Public License as published by
 
9
 * the Free Software Foundation; either version 2 of the License, or
 
10
 * (at your option) any later version.
 
11
 *
 
12
 * This program is distributed in the hope that it will be useful,
13
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 
 * Lesser General Public License for more details.
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
16
16
 *
17
 
 * You should have received a copy of the GNU Lesser General Public
18
 
 * License along with this library; if not, write to the
19
 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
 
 * Boston, MA 02111-1307, USA.
 
17
 * You should have received a copy of the GNU General Public License
 
18
 * along with this program; if not, write to the Free Software
 
19
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21
20
 */
22
21
 
23
 
#ifndef __GIMP_CONTROLLER_WHELL_H__
 
22
#ifndef __GIMP_CONTROLLER_INFO_H__
24
23
#define __GIMP_CONTROLLER_INFO_H__
25
24
 
26
25
 
27
 
#include "core/gimpobject.h"
 
26
#include "core/gimpviewable.h"
 
27
 
 
28
 
 
29
typedef gboolean (* GimpControllerEventSnooper) (GimpControllerInfo        *info,
 
30
                                                 GimpController            *controller,
 
31
                                                 const GimpControllerEvent *event,
 
32
                                                 gpointer                   user_data);
28
33
 
29
34
 
30
35
#define GIMP_TYPE_CONTROLLER_INFO            (gimp_controller_info_get_type ())
39
44
 
40
45
struct _GimpControllerInfo
41
46
{
42
 
  GimpObject      parent_instance;
43
 
 
44
 
  gboolean        enabled;
45
 
  gboolean        debug_events;
46
 
 
47
 
  GimpController *controller;
48
 
  GHashTable     *mapping;
 
47
  GimpViewable                parent_instance;
 
48
 
 
49
  gboolean                    enabled;
 
50
  gboolean                    debug_events;
 
51
 
 
52
  GimpController             *controller;
 
53
  GHashTable                 *mapping;
 
54
 
 
55
  GimpControllerEventSnooper  snooper;
 
56
  gpointer                    snooper_data;
49
57
};
50
58
 
51
59
struct _GimpControllerInfoClass
52
60
{
53
 
  GimpObjectClass parent_class;
 
61
  GimpViewableClass  parent_class;
54
62
 
55
63
  gboolean (* event_mapped) (GimpControllerInfo        *info,
56
64
                             GimpController            *controller,
59
67
};
60
68
 
61
69
 
62
 
GType    gimp_controller_info_get_type    (void) G_GNUC_CONST;
63
 
 
64
 
void     gimp_controller_info_set_enabled (GimpControllerInfo *info,
65
 
                                           gboolean            enabled);
66
 
gboolean gimp_controller_info_get_enabled (GimpControllerInfo *info);
 
70
GType    gimp_controller_info_get_type          (void) G_GNUC_CONST;
 
71
 
 
72
GimpControllerInfo * gimp_controller_info_new   (GType                       type);
 
73
 
 
74
void     gimp_controller_info_set_enabled       (GimpControllerInfo         *info,
 
75
                                                 gboolean                    enabled);
 
76
gboolean gimp_controller_info_get_enabled       (GimpControllerInfo         *info);
 
77
 
 
78
void     gimp_controller_info_set_event_snooper (GimpControllerInfo         *info,
 
79
                                                 GimpControllerEventSnooper  snooper,
 
80
                                                 gpointer                    snooper_data);
67
81
 
68
82
 
69
83
#endif /* __GIMP_CONTROLLER_INFO_H__ */