Getting started

Yue is a bundle of libraries that can be used to create cross platform GUI programs, currently it includes:

Please note that there is no documentation on the base library, you have to read the header files on how to use it.

Documentation of nativeui library is part of this site.

The base library

Though the base library is undocumented, there are few guides to help you learn it:

It is strongly recommended to read all of the guides before using nativeui.

A minimal GUI program using nativeui library

#include "base/command_line.h"
#include "nativeui/nativeui.h"

#if defined(OS_WIN)
  base::CommandLine::Init(0, nullptr);
int main(int argc, const char *argv[]) {
  base::CommandLine::Init(argc, argv);

  // Initialize the global instance of nativeui.
  nu::State state;

  // Create GUI message loop.
  nu::Lifetime lifetime;

  // Create window with default options, and then show it.
  scoped_refptr<nu::Window> window(new nu::Window(nu::Window::Options()));
  window->SetContentView(new nu::Label("Hello world"));
  window->SetContentSize(nu::SizeF(400, 400));

  // Quit when window is closed.
  window->on_close.Connect([](nu::Window*) {

  // Enter message loop.

  return 0;

Building the program with prebuilt static library

There is no assumption on which build system you should use, to use Yue, you can download the archive from the Releases page, which includes header files and prebuilt static libraries of Yue.

The libyue zip archive includes following files:

If you are interested in integrating Yue into a build system, you can look into the CMakeLists.txt on which compilation options should be used.