1997-11-24 22:05:25 +00:00
|
|
|
/* The GIMP -- an image manipulation program
|
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* 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
|
1998-04-13 05:44:11 +00:00
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
1997-11-24 22:05:25 +00:00
|
|
|
*/
|
2000-12-29 15:22:01 +00:00
|
|
|
|
2001-10-31 21:20:09 +00:00
|
|
|
#ifndef __GIMP_DISPLAY_SHELL_SCALE_H__
|
|
|
|
#define __GIMP_DISPLAY_SHELL_SCALE_H__
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
|
2004-01-29 22:22:29 +00:00
|
|
|
gdouble gimp_display_shell_scale_zoom_step (GimpZoomType zoom_type,
|
|
|
|
gdouble scale);
|
|
|
|
void gimp_display_shell_scale_get_fraction (gdouble zoom_factor,
|
|
|
|
gint *numerator,
|
|
|
|
gint *denominator);
|
2003-05-05 14:48:15 +00:00
|
|
|
|
2001-10-31 21:20:09 +00:00
|
|
|
void gimp_display_shell_scale_setup (GimpDisplayShell *shell);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
2005-04-28 14:43:11 +00:00
|
|
|
void gimp_display_shell_scale_set_dot_for_dot (GimpDisplayShell *shell,
|
2001-10-31 21:20:09 +00:00
|
|
|
gboolean dot_for_dot);
|
2000-12-29 15:22:01 +00:00
|
|
|
|
2005-04-28 14:43:11 +00:00
|
|
|
void gimp_display_shell_scale (GimpDisplayShell *shell,
|
2004-01-29 22:22:29 +00:00
|
|
|
GimpZoomType zoom_type,
|
2005-04-14 11:46:07 +00:00
|
|
|
gdouble scale);
|
2005-04-28 14:43:11 +00:00
|
|
|
void gimp_display_shell_scale_to (GimpDisplayShell *shell,
|
2005-04-13 16:34:53 +00:00
|
|
|
GimpZoomType zoom_type,
|
2005-04-14 11:46:07 +00:00
|
|
|
gdouble scale,
|
2005-04-13 16:34:53 +00:00
|
|
|
gdouble x,
|
|
|
|
gdouble y);
|
2004-06-20 12:09:03 +00:00
|
|
|
void gimp_display_shell_scale_fit_in (GimpDisplayShell *shell);
|
|
|
|
void gimp_display_shell_scale_fit_to (GimpDisplayShell *shell);
|
2005-04-28 14:43:11 +00:00
|
|
|
void gimp_display_shell_scale_by_values (GimpDisplayShell *shell,
|
2004-01-29 22:22:29 +00:00
|
|
|
gdouble scale,
|
2002-02-17 11:46:39 +00:00
|
|
|
gint offset_x,
|
|
|
|
gint offset_y,
|
|
|
|
gboolean resize_window);
|
|
|
|
void gimp_display_shell_scale_shrink_wrap (GimpDisplayShell *shell);
|
|
|
|
|
2001-10-31 21:20:09 +00:00
|
|
|
void gimp_display_shell_scale_resize (GimpDisplayShell *shell,
|
|
|
|
gboolean resize_window,
|
|
|
|
gboolean redisplay);
|
2003-04-04 08:32:51 +00:00
|
|
|
void gimp_display_shell_scale_dialog (GimpDisplayShell *shell);
|
2001-10-13 12:52:30 +00:00
|
|
|
|
2001-10-31 21:20:09 +00:00
|
|
|
|
|
|
|
#endif /* __GIMP_DISPLAY_SHELL_SCALE_H__ */
|