| Top |  |  |  |  | 
| GimpZoomModel * | gimp_zoom_model_new () | 
| void | gimp_zoom_model_set_range () | 
| void | gimp_zoom_model_zoom () | 
| gdouble | gimp_zoom_model_get_factor () | 
| void | gimp_zoom_model_get_fraction () | 
| GtkWidget * | gimp_zoom_button_new () | 
| gdouble | gimp_zoom_model_zoom_step () | 
void gimp_zoom_model_set_range (GimpZoomModel *model,gdouble min,gdouble max);
Sets the allowed range of the model
.
Since GIMP 2.4
void gimp_zoom_model_zoom (GimpZoomModel *model,GimpZoomType zoom_type,gdouble scale);
Since GIMP 2.4
gdouble
gimp_zoom_model_get_factor (GimpZoomModel *model);
Retrieves the current zoom factor of model
.
void gimp_zoom_model_get_fraction (GimpZoomModel *model,gint *numerator,gint *denominator);
Retrieves the current zoom factor of model
 as a fraction.
Since GIMP 2.4
GtkWidget * gimp_zoom_button_new (GimpZoomModel *model,GimpZoomType zoom_type,GtkIconSize icon_size);
gdouble gimp_zoom_model_zoom_step (GimpZoomType zoom_type,gdouble scale);
Utility function to calculate a new scale factor.
“fraction” property“fraction” gchar *
The zoom factor expressed as a fraction.
Owner: GimpZoomModel
Flags: Read
Default value: "1:1"
“maximum” property“maximum” gdouble
The maximum zoom factor.
Owner: GimpZoomModel
Flags: Read / Write
Allowed values: [0.00390625,256]
Default value: 256
“minimum” property“minimum” gdouble
The minimum zoom factor.
Owner: GimpZoomModel
Flags: Read / Write
Allowed values: [0.00390625,256]
Default value: 0.00390625
“percentage” property“percentage” gchar *
The zoom factor expressed as percentage.
Owner: GimpZoomModel
Flags: Read
Default value: "100%"
“value” property“value” gdouble
The zoom factor.
Owner: GimpZoomModel
Flags: Read / Write
Allowed values: [0.00390625,256]
Default value: 1
“zoomed” signalvoid user_function (GimpZoomModel *model, gdouble old_factor, gdouble new_factor, gpointer user_data)
Emitted when the zoom factor of the zoom model changes.
| model | the object that received the signal | |
| old_factor | the zoom factor before it changes | |
| new_factor | the zoom factor after it has changed. | |
| user_data | user data set when the signal handler was connected. | 
Flags: Run Last