Basics
Guides
API Reference
Basics
Guides
API Reference
[486:7] extends: object
Generated low-level callback wrapper for GIR callback popup.
ScaleButtonPopupCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[416:7] extends: object
Generated low-level callback wrapper for GIR callback popdown.
ScaleButtonPopdownCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[556:7] extends: object
Generated low-level callback wrapper for GIR callback value-changed.
ScaleButtonValuechangedCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, value, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[626:14] static extends: object
Generated metadata helpers for ScaleButton class surfaces.
properties ()
Returns property metadata for
ScaleButton.
A list.signals ()
Returns signal metadata for
ScaleButton.
A list.[19:7] extends: object
Provides a button which pops up a scale widget. This kind of widget is
commonly used for volume controls in multimedia applications, and GTK
provides a [class@Gtk.VolumeButton] subclass that is tailored for this use
case. # Shortcuts and Gestures The following signals have default
keybindings: - [signal@Gtk.ScaleButton::popup] # CSS nodes scalebutton.scale ╰── button.toggle ╰── <icon> GtkScaleButton has a
single CSS node with name scalebutton and .scale style class, and contains
a button node with a .toggle style class.
ScaleButton (min = null, max = null, step = null, icons = null)
Creates a
GtkScaleButton. The new scale button has a range between @min and @max, with a stepping of @step.
min is the minimum value of the scale (usually 0).max is the maximum value of the scale (usually 100).step is the stepping of value when a scroll-wheel event, or up/down arrow event occurs (usually 2).icons is a %NULL-terminated array of icon names, or %NULL if you want to set the list later with gtk_scale_button_set_icons().toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asWidget ()
Wraps this handle as
Widget.
A Widget object.asAccessible ()
Wraps this handle as
Accessible.
A Accessible object.asAccessibleRange ()
Wraps this handle as
AccessibleRange.
A AccessibleRange object.asBuildable ()
Wraps this handle as
Buildable.
A Buildable object.asConstraintTarget ()
Wraps this handle as
ConstraintTarget.
A ConstraintTarget object.asOrientable ()
Wraps this handle as
Orientable.
A Orientable object.connectSignal (string Name, CallbackObj)
Connects one generated callback wrapper to a named signal.
Name is the signal name.CallbackObj is the generated callback wrapper to connect.The connected handler id.disconnectSignalHandler (int HandlerId)
Disconnects one retained signal handler id.
HandlerId is the signal handler id to disconnect.None.setOnPopdown (callback Fn, UserData = null)
Emitted to dismiss the popup. This is a keybinding signal. The default binding for this signal is Escape.
Fn is the Aussom callback.Fn is called with (ScaleButton Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnPopup (callback Fn, UserData = null)
Emitted to popup the scale widget. This is a keybinding signal. The default bindings for this signal are Space, Enter and Return.
Fn is the Aussom callback.Fn is called with (ScaleButton Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnValuechanged (callback Fn, UserData = null)
Emitted when the value field has changed.
Fn is the Aussom callback.Fn is called with (ScaleButton Self, double Value).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setAdjustment (object Value)
The
GtkAdjustmentthat is used as the model.
Value is the new property value.None.setHasframe (bool Value)
If the scale button has a frame.
Value is the new property value.None.setValue (double Value)
The value of the scale.
Value is the new property value.None.get_active ()
Queries a
GtkScaleButtonand returns its current state. Returns %TRUE if the scale button is pressed in and %FALSE if it is raised.
get_adjustment ()
Gets the
GtkAdjustmentassociated with theGtkScaleButton’s scale. See [method@Gtk.Range.get_adjustment] for details.
get_has_frame ()
Returns whether the button has a frame.
get_minus_button ()
Retrieves the minus button of the
GtkScaleButton.
get_plus_button ()
Retrieves the plus button of the
GtkScaleButton.
get_popup ()
Retrieves the popup of the
GtkScaleButton.
get_value ()
Gets the current value of the scale button.
set_adjustment (object adjustment)
Sets the
GtkAdjustmentto be used as a model for theGtkScaleButton’s scale. See [method@Gtk.Range.set_adjustment] for details.
adjustment is a GtkAdjustment.None.set_has_frame (bool has_frame)
Sets the style of the button.
has_frame is whether the button should have a visible frame.None.set_icons (list icons)
Sets the icons to be used by the scale button.
icons is a %NULL-terminated array of icon names.None.set_value (double value)
Sets the current value of the scale. If the value is outside the minimum or maximum range values, it will be clamped to fit inside them. The scale button emits the [signal@Gtk.ScaleButton::value-changed] signal if the value changes.
value is new value of the scale button.None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.