gimpdisplayshell-scale.h 3.02 KB
Newer Older
Elliot Lee's avatar
Elliot Lee committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* 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
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


23
24
25
26
27
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);
28

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

Sven Neumann's avatar
Sven Neumann committed
31
void   gimp_display_shell_scale_set_dot_for_dot (GimpDisplayShell *shell,
Michael Natterer's avatar
Michael Natterer committed
32
                                                 gboolean          dot_for_dot);
33

Sven Neumann's avatar
Sven Neumann committed
34
void   gimp_display_shell_scale                 (GimpDisplayShell *shell,
35
                                                 GimpZoomType      zoom_type,
36
                                                 gdouble           scale);
Sven Neumann's avatar
Sven Neumann committed
37
void   gimp_display_shell_scale_to              (GimpDisplayShell *shell,
38
                                                 GimpZoomType      zoom_type,
39
                                                 gdouble           scale,
40
41
                                                 gdouble           x,
                                                 gdouble           y);
42
43
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
44
void   gimp_display_shell_scale_by_values       (GimpDisplayShell *shell,
45
                                                 gdouble           scale,
46
47
48
49
50
                                                 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
51
52
53
void   gimp_display_shell_scale_resize          (GimpDisplayShell *shell,
                                                 gboolean          resize_window,
                                                 gboolean          redisplay);
54
void   gimp_display_shell_scale_dialog          (GimpDisplayShell *shell);
55

Michael Natterer's avatar
Michael Natterer committed
56
57

#endif  /*  __GIMP_DISPLAY_SHELL_SCALE_H__  */