1999-09-28 01:58:10 +08:00
|
|
|
/* The GIMP -- an image manipulation program
|
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2003-03-13 21:08:37 +08:00
|
|
|
* gimpwidgets-utils.h
|
|
|
|
* Copyright (C) 1999-2003 Michael Natterer <mitch@gimp.org>
|
1999-09-28 01:58:10 +08:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (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
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
2000-12-17 05:37:03 +08:00
|
|
|
|
2001-05-26 00:04:54 +08:00
|
|
|
#ifndef __GIMP_WIDGETS_UTILS_H__
|
|
|
|
#define __GIMP_WIDGETS_UTILS_H__
|
1999-09-28 01:58:10 +08:00
|
|
|
|
|
|
|
|
2003-06-13 22:37:00 +08:00
|
|
|
void gimp_message_box (const gchar *stock_id,
|
|
|
|
const gchar *domain,
|
|
|
|
const gchar *message,
|
2003-05-29 19:34:30 +08:00
|
|
|
GtkCallback callback,
|
|
|
|
gpointer data);
|
|
|
|
|
|
|
|
void gimp_menu_position (GtkMenu *menu,
|
|
|
|
gint *x,
|
|
|
|
gint *y,
|
2003-07-02 20:03:56 +08:00
|
|
|
gpointer data);
|
2003-05-29 19:34:30 +08:00
|
|
|
|
|
|
|
void gimp_table_attach_stock (GtkTable *table,
|
|
|
|
gint row,
|
|
|
|
const gchar *label_text,
|
|
|
|
gdouble yalign,
|
|
|
|
GtkWidget *widget,
|
|
|
|
gint colspan,
|
|
|
|
const gchar *stock_id);
|
|
|
|
|
|
|
|
GtkIconSize gimp_get_icon_size (GtkWidget *widget,
|
|
|
|
const gchar *stock_id,
|
|
|
|
GtkIconSize max_size,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
|
|
|
|
const gchar * gimp_get_mod_name_shift (void);
|
|
|
|
const gchar * gimp_get_mod_name_control (void);
|
|
|
|
const gchar * gimp_get_mod_name_alt (void);
|
|
|
|
const gchar * gimp_get_mod_separator (void);
|
|
|
|
|
|
|
|
void gimp_get_screen_resolution (GdkScreen *screen,
|
|
|
|
gdouble *xres,
|
|
|
|
gdouble *yres);
|
2002-12-20 00:33:29 +08:00
|
|
|
|
2003-06-11 00:44:44 +08:00
|
|
|
void gimp_rgb_get_gdk_color (const GimpRGB *rgb,
|
|
|
|
GdkColor *gdk_color);
|
|
|
|
|
2003-07-02 17:54:48 +08:00
|
|
|
gchar * gimp_menu_path_strip_uline (const gchar *menu_path);
|
|
|
|
|
2002-12-20 00:33:29 +08:00
|
|
|
|
2001-05-26 00:04:54 +08:00
|
|
|
#endif /* __GIMP_WIDGETS_UTILS_H__ */
|