~ubuntu-branches/ubuntu/maverick/gimp/maverick-updates

« back to all changes in this revision

Viewing changes to app/widgets/gimpwidgets-utils.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-12-09 19:44:52 UTC
  • Revision ID: james.westby@ubuntu.com-20051209194452-yggpemjlofpjqyf4
Tags: upstream-2.2.9
ImportĀ upstreamĀ versionĀ 2.2.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* The GIMP -- an image manipulation program
 
2
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
 
3
 *
 
4
 * gimpwidgets-utils.h
 
5
 * Copyright (C) 1999-2003 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
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 *
 
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.
 
20
 */
 
21
 
 
22
#ifndef __GIMP_WIDGETS_UTILS_H__
 
23
#define __GIMP_WIDGETS_UTILS_H__
 
24
 
 
25
 
 
26
void          gimp_menu_position         (GtkMenu         *menu,
 
27
                                          gint            *x,
 
28
                                          gint            *y);
 
29
void          gimp_button_menu_position  (GtkWidget       *button,
 
30
                                          GtkMenu         *menu,
 
31
                                          GtkPositionType  position,
 
32
                                          gint            *x,
 
33
                                          gint            *y);
 
34
 
 
35
void          gimp_table_attach_stock    (GtkTable        *table,
 
36
                                          gint             row,
 
37
                                          const gchar     *label_text,
 
38
                                          gdouble          yalign,
 
39
                                          GtkWidget       *widget,
 
40
                                          gint             colspan,
 
41
                                          const gchar     *stock_id);
 
42
void          gimp_enum_radio_frame_add  (GtkFrame        *frame,
 
43
                                          GtkWidget       *widget,
 
44
                                          gint             enum_value);
 
45
 
 
46
GtkIconSize   gimp_get_icon_size         (GtkWidget       *widget,
 
47
                                          const gchar     *stock_id,
 
48
                                          GtkIconSize      max_size,
 
49
                                          gint             width,
 
50
                                          gint             height);
 
51
 
 
52
const gchar * gimp_get_mod_name_shift    (void);
 
53
const gchar * gimp_get_mod_name_control  (void);
 
54
const gchar * gimp_get_mod_name_alt      (void);
 
55
const gchar * gimp_get_mod_separator     (void);
 
56
const gchar * gimp_get_mod_string        (GdkModifierType  modifiers);
 
57
gchar       * gimp_get_accel_string      (guint            key,
 
58
                                          GdkModifierType  modifiers);
 
59
 
 
60
void          gimp_get_screen_resolution (GdkScreen       *screen,
 
61
                                          gdouble         *xres,
 
62
                                          gdouble         *yres);
 
63
 
 
64
void          gimp_rgb_get_gdk_color     (const GimpRGB   *rgb,
 
65
                                          GdkColor        *gdk_color);
 
66
void          gimp_rgb_set_gdk_color     (GimpRGB         *rgb,
 
67
                                          const GdkColor  *gdk_color);
 
68
 
 
69
void          gimp_window_set_hint       (GtkWindow       *window,
 
70
                                          GimpWindowHint   hint);
 
71
 
 
72
void          gimp_dialog_set_sensitive  (GtkDialog       *dialog,
 
73
                                          gboolean         sensitive);
 
74
 
 
75
gboolean      gimp_text_buffer_load      (GtkTextBuffer   *buffer,
 
76
                                          const gchar     *filename,
 
77
                                          GError         **error);
 
78
gboolean      gimp_text_buffer_save      (GtkTextBuffer   *buffer,
 
79
                                          const gchar     *filename,
 
80
                                          gboolean         selection_only,
 
81
                                          GError         **error);
 
82
 
 
83
void      gimp_toggle_button_set_visible (GtkToggleButton *toggle,
 
84
                                          GtkWidget       *widget);
 
85
 
 
86
 
 
87
#endif /* __GIMP_WIDGETS_UTILS_H__ */