Top |
GtkWidget * | gimp_ruler_new () |
void | gimp_ruler_set_unit () |
GimpUnit | gimp_ruler_get_unit () |
void | gimp_ruler_set_position () |
gdouble | gimp_ruler_get_position () |
void | gimp_ruler_set_range () |
void | gimp_ruler_get_range () |
void | gimp_ruler_add_track_widget () |
void | gimp_ruler_remove_track_widget () |
GtkWidget *
gimp_ruler_new (GtkOrientation orientation
);
Creates a new ruler.
Since: 2.8
void gimp_ruler_set_unit (GimpRuler *ruler
,GimpUnit unit
);
This sets the unit of the ruler.
Since: 2.8
void gimp_ruler_set_position (GimpRuler *ruler
,gdouble position
);
This sets the position of the ruler.
Since: 2.8
void gimp_ruler_set_range (GimpRuler *ruler
,gdouble lower
,gdouble upper
,gdouble max_size
);
This sets the range of the ruler.
ruler |
||
lower |
the lower limit of the ruler |
|
upper |
the upper limit of the ruler |
|
max_size |
the maximum size of the ruler used when calculating the space to leave for the text |
Since: 2.8
void gimp_ruler_get_range (GimpRuler *ruler
,gdouble *lower
,gdouble *upper
,gdouble *max_size
);
Retrieves values indicating the range and current position of a GimpRuler.
See gimp_ruler_set_range()
.
ruler |
||
lower |
location to store lower limit of the ruler, or |
|
upper |
location to store upper limit of the ruler, or |
|
max_size |
location to store the maximum size of the ruler used when
calculating the space to leave for the text, or |
Since: 2.8
void gimp_ruler_add_track_widget (GimpRuler *ruler
,GtkWidget *widget
);
Adds a "track widget" to the ruler. The ruler will connect to GtkWidget: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.
Since: 2.8
void gimp_ruler_remove_track_widget (GimpRuler *ruler
,GtkWidget *widget
);
Removes a previously added track widget from the ruler. See
gimp_ruler_add_track_widget()
.
Since: 2.8
“lower”
property “lower” double
Lower limit of ruler.
Owner: GimpRuler
Flags: Read / Write
Default value: 0
“max-size”
property “max-size” double
Maximum size of the ruler.
Owner: GimpRuler
Flags: Read / Write
Default value: 0
“orientation”
property “orientation” GtkOrientation
The orientation of the ruler.
Owner: GimpRuler
Flags: Read / Write
Default value: GTK_ORIENTATION_HORIZONTAL
“position”
property “position” double
Position of mark on the ruler.
Owner: GimpRuler
Flags: Read / Write
Default value: 0
“unit”
property“unit” GimpUnit
Unit of ruler.
Owner: GimpRuler
Flags: Read / Write
Allowed values: [0,65535]
Default value: 0