GimpUi.Ruler¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
- Inherited:
 
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
Lower limit of ruler  | 
||
r/w  | 
Maximum size of the ruler  | 
||
r/w  | 
The orientation of the ruler  | 
||
r/w  | 
Position of mark on the ruler  | 
||
r/w  | 
Unit of ruler  | 
||
r/w  | 
Upper limit of ruler  | 
Style Properties¶
- Inherited:
 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Class Details¶
- class GimpUi.Ruler(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
A ruler widget with configurable unit and orientation.
- classmethod new(orientation)¶
 - Parameters:
 orientation (
Gtk.Orientation) – the ruler’s orientation.- Returns:
 a new
GimpUi.Rulerwidget.- Return type:
 
Creates a new ruler.
New in version 2.8.
- add_track_widget(widget)¶
 - Parameters:
 widget (
Gtk.Widget) – the track widget to add
Adds a “track widget” to the ruler. The ruler will connect to
Gtk.Widget:motion-notify-event: on the track widget and update its position marker accordingly. The marker is correctly updated also for the track widget’s children, regardless of whether they are ordinary children of off-screen children.New in version 2.8.
- get_position()¶
 - Returns:
 the current position of the self widget.
- Return type:
 
New in version 2.8.
- get_range()¶
 - Returns:
 - Return type:
 
Retrieves values indicating the range and current position of a
GimpUi.Ruler. SeeGimpUi.Ruler.set_range().New in version 2.8.
- get_unit()¶
 - Returns:
 the unit currently used in the self widget.
- Return type:
 
New in version 2.8.
- remove_track_widget(widget)¶
 - Parameters:
 widget (
Gtk.Widget) – the track widget to remove
Removes a previously added track widget from the ruler. See
GimpUi.Ruler.add_track_widget().New in version 2.8.
- set_position(position)¶
 - Parameters:
 position (
float) – the position to set the ruler to
This sets the position of the ruler.
New in version 2.8.
- set_range(lower, upper, max_size)¶
 - Parameters:
 
This sets the range of the ruler.
New in version 2.8.
Property Details¶
- GimpUi.Ruler.props.lower¶
 - 
Lower limit of ruler
 
- GimpUi.Ruler.props.max_size¶
 - 
Maximum size of the ruler
 
- GimpUi.Ruler.props.orientation¶
 - Name:
 orientation- Type:
 - Default Value:
 - Flags:
 
The orientation of the ruler
- GimpUi.Ruler.props.position¶
 - 
Position of mark on the ruler
 
- GimpUi.Ruler.props.unit¶
 - Name:
 unit- Type:
 - Default Value:
 <Unit object at 0x000000000000 (GimpUnit at 0x0000000)>- Flags:
 
Unit of ruler