0.0
A long-lived project that still receives updates
Bindings for Cairo generated by GirFFI, with overrides.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.12
~> 13.0
~> 1.51
~> 0.22.0

Runtime

~> 0.17.0
 Project Readme

GirFFI-Cairo

GirFFI-based Ruby bindings for Cairo

Features/Issues

This gem allows use of Cairo from your GirFFI-based Gtk+ application. It is only a thin layer on top of the C library.

Please note that this library is in the very early stages of development. Please file bugs for any functionality that is not yet implemented.

Usage

require 'gir_ffi-cairo'

dst = Cairo::ImageSurface.new(:argb32, 400, 300)
ctx = Cairo::Context.new(dst)

Install

gem install gir_ffi-cairo

Requirements

GirFFI-Cairo needs the GirFFI gem and supports the same platforms.

In addition, it needs introspection data for the cairo library. On Debian and Ubuntu, you can get this by installing gir1.2-freedesktop.

GirFFI-Cairo has not been tested on Mac OS X or Microsoft Windows. YMMV. Pull requests to support these platforms are welcome.

Contributors

The following people have contributed to GirFFI-Cairo:

  • Natsuki Yagi
  • Matijs van Zuijlen

License

Copyright © 2012–2022 Matijs van Zuijlen

GirFFI-Cairo is free software, distributed under the terms of the GNU Lesser General Public License, version 2.1 or later. See the file COPYING.LIB for more information.