Skip to main content

Type Alias: GtkScaleButtonProps

GtkScaleButtonProps = WidgetProps & object

Defined in: generated/jsx.ts:6300

Props for the GtkScaleButton widget.

Type Declaration

NameTypeDescriptionDefined in
hasFrame?booleanIf the scale button has a frame.generated/jsx.ts:6302
icons?string[]The names of the icons to be used by the scale button. The first item in the array will be used in the button when the current value is the lowest value, the second item for the highest value. All the subsequent icons will be used for all the other values, spread evenly over the range of values. If there's only one icon name in the icons array, it will be used for all the values. If only two icon names are in the icons array, the first one will be used for the bottom 50% of the scale, and the second one for the top 50%. It is recommended to use at least 3 icons so that the GtkScaleButton reflects the current value of the scale better for the users.generated/jsx.ts:6321
lower?numberThe minimum valuegenerated/jsx.ts:6344
onPopdown?(self) => void | nullEmitted to dismiss the popup. This is a keybinding signal. The default binding for this signal is Escape.generated/jsx.ts:6333
onPopup?(self) => void | nullEmitted to popup the scale widget. This is a keybinding signal. The default bindings for this signal are Space, Enter and Return.generated/jsx.ts:6342
onValueChanged?(value, self) => void | nullCallback when the value changesgenerated/jsx.ts:6354
orientation?Gtk.OrientationThe orientation of the orientable.generated/jsx.ts:6325
pageIncrement?numberThe increment for page up/downgenerated/jsx.ts:6350
pageSize?numberThe page size (usually 0 for scales)generated/jsx.ts:6352
ref?Ref<Gtk.ScaleButton>-generated/jsx.ts:6355
stepIncrement?numberThe increment for arrow keysgenerated/jsx.ts:6348
upper?numberThe maximum valuegenerated/jsx.ts:6346
value?numberThe value of the scale.generated/jsx.ts:6323