GimpUi.ZoomModel¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r  | 
The zoom factor expressed as a fraction  | 
||
r/w  | 
Upper limit for the zoom factor  | 
||
r/w  | 
Lower limit for the zoom factor  | 
||
r  | 
The zoom factor expressed as a percentage  | 
||
r/w  | 
Zoom factor  | 
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
Emitted when the zoom factor of the zoom model changes.  | 
Fields¶
- Inherited:
 
Class Details¶
- class GimpUi.ZoomModel(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
A model for zoom values.
- classmethod new()¶
 - Returns:
 a new
GimpUi.ZoomModel.Since GIMP 2.4
- Return type:
 
Creates a new
GimpUi.ZoomModel.
- classmethod zoom_step(zoom_type, scale, delta)¶
 - Parameters:
 zoom_type (
GimpUi.ZoomType) – the zoom typescale (
float) – ignored unless zoom_type == %GIMP_ZOOM_TOdelta (
float) – the delta from a smooth zoom event
- Returns:
 the new scale factor
Since GIMP 2.4
- Return type:
 
Utility function to calculate a new scale factor.
- get_factor()¶
 - Returns:
 the current scale factor
Since GIMP 2.4
- Return type:
 
Retrieves the current zoom factor of self.
- get_fraction()¶
 - Returns:
 - numerator:
 return location for numerator
- denominator:
 return location for denominator
- Return type:
 
Retrieves the current zoom factor of self as a fraction.
Since GIMP 2.4
- set_range(min, max)¶
 - Parameters:
 
Sets the allowed range of the self.
Since GIMP 2.4
- zoom(zoom_type, scale)¶
 - Parameters:
 zoom_type (
GimpUi.ZoomType) – theGimpUi.ZoomTypescale (
float) – ignored unless zoom_type == %GIMP_ZOOM_TO
Since GIMP 2.4
Signal Details¶
- GimpUi.ZoomModel.signals.zoomed(zoom_model, old_factor, new_factor)¶
 - Signal Name:
 zoomed- Flags:
 - Parameters:
 zoom_model (
GimpUi.ZoomModel) – The object which received the signalold_factor (
float) – the zoom factor before it changesnew_factor (
float) – the zoom factor after it has changed.
Emitted when the zoom factor of the zoom model changes.
Property Details¶
- GimpUi.ZoomModel.props.fraction¶
 - 
The zoom factor expressed as a fraction.
 
- GimpUi.ZoomModel.props.maximum¶
 - 
The maximum zoom factor.
 
- GimpUi.ZoomModel.props.minimum¶
 - 
The minimum zoom factor.
 
- GimpUi.ZoomModel.props.percentage¶
 - 
The zoom factor expressed as percentage.