Page 326 Table of Contents Index Page 328
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E



CHAPTER 30. GADGETS

Returns (or sets) the alignment of the label of the gadget labelled-gadget. Changing the alignment
a gadget may result in invoking the layout protocol on the gadget and its ancestor sheets.

=> gadget-label-text-style labelled-gadget [Generic Function]
=> (setf gadget-label-text-style) text-style labelled-gadget [Generic Function]
Returns (or sets) the text style of the label of the gadget labelled-gadget. This must be a CLIM
text style object. Changing the label text style of a gadget may result in invoking the layout
protocol on the gadget and its ancestor sheets.

=> range-gadget-mixin [Class]
The class that is mixed in to a gadget that has a range, for example, a slider.

=> :min-value [Init Arg]
=> :max-value [Init Arg]
All subclasses of range-gadget-mixin must handle these two initargs, which are used to specify
the minimum and maximum value of the gadget.

=> gadget-min-value range-gadget [Generic Function]
=> (setf gadget-min-value) min-value range-gadget [Generic Function]
Returns (or sets) the minimum value of the gadget range-gadget. It will be a real number.

=> gadget-max-value range-gadget [Generic Function]
=> (setf gadget-max-value) max-value range-gadget [Generic Function]
Returns (or sets) the maximum value of the gadget range-gadget. It will be a real number.

30.4 Abstract Gadget Classes

CLIM supplies a set of gadgets that have been designed to be compatible with with a variety
of user interface toolkits, including Xt widget-based toolkits (such as Motif), OpenLook, and
MacApp and MicroSoft Windows.

Each gadget maps to an implementation-specific object that is managed by the underlying
toolkit. For example, while a CLIM program manipulates an object of class scroll-bar, the
underlying implementation-specific object might be an Xt widget of type Xm Scroll Bar. As
events are processed on the underlying object the corresponding generic operations are applied
to the Lisp gadget.

Minor issue: Do we want to define something like gadget-handle that is a documented way
to get ahold of the underlying toolkit object? | ILA

Note that not all operations will necessarily be generated by particular toolkit implementa-
tions. For example, a user interface toolkit that is designed for a 3-button mouse may generate
significantly more gadget events than one designed for a 1-button mouse.


Page 326 Table of Contents Index Page 328
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E