#egui #events #ui #widgets #data-oriented #cables

egui_cable

A generic and extensible data-oriented widget for connecting ports by cables

14 releases (9 breaking)

new 0.9.0 Apr 30, 2025
0.7.0 Apr 30, 2025
0.5.0 Feb 21, 2023
0.3.0 Jun 16, 2022

#367 in GUI

Download history 2/week @ 2025-01-01 6/week @ 2025-02-12

525 downloads per month

MIT/Apache

44KB
1K SLoC

egui_cable

GitHub MIT/Apache 2.0 Crates.io docs.rs

A generic and extensible data-oriented widget for connecting ports by cables.

Nice to use for:

  • analog synthesizer-like UI
  • node-based UI

Versions

egui egui_cable
0.27 0.5
0.28 0.6
0.29 0.7

Features

  • connect ports by data
  • dynamic connect and disconnect
  • lock connection
  • custom plug widget
  • custom port widget
  • custom cable widget
  • multiple connections on a single port.
  • on-connect event
  • on-disconnect event
  • on-hover event
  • garbage collection
  • multi-touch support (help me)

Examples

Click the images to see the source code. See /examples for more examples.

Simple example

Connect example

Dependencies

~4.5–9.5MB
~93K SLoC