GithubHelp home page GithubHelp logo

vtk's Introduction

vtk

A GUI "toolkit" by vktec

What?

vtk is my take on a GUI toolkit. It's incredibly minimal and adds very little on top of the libraries it wraps, preferring to simply leave the implementation details up to the user. It has no widgets of any kind, and instead allows you to draw whatever you want using Cairo, including high-quality text through PangoCairo.

In summary, vtk is a system for handling events and creating a Cairo context that will draw to the screen.

Currently, vtk only has an Xlib backend, but it could in theory be ported to other systems by using Cairo's Quartz and Win32 backends, or even to the Linux framebuffer by using Cairo's image surfaces.

Why?

There are plenty of pre-existing GUI toolkits, why create another?

My opinion on GUI toolkits is that they overcomplicate things. Most of them are huge, monolithic libraries that try to do everything at once: event handling, graphics, widgets, text, internationalization, command line argument parsing, IO, networking, etc.

vtk takes the opposite approach, aiming to do as little as possible while still being useful. In other words, it aims to be a minimal viable program.

vtk's People

Contributors

mlugg avatar silversquirl avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mlugg

vtk's Issues

Error when building vtk.

$ make
event.c: In function ‘_vtk_event_button’:
event.c:157:32: error: ISO C forbids ‘return’ with expression, in function returning void [-Werror=pedantic]
  157 |                         return _vtk_event_send_scroll(win, 1);
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
event.c:143:13: note: declared here
  143 | static void _vtk_event_button(vtk_window win, XButtonEvent ev) {
      |             ^~~~~~~~~~~~~~~~~
event.c:161:32: error: ISO C forbids ‘return’ with expression, in function returning void [-Werror=pedantic]
  161 |                         return _vtk_event_send_scroll(win, -1);
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
event.c:143:13: note: declared here
  143 | static void _vtk_event_button(vtk_window win, XButtonEvent ev) {
      |             ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:34: event.o] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.