derofim / skui

Skia-based C++ UI framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

UI framework that uses skia as a low-level drawing toolkit. It uses the newest features of the C++ Standard library (currently targetting C++14). This including Technical Specifications (TS) that introduce "desktop" facilities such as <filesystem>.

Status

Skui is in a pre-release development phase, and the API is definitely not stable. New functionality must be accompanied by corresponding tests.

Build Status Build status

Operating System Compiler Supported Notes
Windows Visual Studio 2017 ✔️
Windows VS 2017 Clang/LLVM 6.0+ ✔️
Windows MinGW-w64 GCC 7.3+ ✔️ Requires Boost.
Windows MinGW-w64 Clang 5.0+ ✔️ Requires Boost.
Windows Intel C++ 18+ Lacks required C++17 features.
Linux GCC 7.3+ ✔️
Linux Clang 5.0+ ✔️
Linux Intel C++ 18+ Lacks required C++17 features.
Mac OS X 10.13+ XCode 9.4+ Clang 🔜 Requires LLVM libc++ build. Missing implementation of core window/application classes.
Mac OS X 10.13+ Homebrew GCC 7.3+ 🔜 Missing implementation of core window/application classes.
Mac OS X 10.13+ Homebrew Clang 6.0+ 🔜 Missing implementation of core window/application classes.

Components

Skui is subdivided in several modules which can depend on other modules but shouldn't become a dependency mess:

  • Core: basic functionality, including signals, properties, strings, paths, application, os abstraction...
  • Graphics: graphical functionality such as canvases, contexts, shapes, text, ...
  • GUI: abstraction of platform-specific UI code, including event loops, windows, ...
  • OpenGL: abstraction of platform-specific OpenGL initialization code, header differences, ...
  • ...
  • Examples: example programs showing SkUI features
  • Tests: unit tests for various components to ensure correct and expected behaviour now and in the future.

This list will grow (and change) as the library's design takes shape.

How to get started

Clone this repository

git clone https://github.com/skui-org/skui.git

After cloning this repository, make sure the submodules are up to date

cd skui
git submodule update --init --recursive

Create and navigate to a seperate build directory, e.g.

mkdir ../skui-build
cd ../skui-build

Run CMake (here, the ninja build system is used, but any generator should work fine)

cmake ../skui -G Ninja

Then build

cmake --build .

And run the tests to ensure nothing is wrong

ctest

Roadmap

0.0.x

  • establish a logical basis for UI functionality, including:
    • signals, properties, strings
    • basic drawing functionality
    • event handling
    • basic UI controls and layout engine
    • Application window and event abstraction
      • Windows
      • Linux
      • OS X
      • ...

0.1.x

  • OS Notification system implementation
    • taskbar icon
    • notifications
    • ...
  • Improve core logic and functionality.
  • OS theming of all controls and windows

0.x.x

  • More application logic (model/views, ...)
  • process handling
  • advanced drawing
  • advanced UI controls, including:
    • scrollbars
    • tables, lists, etc.
  • File I/O systems?
  • Add missing unit tests
  • Add missing documentation
  • ...

1.x.x

  • Stability and features of a basic UI framework
  • Improve platform support
  • Solve all them bugs.
  • Correct all them documentation typos.

x.x.x

  • Supreme world domination through superiour benevolent A.I.

About

Skia-based C++ UI framework

License:MIT License


Languages

Language:C++ 90.9%Language:CMake 8.9%Language:Shell 0.3%