Function gtk::test_slider_set_perc[][src]

pub fn test_slider_set_perc<P: IsA<Widget>>(widget: &P, percentage: f64)
Expand description

This function will adjust the slider position of all GtkRange based widgets, such as scrollbars or scales, it’ll also adjust spin buttons. The adjustment value of these widgets is set to a value between the lower and upper limits, according to the percentage argument.

Deprecated since 3.20

This testing infrastructure is phased out in favor of reftests.

widget

valid widget pointer.

percentage

value between 0 and 100.