gimpdisplayshell-scale.h 2.78 KB
Newer Older
1
/* GIMP - The GNU Image Manipulation Program
Elliot Lee's avatar
Elliot Lee committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15
 * 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
16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Elliot Lee's avatar
Elliot Lee committed
17
 */
18

Michael Natterer's avatar
Michael Natterer committed
19 20
#ifndef __GIMP_DISPLAY_SHELL_SCALE_H__
#define __GIMP_DISPLAY_SHELL_SCALE_H__
Elliot Lee's avatar
Elliot Lee committed
21 22


Michael Natterer's avatar
Michael Natterer committed
23
void   gimp_display_shell_scale_setup           (GimpDisplayShell *shell);
Elliot Lee's avatar
Elliot Lee committed
24

25 26 27
gboolean gimp_display_shell_scale_revert        (GimpDisplayShell *shell);
gboolean gimp_display_shell_scale_can_revert    (GimpDisplayShell *shell);

Sven Neumann's avatar
Sven Neumann committed
28
void   gimp_display_shell_scale_set_dot_for_dot (GimpDisplayShell *shell,
Michael Natterer's avatar
Michael Natterer committed
29
                                                 gboolean          dot_for_dot);
30

Sven Neumann's avatar
Sven Neumann committed
31
void   gimp_display_shell_scale                 (GimpDisplayShell *shell,
32
                                                 GimpZoomType      zoom_type,
33
                                                 gdouble           scale);
Sven Neumann's avatar
Sven Neumann committed
34
void   gimp_display_shell_scale_to              (GimpDisplayShell *shell,
35
                                                 GimpZoomType      zoom_type,
36
                                                 gdouble           scale,
37 38
                                                 gdouble           x,
                                                 gdouble           y);
39 40
void   gimp_display_shell_scale_fit_in          (GimpDisplayShell *shell);
void   gimp_display_shell_scale_fit_to          (GimpDisplayShell *shell);
Sven Neumann's avatar
Sven Neumann committed
41
void   gimp_display_shell_scale_by_values       (GimpDisplayShell *shell,
42
                                                 gdouble           scale,
43 44 45 46 47
                                                 gint              offset_x,
                                                 gint              offset_y,
                                                 gboolean          resize_window);
void   gimp_display_shell_scale_shrink_wrap     (GimpDisplayShell *shell);

Michael Natterer's avatar
Michael Natterer committed
48 49 50
void   gimp_display_shell_scale_resize          (GimpDisplayShell *shell,
                                                 gboolean          resize_window,
                                                 gboolean          redisplay);
51
void   gimp_display_shell_scale_dialog          (GimpDisplayShell *shell);
52

Michael Natterer's avatar
Michael Natterer committed
53 54

#endif  /*  __GIMP_DISPLAY_SHELL_SCALE_H__  */