Whack for media creation

⚓ Rust    📅 2025-08-30    👤 surdeus    👁️ 2      

surdeus

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Whack for media creation

image

Whack should serve as an alternative to Adobe MXML, Adobe Flash, or Adobe Flex, still in initial phases of development. For beginners, it should be a media/UI creation platform of any kind, be it a game, a desktop GUI, or an editor or visualization software. It should support CSS.

One reason that motivates Whack the most is the development of UI for Linux desktop environments, where choosing HTML5 is an unusual monster pack for the job.

Rendering will occur through Skia.

This directory shows some features, and the other TODO directory contains some to-do-list, but isn't complete (and I've not migrated some notes from my phone yet).

Unlike Adobe Flash, inheritance isn't used, but logically a DisplayObject is a closed set of kinds (e.g. a bitmap, a text field, or a generic container), as well as UiComponent (which is rendered as a DisplayObject).

UiComponent is supplemented by the user through ReactiveUI, which I'm still not sure how to express correctly in Rust (but I know the Dioxus framework does it, but for the web).

Status

  1. Figuring out how event listeners should work: if we use Rc<dyn Fn()> or Rc<dyn FnMut()> (the former means we'll have to avoid mut variables and use cell mutation; the latter means Whack won't even work at all).
  2. Event listeners have the bubbling phase, and propagate events across parents when emitting a "bubbling event". There are also broadcast events (that trigger on children recursively).
  3. Figuring out how Dioxus does magic stuff with its reactive system. Would like some advices.

1 post - 1 participant

Read full topic

🏷️ Rust_feed