- 
                Notifications
    You must be signed in to change notification settings 
- Fork 78
Home
        enderger edited this page Jun 15, 2020 
        ·
        6 revisions
      
    Nimx is a package for the Nim programming language that allows for the creation of fast, cross platform GUI applications. It can compile to native, WebAssembly/Asm.js, mobile, and more!
nimble install nimx
import nimx / [window, layout, button, text_field]
runApplication:
  let w = newWindow(newRect(50,50,500,150))
  w.makeLayout:
    - Label:
      center == super
      width == 175
      height == 30
      text: "Hello, world!"nim c -r --threads:on <filename>.nim
Nimx officially supports Linux, MacOS, Windows, Android, iOS, Javascript (with Nim JS backend) and Asm.js/WebAssembly (with Nim C backend and Emscripten).
Nimx is tested only against the latest devel version of Nim compiler. Before reporting any issues please verify that your Nim is as fresh as possible.
git clone https://github.com/yglukhov/nimx
cd nimx
nimble install -dy
nake # Build and run on the current platform
# or
nake js # Build and run in the default web browser