Common Lisp Interface Manager 2.0 User's Guide > Chapter 10 Panes and Gadgets > 10.5 Gadgets > 10.5.3 Abstract Gadget Classes

NextPrevUpTopContentsIndex

10.5.3.7 The Slider Gadget

The slider gadget corresponds to a slider.

slider

Summary: The class that implements a slider. This is a subclass of value-gadget , oriented-gadget-mixin , range-gadget-mixin , and labelled-gadget-mixin .

:drag-callback

:show-value-p

:decimal-places

Summary: Specifies the drag callback for the slider, whether the slider should show its current value, and how many decimal places to the right of the decimal point should be displayed when the slider is showing its current value.

slider-drag-callback [Generic Function]

Arguments: slider

Summary: Returns the function that will be called when the slider's indicator is dragged. This function will be invoked with two arguments, the slider and the new value.

When this function returns nil , there is no drag callback for the gadget.

drag-callback

Arguments: slider client gadget-id value

Summary: This callback is invoked when the value of the slider is changed while the indicator is being dragged. The function stored in slider-drag-callback is called with two arguments, the slider and the new value.

The value-changed-callback is invoked only after the indicator is released after dragging it.

gadget-value [Generic Function]

Arguments: (button slider )

Summary: Returns a real number that is the value of button .

slider-pane

Summary: The class that implements a portable slider; a subclass of slider .

:number-of-tick-marks

:number-of-quanta

Summary: Specifies the number of tick marks that should be drawn on the scroll bar, and the number of quanta in the scroll bar. If the scroll bar is quantized, it will consist of discrete (rather than continuous) values.

:number-of-tick-marks and :number-of-quanta are available only in Liquid CLIM.

gadget-show-value-p [Generic Function]

Arguments: slider

Summary: Returns t if the slider shows its value; otherwise, it returns nil .

gadget-show-value-p is available only in Liquid CLIM.


Common Lisp Interface Manager 2.0 User's Guide - 22 Dec 2009

NextPrevUpTopContentsIndex