Git Product home page Git Product logo

gi-cairo-render's Introduction

gi-cairo-render

Linux Build Status Haskell

Introduction

This is a fork of the cairo Haskell module for use in conjunction with Haskell GI. It can also be used without Haskell GI with fewer dependencies than the original module.

Originally, accessing GTK+ from within Haskell used gtk2hs. These were hand written bindings, providing a higher abstraction over the underlying GTK API. The problems are, that changes inside GTK+ have to be mirrored in Haskell, which makes maintaining the module increasingly difficult. The Haskell GI module tries to simplify the maintanance by using auto generated bindings from GObject introspection data.

There is, however, nearly no GObject introspection data for cairo, as cairo is not based on the GObject data model. So the corresponding gi-cairo library, contains nearly no useful functions except creating a GI.Cairo.Context.

This library provides:

  1. A library gi-cairo-render, which is a fork of the old cairo library with the same API, but fewer dependencies. Especially it does not depend on gtk2hs-buildtools, but only on upstream c2hs. Therefore it is less likely to break when cabal or ghc are upgraded.
  2. A library gi-cairo-connector which is used to provide the glue code to plug gi-cairo-render inside gi-cairo, i.e. to actually call gi-cairo-render from GTK+.

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.