Modules
ADT Database GTK2 GUI IP PiJAX Public Sql Stdio Subversion System Tools Xosd lua v4l2 wx
Recent Changes
Public.Parser.XML2 1.50
Public.ZeroMQ 1.1
Public.Template.Mustache 1.0
Public.Protocols.XMPP 1.4
Sql.Provider.jdbc 1.0
Popular Downloads
Public.Parser.JSON2 1.0
Public.Parser.JSON 0.2
GTK2 2.23
Public.Web.FCGI 1.8
Public.Parser.XML2 1.48
|
Module Information
Public.Image.Cairo
Viewing contents of Public_Image_Cairo-0.93/README
Pike bindings for Cairo
=======================
Has basic support for drawing with Cairo.
Backend support is currently limited to using the GTK2-module (but see
below) or using the image backend.
GTK
===
Without this patch to GTK2-2.23, the examples will not work well:
diff --git a/source/gtkwidget.pre b/source/gtkwidget.pre
index ca170e4..5c3c172 100644
--- a/source/gtkwidget.pre
+++ b/source/gtkwidget.pre
@@ -235,7 +235,6 @@ mapping size_allocate()
}
*/
-/*
mapping(string:int) allocation()
//! Returns ([ "x": xoffset, "y":yoffset, "width":xsize, "height":ysize ])
{
@@ -246,16 +245,7 @@ mapping(string:int) allocation()
ref_push_string(_STR("height")); push_int(GTK_WIDGET(THIS->obj)->allocation.height);
f_aggregate_mapping(8);
}
-*/
-GTK2.Allocation allocation()
-//! Returns a GDK2.Allocation object, which can be cast to a mapping or an
-//! array.
-{
- pgtk_verify_inited();
- push_gobjectclass((GtkAllocation *)THIS->obj,pgtk_allocation_program);
-}
-
void add_accelerator(string accel_signal, GTK2.AccelGroup accel_group,
int accel_key, int accel_mods, int accel_flags);
//! Installs an accelerator in accel_group that causes accel_signal to be
|
|
|