Code Monkey home page Code Monkey logo

widgets's Introduction

About

Warning
This library is still experimental and work-in-progress, mind that the API is not 100% stabilized.

This project implements modern and minimalistic widget library in C, which is something I wanted to have more than 10 years ago but haven’t been able to make it happen sooner. Sometimes late is better than never.

If you are interested you can have a look at the Documentation.

Install

Dependencies

This main dependency for this library is gfxprim. RPMs for SUSE and Fedora can be found in the following repositories:

Install the devel package; libgfxprim-devel.

Or there is a gentoo overlay at:

Alternatively the source is here:

And the compilation howto is at:

This library also requires json-c (libjson-c-devel), freetype fonts (freetype2-devel) and ofcourse clib. Depending which gfxprim backend, examples and features you wish to use the following devel packages may also be required: fontconfig, png, jpeg, tiff, gif (giflib), X11, xcb, xcb-keysyms (xcb-util-keysyms), Xext, alsa. For initial development it is recommended to install all of them.

Building & Running

Simply run make, then cd into examples(/subdir) and run one of the examples. You can use the example Makefiles as a template for your own application.

Installing

By default a shared object file is created which you may copy to your system (e.g. to /usr/local/lib). Alternatively you can statically compile the library into your application.

widgets's People

Contributors

metan-ucw avatar richiejp avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

richiejp

widgets's Issues

Naming of widget properties

The label widget struct has the property text, but in JSON it is named label. IMO it should be text in JSON as well (preferred by me) or label in C so that they match.

Furthermore I think naming between JSON and C should always be consistent. This is a major headache in many libraries. If C or JSON don't support a particular name, then something different should be used.

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.