egui_cable

Crates.ioegui_cable
lib.rsegui_cable
version0.5.0
sourcesrc
created_at2022-05-24 05:04:01.02897
updated_at2023-02-21 00:29:57.141443
descriptionA generic and extensible data-oriented widget for connecting ports by cables
homepagehttps://github.com/ryo33/egui_cable
repositoryhttps://github.com/ryo33/egui_cable
max_upload_size
id592445
size116,853
Ryo Hirayama (ryo33)

documentation

README

egui_cable

GitHub MIT/Apache 2.0 Crates.io docs.rs

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

I create this for the visual programming editor of Hihaheho/Desk.

It's good for:

  • analog synthesizer-like UI
  • node-based UI
  • anything you can imagine

The code is good for studying how to write egui widgets.

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.

Simple example

Connect example

Commit count: 61

cargo fmt