21 releases

0.1.20 Jan 21, 2024
0.1.19 Jan 16, 2024
0.1.10 Dec 30, 2023
0.1.0 Jun 21, 2023

#10 in #cross-platform-ui

Download history 27/week @ 2023-12-29 57/week @ 2024-01-05 61/week @ 2024-01-12 6/week @ 2024-01-19 5/week @ 2024-02-23 3/week @ 2024-03-01 6/week @ 2024-03-08 2/week @ 2024-03-15 13/week @ 2024-03-29 128/week @ 2024-04-05 13/week @ 2024-04-12

154 downloads per month

MIT license

2.5MB
17K SLoC

TheFramework is an abstraction layer for your application or game. You create your app inside a trait, pass it to TheFramework and it will run on all currently supported application backends.

Without any enabled options, TheFramework opens a window and provides a pixel buffer for drawing and user events (mouse, keyboard, trackpads etc). to your application trait.

UI Screenshot

UI Screenshot

Option: ui

With the ui option TheFramework becomes a full-featured UI framework for professional Desktop and Web apps.

  • Powerful and unique canvas based layout system
  • Widgets include sliders, drop down lists, text / code edits, item lists, toolbars and menu bars and even a node editor.
  • Communication via channels, create the UI, receive messages when UI elements change and sync your backend code accordingly.
  • Intelligent redrawing - only redraws widgets and canvases when needed.
  • Various integrated layouts.
  • Style and themes enabled. Configure the UI to your IP.
  • Integrated undo / redo.

The UI support is currently under development, see the uidemo example app.

I use TheFramework with the UI option for my own apps and games, notably Eldiron.

A dedicated demo and documentation website will come soon.

Option: code

The code option adds a unique and powerful visual scripting system to TheFramework.

  • Easy-to-use via drag and drop.
  • Very fast as it compiles to native closures.

Current Backends

  • Desktops via pixels and winit. This is the default backend.

  • The Web, also via pixels and winit.

  • Xcode. By compiling your app into a static library you can copy and paste it into the supplied Xcode project. This project opens a Metal surface for drawing and provides native user events from the Metal surface. This allows your app to run natively on macOS, iOS and tvOS and to deliver your app directly to the given AppStores from within Xcode.

Examples

See the examples directory for the supplied examples and how to run them.

Sponsors

None yet

Dependencies

~9–51MB
~751K SLoC