# nimx **Repository Path**: rockhacker/nimx ## Basic Information - **Project Name**: nimx - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-05-05 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README =========== nimx |travis| |nimble| =========== .. |travis| image:: https://travis-ci.org/yglukhov/nimx.svg?branch=master :target: https://travis-ci.org/yglukhov/nimx .. |nimble| image:: https://raw.githubusercontent.com/yglukhov/nimble-tag/master/nimble_js.png :target: https://github.com/yglukhov/nimble-tag Cross-platform GUI framework in `Nim `_. `Live demo in WebGL `_ .. image:: ./doc/sample-screenshot.png Quick start =========== Installation ------------ .. code-block:: sh nimble install nimx Usage ------------ .. code-block:: nim # File: main.nim import nimx.window import nimx.text_field import nimx.system_logger # Required because of Nim bug (#4433) proc startApp() = # First create a window. Window is the root of view hierarchy. var wnd = newWindow(newRect(40, 40, 800, 600)) # Create a static text field and add it to view hierarchy let label = newLabel(newRect(20, 20, 150, 20)) label.text = "Hello, world!" wnd.addSubview(label) # Run the app runApplication: startApp() Running ------------ Unix: .. code-block:: sh nim c -r --noMain --threads:on main.nim Windows: .. code-block:: sh nim c -r --threads:on main.nim Supported target platforms ------------ Nimx officially supports Linux, MacOS, Windows, Android, iOS, Javascript (with Nim JS backend) and Asm.js (with Nim C backend and `Emscripten `_). Troubleshooting ------------ 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. Running nimx samples ==================== .. code-block:: sh cd $(nimble path nimx | tail -n 1)/test nake # Build and run on the current platform # or nake js # Build and run in default web browser Reference ==================== TODO