Type Alias: GtkScaleButtonProps
GtkScaleButtonProps =
WidgetProps&object
Defined in: generated/jsx.ts:7835
Props for the GtkScaleButton widget.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
children? | ReactNode | - | generated/jsx.ts:7880 |
hasFrame? | boolean | If the scale button has a frame. | generated/jsx.ts:7837 |
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:7856 |
onNotify? | (self, propName) => void | null | Called when any property on this widget changes. Param The widget that emitted the notification Param The name of the property that changed (in kebab-case) | generated/jsx.ts:7886 |
onPopdown()? | (self) => void | null | Emitted to dismiss the popup. This is a keybinding signal. The default binding for this signal is Escape. | generated/jsx.ts:7868 |
onPopup()? | (self) => void | null | Emitted to popup the scale widget. This is a keybinding signal. The default bindings for this signal are Space, Enter and Return. | generated/jsx.ts:7877 |
onValueChanged()? | (self, value) => void | null | Emitted when the value field has changed. | generated/jsx.ts:7879 |
orientation? | Gtk.Orientation | The orientation of the orientable. | generated/jsx.ts:7860 |
ref? | Ref<Gtk.ScaleButton> | - | generated/jsx.ts:7889 |
value? | number | The value of the scale. | generated/jsx.ts:7858 |