1 2@c %start of fragment 3 4@deftp Class <gtk-hscale> 5Derives from @code{<gtk-scale>}. 6 7This class defines no direct slots. 8 9@end deftp 10 11@deffn Function gtk-hscale-new (adjustment@tie{}@code{<gtk-adjustment>}) @result{}@tie{} (ret@tie{}@code{<gtk-widget>}) 12Creates a new @code{<gtk-hscale>}. 13 14@table @var 15@item adjustment 16the @code{<gtk-adjustment>} which sets the range of the scale. 17 18@item ret 19a new @code{<gtk-hscale>}. 20 21@end table 22 23@end deffn 24 25@deffn Function gtk-hscale-new-with-range (min@tie{}@code{double}) (max@tie{}@code{double}) (step@tie{}@code{double}) @result{}@tie{} (ret@tie{}@code{<gtk-widget>}) 26Creates a new horizontal scale widget that lets the user input a number between 27@var{min} and @var{max} (including @var{min} and @var{max}) with the increment 28@var{step}. @var{step} must be nonzero; it's the distance the slider moves when 29using the arrow keys to adjust the scale value. 30 31Note that the way in which the precision is derived works best if @var{step} is 32a power of ten. If the resulting precision is not suitable for your needs, use 33@code{gtk-scale-set-digits} to correct it. 34 35@table @var 36@item min 37minimum value 38 39@item max 40maximum value 41 42@item step 43step increment (tick size) used with keyboard shortcuts 44 45@item ret 46a new @code{<gtk-hscale>} 47 48@end table 49 50@end deffn 51 52 53@c %end of fragment 54