Quark
#
Modules #
quark/action
quark/app
quark/bubbles
quark/buffer
quark/checkbox
quark/css
quark/ctr
quark/dialog
quark/event
quark/font
quark/fs
quark/http
quark/index
quark/keyboard
quark/media
quark/nav
quark/os
quark/path
quark/pkg
quark/screen
quark/stepper
quark/storage
quark/test
quark/types
quark/util
quark/view
quark/window
quark/_common
quark/_event
quark/_ext
quark/_util
Quark v1.1.0 Documentation
Table of Contents
quark #
quark is a cross-platform (Android/iOS/Mac/Linux) front-end development framework. The core code is written in C++. The bottom layer is based on OpenGL drawing. The upper layer implements a streamlined typesetting engine and a JS/JSX running environment. The goal is to develop GUI applications on this basis, which can take both development speed and operation efficiency into account.
- Only
iOS
andAndroid
systems are supported for the time being, this does not includeAndroidTV
, becauseTV
applications are very different from mobile applications - From here,
Go API Index
can go toAPI Documents Index
![]() |
![]() |
![]() |
---|---|---|
Build source #
- Build must dependent
Xcode
/JDK
/Android-SDK
/python
/nodejs
. - Setting environment variable
ANDROID_SDK
andNDK
directory. - Pull dependent librarys, execute
make sync
.
Compile and install qkmake, execute make
or make install
, It takes a long time.
Simple Examples #
This is a simple program to display Hello world on the screen
import { Jsx,Application,Window } from 'quark'
new Application();
new Window().render(
<text value="Hello world" textSize={48} align="centerMiddle" />
);
You can get a more detailed Examples
Start Usage #
If you've never used Quark before, you can start from here and build your Quark program step by step.
Install qkmake from npm #
First, you need to install the toolkit provided by Quark
- Install
qkmake
using nodejsnpm
- Open
Terminal
and execute the following command:
# shell
$ sudo npm install -g qkmake
Running
qkmake
requires dependency onnodejs
andpython
And now do not support the
windows
system, you need to use it undermac
Create new project by qkmake tool #
Create a new Quark
project using the following shell
command:
# shell
$ mkdir myproj
$ cd myproj
$ qkmake init
Build project #
This step compresses and packages the JavaScript code and resource files inside the project,
If this is a new project, you can skip this step and go directly to the next step
# shell
$ qkmake build
Export project #
This step exports Xcode
or Android Studio
project,because you eventually publish the program that be a .apk
or .ipa
# shell
# export xcode ios project
$ qkmake export ios
# export android studio project
$ qkmake export android
After exporting the project, next you can open it using Xcode
and Android Studio
Quark test http server #
qkmake
provides a test http server, each time you change the js
or jsx
code, you don't have to reinstall every time.
Execute the following code to start it:
# shell
$ qkmake watch
Downloads #
- Examples demo
Android APK
Install package - Project
Source code
fromGithub