Code Monkey home page Code Monkey logo

beamui's Introduction

beamui

beamui is a complete rewrite of dlangui - the rich widget toolkit, written entirely in the D language.

API documentation

Contribution guide

The differences to dlangui

Please note that the library is unstable until v1.0, and minor versions may and will break API and old concepts.

Main features

  • Cross-platform (Linux, Windows, macOS)
  • CSS theming: implementation of a part of CSS 3, with few adjustments
  • Flexbox layout and a small subset of CSS Grid
  • Hardware acceleration using OpenGL 3.1+
  • Fallback to software renderer when OpenGL is not available
  • Painting API with antialiased filling and stroking of arbitrary paths

Things that are under development:

  • Component-based VDOM-like approach to declarative views
  • Virtualized list/table views
  • CSS encapsulation
  • Simple media queries
  • Dark theme, color schemes
  • Animations and transitions
  • Native dialogs
  • Formatted text
  • Localization using GNU gettext
  • HiDPI support
  • Render to texture for embedding into apps like game level editors
  • Android platform, OpenGL ES
  • Console text interfaces

This library aims to stay fairly simple and not to compete with Flutter, Avalonia, or Qt. There is no webview, no support for gestures, camera or microphone devices, no utilities for networking. I can only recommend to search for separate packages for your concrete case. Also, the library is not thread safe - all UI operations should perform in a single thread.

Build Requirements

You will need dub package manager, dmd or ldc compiler. Other compilers were not tested. Visit dlang download page for various installation methods.

Supported compiler versions are dmd ≥ 2.086, ldc ≥ 1.16.

Dependencies

pixman sdl2 x11 xext are the external dependencies. Not all configurations require them, but it's simpler to just install them all at once.

If you develop for 32-bit target, install respective 32-bit packages, e.g. on apt by adding :i386 after their names.

Ubuntu

sudo apt install libpixman-1-dev libsdl-dev libx11-dev libxext-dev

Arch Linux

sudo pacman -S --needed pixman sdl2 libx11 libxext

macOS

brew install pixman sdl2

Windows

Necessary dlls are shipped with the toolkit. dub automatically copies them into the app build folder.

To build 32-bit apps on Windows, use dub option --arch=x86_mscoff. OPTLINK is not supported anymore.

Quick Guide

Clone the repository (or download zip and unpack it):

git clone https://github.com/dayllenger/beamui.git
cd beamui

Run some examples:

dub run :basic
dub run :canvas
dub run :css

beamui's People

Contributors

bagomot avatar dayllenger avatar webfreak001 avatar

Watchers

 avatar

beamui's Issues

[QUESTION] Do you plan to continue the development of beamui?

I just wanted to just make this question. I just saw your fork and got really interesting. I'm a n00b in D and in programming in general (well not so true but that's how I feel) amd I can't take the project on may own but I will be glad to help in the future when I get a little bit more confident. So yeah, what are your plans for now?

Cannot build beamui

I'm trying to build "beamui" using dub --compiler=ldc2 -b=release --parallel. It seems that there is an error in the source code along with a couple of "deprecation" messages. The full error log can be found here. I also tried to run dub run :basic as shown in the README.md but it have the same output.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.