Gtk.SpinButton.prototype.get_snap_to_ticks

function get_snap_to_ticks():Boolean {
    // Gjs wrapper for gtk_spin_button_get_snap_to_ticks()
}

Returns whether the values are corrected to the nearest step. See Gtk.set_snap_to_ticks.

Returns

true if values are snapped to the nearest step