GithubHelp home page GithubHelp logo

joseluisq / vlang-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vlang/ui

0.0 2.0 0.0 676 KB

Cross-platform UI library written in V

License: GNU General Public License v3.0

V 99.80% AMPL 0.20%

vlang-ui's Introduction

V UI 0.0.2

Build Status Twitter handle

ui.window(
    width:    600
    height:   400
    title:    'V UI Demo'
    children: [
        ui.row(
            stretch: true
            margin:  {10, 10, 10, 10}
            children: [
                ui.column(
                    width:   200
                    spacing: 13
                    children: [
                        ui.textbox(
                            max_len:     20
                            width:       200
                            placeholder: 'First name'
                        )
                        ui.textbox(
                            max_len:     50
                            width:       200
                            placeholder: 'Last name'
                        )
                    ]
                )
            ]
        )
    ]
)

Installation

v up
v install ui

Running the examples

cd examples
v run users.v
v run temperature.v
v run ...

This is pre-alpha software.

V UI is a cross-platform UI toolkit written in the V programming language for Windows, macOS, Linux, and soon Android, iOS and the web (JS/WASM). V UI uses native widgets on Windows and macOS, on all other platforms the widgets are drawn by V UI. Right now only the non-native widgets are available.

This is a very early version of the library, lots of features are missing, lots of things will change.

The API is declarative, and there will be hot reloading, similar to SwiftUI and Flutter.

On Linux, V UI will be a full-featured lightweight alternative to GTK and Qt.

0.1 roadmap

Discord: #v-ui channel

Documentation will be available soon. In the meantime use the examples as the documentation. The framework is very simple and straightforward.

Dependencies

Binaries built with V UI will have no dependencies.

To develop V UI apps, you need to install V, glfw and freetype. glfw dependency will soon be removed.

macOS:
brew install glfw freetype

Debian/Ubuntu:
sudo apt install libglfw3 libglfw3-dev libfreetype6-dev

Arch/Manjaro:
sudo pacman -S glfw-x11 freetype2

Fedora:
sudo dnf install glfw glfw-devel freetype-devel

ClearLinux:
sudo swupd bundle-add devpkg-libX11 devpkg-mesa devpkg-freetype devpkg-glfw3

Windows:
v setup-freetype

License

V UI is licensed under GPL3. A commercial license will be available. Open-source projects will have access to the commercial license for free. Every single feature will be open-sourced right away and available under both licenses. At some point in the future the library will be relicensed under MIT.

Contributing

After the first contribution you will be asked to agree to a CLA, declaring that you have the right to, and actually do, grant us the rights to use your contribution.

vlang-ui's People

Contributors

medvednikov avatar alexesprit avatar thecodrr avatar spytheman avatar yuyi98 avatar hex2f avatar andoleal avatar origel avatar larpon avatar bafs avatar elimisteve avatar progamateur avatar changrui avatar dhonx avatar gladear avatar joseluisq avatar nsauzede avatar delta456 avatar radare avatar koaning avatar

Watchers

James Cloos avatar  avatar

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.