diff --git a/Makefile.am b/Makefile.am deleted file mode 100644 index 51e0a29cf..000000000 --- a/Makefile.am +++ /dev/null @@ -1,24 +0,0 @@ -SUBDIRS=clutter bindings doc examples - -if ENABLE_GTK -SUBDIRS += gtk -endif - -pcfiles = clutter-@CLUTTER_MAJORMINOR@.pc - -%-@CLUTTER_MAJORMINOR@.pc: %.pc - cp $< $@ - -pkgconfig_DATA = $(pcfiles) -pkgconfigdir = $(libdir)/pkgconfig - -EXTRA_DIST = clutter.pc.in - -CLEANFILES = $(pcfiles) - -DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc --enable-python --enable-gtk - -# Extra clean files so that maintainer-clean removes *everything* -MAINTAINERCLEANFILES = aclocal.m4 compile config.guess config.sub \ - configure depcomp install-sh ltmain.sh \ - Makefile.in missing config.h.in diff --git a/bindings/ChangeLog b/bindings/ChangeLog deleted file mode 100644 index 1ec69d5e8..000000000 --- a/bindings/ChangeLog +++ /dev/null @@ -1,99 +0,0 @@ -2006-06-23 Ross Burton - - * python/Makefile.am: - Fix -avoid-version so we don't install clutter.so.0.0.0. - -2006-06-22 Emmanuele Bassi - - * python/Makefile.am: - * python/clutter.override: - * python/clutter-base.defs: - * python/clutter-base-types.defs: Bind updated clutter.Timeline API; - bind clutter.Media interface and clutter.VideoTexture. - -2006-06-22 Emmanuele Bassi - - * python/Makefile.am: - * python/pyclutter.pc.in: Add a pkgconfig file in order to - check for bindings existence. - -2006-06-22 Emmanuele Bassi - - * python/clutter-base-types.defs: Remove ClutterActorTransform. - -2006-06-13 Matthew Allum - - * ChangeLog: - * python/Makefile.am: - * python/clutter-base-types.defs: - * python/clutter-base.defs: - * python/clutter.override: - Rename element -> actor. - Disable video texture bindings as to build again. - -2006-06-06 Matthew Allum - - * python/clutter-base.defs: - Add support for set/get_depth. Fix timeline declaration. - -2006-06-05 Emmanuele Bassi - - * python/clutter-base-types.defs: - * python/clutter-base.defs: - * python/clutter.override: Wrap new API and objects. - -2006-05-27 Emmanuele Bassi - - * python/clutter-base.defs: Make static functions appear like - package methods, e.g.: clutter_main() is clutter.main() and - not clutter.clutter_main(). Changed functions are: - C name Python name - - clutter_main - clutter.main - - clutter_stage - clutter.stage - - clutter_want_debug - clutter.want_debug - - clutter_redraw - clutter.redraw - - clutter_threads_enter - clutter.threads_enter - - clutter_threads_leave - clutter.threads_leave - - * python/clutter.override: Ignore all X11 and GL related - functions, as we don't have type definitions for them; fix typos - and cut-and-paste errors; make the threads_enter and main static - function use the pygobject threading facilities. - - * Makefile.am: Rework the build system. The defs files have been - split in two: clutter-base-types.def for the type declarations - and clutter-base.defs for the methods and functions. The python - glue code depends on two auto-generated files: clutter.defs and - clutter-types.defs; these two files includes the clutter-base - files. If the API changes, run "make update-defs": it will - create a "clutter-api.defs" which should be hand-edited and - the new sections added to the clutter-base files. This is needed - because we do some mangling of the namespace and static functions - names, so we can't rely on the h2defs generator. - -2006-05-27 Emmanuele Bassi - - API coverage: - - global functions: 71.43% (10/14) - - methods: 95.40% (83/87) - - * python/clutter.override: Implement bindings for the missing - ClutterTexture methods: - - get_base_size - - get_n_tiles - - get_x_tile_detail - - get_y_tile_detail - - * python/clutter.override: Implement the ClutterGroup.add_many - method. - -2006-05-26 Emmanuele Bassi - - * python/clutter-base.defs: - * python/clutter-base-types.defs: - * python/clutter.override: Fix ClutterGeometry bindings; - implement ClutterElementBox bindings. - - * python/Makefile.am: Use variables instead of hard-coded - file names. - diff --git a/bindings/Makefile.am b/bindings/Makefile.am deleted file mode 100644 index 0f4745056..000000000 --- a/bindings/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -SUBDIRS = - -if ENABLE_PYTHON -SUBDIRS += python -endif diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am deleted file mode 100644 index b667a4b1a..000000000 --- a/bindings/python/Makefile.am +++ /dev/null @@ -1,100 +0,0 @@ -AUTOMAKE_OPTIONS = 1.7 - -CLEANFILES = - -CLUTTER_DEFS = clutter-base.defs -CLUTTER_TYPES_DEFS = clutter-base-types.defs -CLUTTER_OVERRIDES = clutter.override - -CLEANFILES += \ - clutter.defs \ - clutter-types.defs - -EXTRA_DIST = \ - clutter-base.defs \ - clutter-base-types.defs \ - clutter.override - -clutter.defs: Makefile stamp-clutter.defs - @true -stamp-clutter.defs: $(CLUTTER_DEFS) - @echo "*** Creating clutter.defs" && \ - echo ";; -*- scheme -*-" > gen-cdefs && \ - echo ";; THIS FILE IS AUTOGENERATED" >> gen-cdefs && \ - for p in $(CLUTTER_DEFS); do \ - echo "(include \"$(top_srcdir)/bindings/python/$$p\")" >> gen-cdefs; \ - done && \ - (cmp -s gen-cdefs clutter.defs || cp gen-cdefs clutter.defs) && \ - rm -f gen-cdefs && \ - echo "timestamp" > $(@F) - -clutter-types.defs: Makefile stamp-clutter-types.defs - @true -stamp-clutter-types.defs: $(CLUTTER_TYPES_DEFS) - @echo "*** Creating clutter-types.defs" && \ - echo ";; -*- scheme -*-" > gen-ctdefs && \ - echo ";; THIS FILE IS AUTOGENERATED" >> gen-ctdefs && \ - for p in $(CLUTTER_TYPES_DEFS); do \ - echo "(include \"$(top_srcdir)/bindings/python/$$p\")" >> gen-ctdefs; \ - done && \ - (cmp -s gen-ctdefs clutter-types.defs || cp gen-ctdefs clutter-types.defs) && \ - rm -f gen-ctdefs && \ - echo "timestamp" > $(@F) - -CLEANFILES += stamp-clutter.defs stamp-clutter-types.defs - -clutter-pyglue.c: clutter.defs clutter-types.defs $(CLUTTER_OVERRIDES) - $(PYGTK_CODEGEN) \ - --register $(PYGTK_DEFSDIR)/gdk-types.defs \ - --register $(PYGTK_DEFSDIR)/gtk-types.defs \ - --register $(PYGTK_DEFSDIR)/pango-types.defs \ - --register clutter-types.defs \ - --override $(top_srcdir)/bindings/python/$(CLUTTER_OVERRIDES) \ - --prefix clutter \ - clutter.defs > gen-$@ && \ - (cmp -s $@ gen-$@ || cp gen-$@ $@) && \ - rm -f gen-$@ - -CLEANFILES += clutter-pyglue.c - -pythondir = $(libdir)/python${PY_VER}/site-packages -python_LTLIBRARIES = clutter.la - -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = pyclutter.pc - -EXTRA_DIST += pyclutter.pc.in - -INCLUDES = $(PYTHON_CFLAGS) $(PYGTK_CFLAGS) -I$(top_srcdir) $(GST_CFLAGS) $(CLUTTER_CFLAGS) - -clutter_la_SOURCES = clutter-pyglue.c cluttermodule.c -clutter_la_LIBADD = $(PYTHON_LIBS) $(PYGTK_LIBS) \ - $(GST_LIBS) \ - $(CLUTTER_LIBS) \ - $(top_builddir)/clutter/libclutter-@CLUTTER_MAJORMINOR@.la -clutter_la_LDFLAGS = -module -avoid-version -export-symbols-regex initclutter - -# Run this to update the API and then copy then newly generated -# definitions into clutter-base.defs and clutter-base-types.defs; -# it's manual, as my might do some name mangling for static -# methods. -update-defs: - $(PYTHON) $(PYGTK_CODEGENDIR)/h2def.py -v \ - $(top_srcdir)/clutter/clutter-keysyms.h \ - $(top_srcdir)/clutter/clutter-timeline.h \ - $(top_srcdir)/clutter/clutter-media.h \ - $(top_srcdir)/clutter/clutter-main.h \ - $(top_srcdir)/clutter/clutter-event.h \ - $(top_srcdir)/clutter/clutter-actor.h \ - $(top_srcdir)/clutter/clutter-rectangle.h \ - $(top_srcdir)/clutter/clutter-texture.h \ - $(top_srcdir)/clutter/clutter-video-texture.h \ - $(top_srcdir)/clutter/clutter-color.h \ - $(top_srcdir)/clutter/clutter-clone-texture.h \ - $(top_srcdir)/clutter/clutter-label.h \ - $(top_srcdir)/clutter/clutter-group.h \ - $(top_srcdir)/clutter/clutter-stage.h \ - $(top_srcdir)/clutter/clutter-enum-types.h \ - > gen-cdefs && \ - (cmp -s gen-cdefs clutter-api.def || cp gen-cdefs clutter-api.def) && \ - rm -f gen-cdefs diff --git a/bindings/python/clutter-base-types.defs b/bindings/python/clutter-base-types.defs deleted file mode 100644 index 5f3e5a5c1..000000000 --- a/bindings/python/clutter-base-types.defs +++ /dev/null @@ -1,163 +0,0 @@ -;; -*- scheme -*- -;; -;; Try and keep everything sorted -;; - -;; Boxed types - -(define-boxed Color - (in-module "Clutter") - (c-name "ClutterColor") - (gtype-id "CLUTTER_TYPE_COLOR") - (fields - '("guint8" "red") - '("guint8" "green") - '("guint8" "blue") - '("guint8" "alpha") - ) -) - -(define-boxed ActorBox - (in-module "Clutter") - (c-name "ClutterActorBox") - (gtype-id "CLUTTER_TYPE_ACTOR_BOX") - (fields - '("gint" "x1") - '("gint" "y1") - '("gint" "x2") - '("gint" "y2") - ) -) - -(define-boxed Event - (in-module "Clutter") - (c-name "ClutterEvent") - (gtype-id "CLUTTER_TYPE_EVENT") - (fields - '("ClutterEventType" "type") - ) -) - -(define-boxed Geometry - (in-module "Clutter") - (c-name "ClutterGeometry") - (gtype-id "CLUTTER_TYPE_GEOMETRY") - (fields - '("gint" "x") - '("gint" "y") - '("gint" "width") - '("gint" "height") - ) -) - -;; Enumerations and flags ... - -(define-flags ActorFlags - (in-module "Clutter") - (c-name "ClutterActorFlags") - (gtype-id "CLUTTER_TYPE_ACTOR_FLAGS") - (values - '("mapped" "CLUTTER_ACTOR_MAPPED") - '("realized" "CLUTTER_ACTOR_REALIZED") - ) -) - -(define-enum EventType - (in-module "Clutter") - (c-name "ClutterEventType") - (gtype-id "CLUTTER_TYPE_EVENT_TYPE") - (values - '("nothing" "CLUTTER_NOTHING") - '("key-press" "CLUTTER_KEY_PRESS") - '("key-release" "CLUTTER_KEY_RELEASE") - '("motion" "CLUTTER_MOTION") - '("button-press" "CLUTTER_BUTTON_PRESS") - '("2button-press" "CLUTTER_2BUTTON_PRESS") - '("button-release" "CLUTTER_BUTTON_RELEASE") - ) -) - -;; Interfaces - -(define-interface Media - (in-module "Clutter") - (c-name "ClutterMedia") - (gtype-id "CLUTTER_TYPE_MEDIA") - (vtable "ClutterMediaInterface") -) - -;; Objects - -(define-object CloneTexture - (in-module "Clutter") - (parent "ClutterActor") - (c-name "ClutterCloneTexture") - (gtype-id "CLUTTER_TYPE_CLONE_TEXTURE") -) - -(define-object Actor - (in-module "Clutter") - (parent "GObject") - (c-name "ClutterActor") - (gtype-id "CLUTTER_TYPE_ACTOR") -) - -(define-object Group - (in-module "Clutter") - (parent "ClutterActor") - (c-name "ClutterGroup") - (gtype-id "CLUTTER_TYPE_GROUP") -) - -(define-object Label - (in-module "Clutter") - (parent "ClutterTexture") - (c-name "ClutterLabel") - (gtype-id "CLUTTER_TYPE_LABEL") -) - -(define-object Rectangle - (in-module "Clutter") - (parent "ClutterActor") - (c-name "ClutterRectangle") - (gtype-id "CLUTTER_TYPE_RECTANGLE") -) - -(define-object Stage - (in-module "Clutter") - (parent "ClutterGroup") - (c-name "ClutterStage") - (gtype-id "CLUTTER_TYPE_STAGE") -) - -(define-object Texture - (in-module "Clutter") - (parent "ClutterActor") - (c-name "ClutterTexture") - (gtype-id "CLUTTER_TYPE_TEXTURE") -) - -(define-object Timeline - (in-module "Clutter") - (parent "GObject") - (c-name "ClutterTimeline") - (gtype-id "CLUTTER_TYPE_TIMELINE") -) - -(define-object VideoTexture - (in-module "Clutter") - (parent "ClutterTexture") - (implements "ClutterMedia") - (c-name "ClutterVideoTexture") - (gtype-id "CLUTTER_TYPE_VIDEO_TEXTURE") -) - - -;; Pointers - - - -;; Unsupported - - - diff --git a/bindings/python/clutter-base.defs b/bindings/python/clutter-base.defs deleted file mode 100644 index b88c033ca..000000000 --- a/bindings/python/clutter-base.defs +++ /dev/null @@ -1,1195 +0,0 @@ -;; -*- scheme -*- - -(include "clutter-base-types.defs") - -;; From ../../clutter/clutter-keysyms.h - - - -;; From ../../clutter/clutter-timeline.h - -(define-function clutter_timeline_get_type - (c-name "clutter_timeline_get_type") - (return-type "GType") -) - -(define-function clutter_timeline_new - (c-name "clutter_timeline_new") - (is-constructor-of "ClutterTimeline") - (return-type "ClutterTimeline*") - (properties - '("num-frames" (argname "frames")) - '("fps" (argsname "fps")) - ) -) - -(define-method set_speed - (of-object "ClutterTimeline") - (c-name "clutter_timeline_set_speed") - (return-type "none") - (parameters - '("guint" "fps") - ) -) - -(define-method start - (of-object "ClutterTimeline") - (c-name "clutter_timeline_start") - (return-type "none") -) - -(define-method pause - (of-object "ClutterTimeline") - (c-name "clutter_timeline_pause") - (return-type "none") -) - -(define-method stop - (of-object "ClutterTimeline") - (c-name "clutter_timeline_stop") - (return-type "none") -) - -(define-method set_loop - (of-object "ClutterTimeline") - (c-name "clutter_timeline_set_loop") - (return-type "none") - (parameters - '("gboolean" "loop") - ) -) - -(define-method get_loop - (of-object "ClutterTimeline") - (c-name "clutter_timeline_get_loop") - (return-type "gboolean") -) - -(define-method rewind - (of-object "ClutterTimeline") - (c-name "clutter_timeline_rewind") - (return-type "none") -) - -(define-method skip - (of-object "ClutterTimeline") - (c-name "clutter_timeline_skip") - (return-type "none") - (parameters - '("guint" "nframes") - ) -) - -(define-method advance - (of-object "ClutterTimeline") - (c-name "clutter_timeline_advance") - (return-type "none") - (parameters - '("guint" "frame_num") - ) -) - -(define-method get_current_frame - (of-object "ClutterTimeline") - (c-name "clutter_timeline_get_current_frame") - (return-type "gint") -) - -(define-method get_n_frames - (of-object "ClutterTimeline") - (c-name "clutter_timeline_get_n_frames") - (return-type "guint") -) - - - -;; From ../../clutter/clutter-main.h - -(define-function clutter_init - (c-name "clutter_init") - (return-type "int") - (parameters - '("int*" "argc") - '("char***" "argv") - ) -) - -(define-function main - (c-name "clutter_main") - (return-type "none") -) - -(define-function main_quit - (c-name "clutter_main_quit") - (return-type "none") -) - -(define-function redraw - (c-name "clutter_redraw") - (return-type "none") - (parameters - ) -) - -(define-function xdisplay - (c-name "clutter_xdisplay") - (return-type "Display*") -) - -(define-function xscreen - (c-name "clutter_xscreen") - (return-type "int") -) - -(define-function root_xwindow - (c-name "clutter_root_xwindow") - (return-type "Window") -) - -(define-function gl_context - (c-name "clutter_gl_context") - (return-type "GLXContext") -) - -(define-function want_debug - (c-name "clutter_want_debug") - (return-type "gboolean") -) - -(define-function threads_enter - (c-name "clutter_threads_enter") - (return-type "none") -) - -(define-function threads_leave - (c-name "clutter_threads_leave") - (return-type "none") -) - - - -;; From ../../clutter/clutter-media.h - -(define-function clutter_media_get_type - (c-name "clutter_media_get_type") - (return-type "GType") -) - -(define-method set_uri - (of-object "ClutterMedia") - (c-name "clutter_media_set_uri") - (return-type "none") - (parameters - '("const-char*" "uri") - ) -) - -(define-method get_uri - (of-object "ClutterMedia") - (c-name "clutter_media_get_uri") - (return-type "const-char*") -) - -(define-method set_playing - (of-object "ClutterMedia") - (c-name "clutter_media_set_playing") - (return-type "none") - (parameters - '("gboolean" "playing") - ) -) - -(define-method get_playing - (of-object "ClutterMedia") - (c-name "clutter_media_get_playing") - (return-type "gboolean") -) - -(define-method set_position - (of-object "ClutterMedia") - (c-name "clutter_media_set_position") - (return-type "none") - (parameters - '("int" "position") - ) -) - -(define-method get_position - (of-object "ClutterMedia") - (c-name "clutter_media_get_position") - (return-type "int") -) - -(define-method set_volume - (of-object "ClutterMedia") - (c-name "clutter_media_set_volume") - (return-type "none") - (parameters - '("double" "volume") - ) -) - -(define-method get_volume - (of-object "ClutterMedia") - (c-name "clutter_media_get_volume") - (return-type "double") -) - -(define-method get_can_seek - (of-object "ClutterMedia") - (c-name "clutter_media_get_can_seek") - (return-type "gboolean") -) - -(define-method get_buffer_percent - (of-object "ClutterMedia") - (c-name "clutter_media_get_buffer_percent") - (return-type "int") -) - -(define-method get_duration - (of-object "ClutterMedia") - (c-name "clutter_media_get_duration") - (return-type "int") -) - -(define-method set_filename - (of-object "ClutterMedia") - (c-name "clutter_media_set_filename") - (return-type "none") - (parameters - '("const-gchar*" "filename") - ) -) - - - -;; From ../../clutter/clutter-event.h - -(define-function clutter_event_new - (c-name "clutter_event_new") - (is-constructor-of "ClutterEvent") - (return-type "ClutterEvent*") - (parameters - '("ClutterEventType" "type") - ) -) - -(define-method copy - (of-object "ClutterEvent") - (c-name "clutter_event_copy") - (return-type "ClutterEvent*") -) - -(define-method free - (of-object "ClutterEvent") - (c-name "clutter_event_free") - (return-type "none") -) - -(define-method type - (of-object "ClutterKeyEvent") - (c-name "clutter_key_event_type") - (return-type "ClutterEventType") -) - -(define-method time - (of-object "ClutterKeyEvent") - (c-name "clutter_key_event_time") - (return-type "guint32") -) - -(define-method state - (of-object "ClutterKeyEvent") - (c-name "clutter_key_event_state") - (return-type "guint") -) - -(define-method symbol - (of-object "ClutterKeyEvent") - (c-name "clutter_key_event_symbol") - (return-type "guint") -) - -(define-method code - (of-object "ClutterKeyEvent") - (c-name "clutter_key_event_code") - (return-type "guint16") -) - -(define-method unicode - (of-object "ClutterKeyEvent") - (c-name "clutter_key_event_unicode") - (return-type "guint32") -) - -(define-function clutter_keysym_to_unicode - (c-name "clutter_keysym_to_unicode") - (return-type "guint32") - (parameters - '("guint" "keyval") - ) -) - - - -;; From ../../clutter/clutter-actor.h - -(define-function clutter_geometry_get_type - (c-name "clutter_geometry_get_type") - (return-type "GType") -) - -;;(define-function geometry_new -;; (c-name "clutter_geometry_new") -;; (is-constructor-of "ClutterGeometry") -;; (return-type "ClutterGeometry") -;;) - -(define-function clutter_actor_box_get_type - (c-name "clutter_actor_box_get_type") - (return-type "GType") -) - -;;(define-function actor_box_new -;; (c-name "clutter_actor_box_new") -;; (is-constructor-of "ClutterActorBox") -;; (return-type "ClutterActorBox") -;;) - -(define-function clutter_actor_get_type - (c-name "clutter_actor_get_type") - (return-type "GType") -) - -(define-method show - (of-object "ClutterActor") - (c-name "clutter_actor_show") - (return-type "none") -) - -(define-method hide - (of-object "ClutterActor") - (c-name "clutter_actor_hide") - (return-type "none") -) - -(define-method realize - (of-object "ClutterActor") - (c-name "clutter_actor_realize") - (return-type "none") -) - -(define-method unrealize - (of-object "ClutterActor") - (c-name "clutter_actor_unrealize") - (return-type "none") -) - -(define-method paint - (of-object "ClutterActor") - (c-name "clutter_actor_paint") - (return-type "none") -) - -(define-method queue_redraw - (of-object "ClutterActor") - (c-name "clutter_actor_queue_redraw") - (return-type "none") -) - -(define-method request_coords - (of-object "ClutterActor") - (c-name "clutter_actor_request_coords") - (return-type "none") - (parameters - '("ClutterActorBox*" "box") - ) -) - -(define-method allocate_coords - (of-object "ClutterActor") - (c-name "clutter_actor_allocate_coords") - (return-type "none") - (parameters - '("ClutterActorBox*" "box") - ) -) - -(define-method set_geometry - (of-object "ClutterActor") - (c-name "clutter_actor_set_geometry") - (return-type "none") - (parameters - '("ClutterGeometry*" "geom") - ) -) - -(define-method get_geometry - (of-object "ClutterActor") - (c-name "clutter_actor_get_geometry") - (return-type "none") - (parameters - '("ClutterGeometry*" "geom") - ) -) - -(define-method get_coords - (of-object "ClutterActor") - (c-name "clutter_actor_get_coords") - (return-type "none") - (parameters - '("gint*" "x1") - '("gint*" "y1") - '("gint*" "x2") - '("gint*" "y2") - ) -) - -(define-method set_position - (of-object "ClutterActor") - (c-name "clutter_actor_set_position") - (return-type "none") - (parameters - '("gint" "x") - '("gint" "y") - ) -) - -(define-method set_size - (of-object "ClutterActor") - (c-name "clutter_actor_set_size") - (return-type "none") - (parameters - '("gint" "width") - '("gint" "height") - ) -) - -(define-method get_abs_position - (of-object "ClutterActor") - (c-name "clutter_actor_get_abs_position") - (return-type "none") - (parameters - '("gint*" "x") - '("gint*" "y") - ) -) - -(define-method get_width - (of-object "ClutterActor") - (c-name "clutter_actor_get_width") - (return-type "guint") -) - -(define-method get_height - (of-object "ClutterActor") - (c-name "clutter_actor_get_height") - (return-type "guint") -) - -(define-method get_x - (of-object "ClutterActor") - (c-name "clutter_actor_get_x") - (return-type "gint") -) - -(define-method get_y - (of-object "ClutterActor") - (c-name "clutter_actor_get_y") - (return-type "gint") -) - -(define-method rotate_z - (of-object "ClutterActor") - (c-name "clutter_actor_rotate_z") - (return-type "none") - (parameters - '("gfloat" "angle") - '("gint" "x") - '("gint" "y") - ) -) - -(define-method rotate_x - (of-object "ClutterActor") - (c-name "clutter_actor_rotate_x") - (return-type "none") - (parameters - '("gfloat" "angle") - '("gint" "y") - '("gint" "z") - ) -) - -(define-method rotate_y - (of-object "ClutterActor") - (c-name "clutter_actor_rotate_y") - (return-type "none") - (parameters - '("gfloat" "angle") - '("gint" "x") - '("gint" "z") - ) -) - -(define-method set_opacity - (of-object "ClutterActor") - (c-name "clutter_actor_set_opacity") - (return-type "none") - (parameters - '("guint8" "opacity") - ) -) - -(define-method get_opacity - (of-object "ClutterActor") - (c-name "clutter_actor_get_opacity") - (return-type "guint8") -) - -(define-method set_name - (of-object "ClutterActor") - (c-name "clutter_actor_set_name") - (return-type "none") - (parameters - '("const-gchar*" "id") - ) -) - -(define-method get_name - (of-object "ClutterActor") - (c-name "clutter_actor_get_name") - (return-type "const-gchar*") -) - -(define-method get_id - (of-object "ClutterActor") - (c-name "clutter_actor_get_id") - (return-type "guint32") -) - -(define-method set_clip - (of-object "ClutterActor") - (c-name "clutter_actor_set_clip") - (return-type "none") - (parameters - '("gint" "xoff") - '("gint" "yoff") - '("gint" "width") - '("gint" "height") - ) -) - -(define-method remove_clip - (of-object "ClutterActor") - (c-name "clutter_actor_remove_clip") - (return-type "none") -) - -(define-method set_parent - (of-object "ClutterActor") - (c-name "clutter_actor_set_parent") - (return-type "none") - (parameters - '("ClutterActor*" "parent") - ) -) - -(define-method get_parent - (of-object "ClutterActor") - (c-name "clutter_actor_get_parent") - (return-type "ClutterActor*") -) - -(define-method raise - (of-object "ClutterActor") - (c-name "clutter_actor_raise") - (return-type "none") - (parameters - '("ClutterActor*" "below") - ) -) - -(define-method lower - (of-object "ClutterActor") - (c-name "clutter_actor_lower") - (return-type "none") - (parameters - '("ClutterActor*" "above") - ) -) - -(define-method raise_top - (of-object "ClutterActor") - (c-name "clutter_actor_raise_top") - (return-type "none") -) - -(define-method lower_bottom - (of-object "ClutterActor") - (c-name "clutter_actor_lower_bottom") - (return-type "none") -) - -(define-method set_depth - (of-object "ClutterActor") - (c-name "clutter_actor_set_depth") - (return-type "none") - (parameters - '("gint" "depth") - ) -) - -(define-method get_depth - (of-object "ClutterActor") - (c-name "clutter_actor_get_depth") - (return-type "gint") -) - -;; From ../../clutter/clutter-rectangle.h - -(define-function clutter_rectangle_new - (c-name "clutter_rectangle_new") - (is-constructor-of "ClutterRectangle") - (return-type "ClutterActor*") -) - -(define-function clutter_rectangle_new_with_color - (c-name "clutter_rectangle_new_with_color") - (is-constructor-of "ClutterRectangle") - (return-type "ClutterActor*") - (properties - '("color" (argname "color")) - ) -) - -(define-method get_color - (of-object "ClutterRectangle") - (c-name "clutter_rectangle_get_color") - (return-type "none") - (parameters - '("ClutterColor*" "color") - ) -) - -(define-method set_color - (of-object "ClutterRectangle") - (c-name "clutter_rectangle_set_color") - (return-type "none") - (parameters - '("const-ClutterColor*" "color") - ) -) - - - -;; From ../../clutter/clutter-texture.h - -(define-function clutter_texture_get_type - (c-name "clutter_texture_get_type") - (return-type "GType") -) - -(define-function clutter_texture_new_from_pixbuf - (c-name "clutter_texture_new_from_pixbuf") - (return-type "ClutterActor*") - (parameters - '("GdkPixbuf*" "pixbuf") - ) -) - -(define-function clutter_texture_new - (c-name "clutter_texture_new") - (is-constructor-of "ClutterTexture") - (return-type "ClutterActor*") -) - -(define-method set_pixbuf - (of-object "ClutterTexture") - (c-name "clutter_texture_set_pixbuf") - (return-type "none") - (parameters - '("GdkPixbuf*" "pixbuf") - ) -) - -(define-method get_pixbuf - (of-object "ClutterTexture") - (c-name "clutter_texture_get_pixbuf") - (return-type "GdkPixbuf*") -) - -(define-method get_base_size - (of-object "ClutterTexture") - (c-name "clutter_texture_get_base_size") - (return-type "none") - (parameters - '("gint*" "width") - '("gint*" "height") - ) -) - -(define-method bind_tile - (of-object "ClutterTexture") - (c-name "clutter_texture_bind_tile") - (return-type "none") - (parameters - '("gint" "index") - ) -) - -(define-method get_n_tiles - (of-object "ClutterTexture") - (c-name "clutter_texture_get_n_tiles") - (return-type "none") - (parameters - '("gint*" "n_x_tiles") - '("gint*" "n_y_tiles") - ) -) - -(define-method get_x_tile_detail - (of-object "ClutterTexture") - (c-name "clutter_texture_get_x_tile_detail") - (return-type "none") - (parameters - '("gint" "x_index") - '("gint*" "pos") - '("gint*" "size") - '("gint*" "waste") - ) -) - -(define-method get_y_tile_detail - (of-object "ClutterTexture") - (c-name "clutter_texture_get_y_tile_detail") - (return-type "none") - (parameters - '("gint" "y_index") - '("gint*" "pos") - '("gint*" "size") - '("gint*" "waste") - ) -) - -(define-method has_generated_tiles - (of-object "ClutterTexture") - (c-name "clutter_texture_has_generated_tiles") - (return-type "gboolean") -) - -(define-method is_tiled - (of-object "ClutterTexture") - (c-name "clutter_texture_is_tiled") - (return-type "gboolean") -) - - - -;; From ../../clutter/clutter-video-texture.h - -(define-function clutter_video_texture_get_type - (c-name "clutter_video_texture_get_type") - (return-type "GType") -) - -(define-function clutter_video_texture_new - (c-name "clutter_video_texture_new") - (is-constructor-of "ClutterVideoTexture") - (return-type "ClutterActor*") -) - - - -;; From ../../clutter/clutter-color.h - -(define-function clutter_color_get_type - (c-name "clutter_color_get_type") - (return-type "GType") -) - -(define-method add - (of-object "ClutterColor") - (c-name "clutter_color_add") - (return-type "none") - (parameters - '("ClutterColor*" "src2") - '("ClutterColor*" "dest") - ) -) - -(define-method subtract - (of-object "ClutterColor") - (c-name "clutter_color_subtract") - (return-type "none") - (parameters - '("ClutterColor*" "src2") - '("ClutterColor*" "dest") - ) -) - -(define-method lighten - (of-object "ClutterColor") - (c-name "clutter_color_lighten") - (return-type "none") - (parameters - '("ClutterColor*" "dest") - ) -) - -(define-method darken - (of-object "ClutterColor") - (c-name "clutter_color_darken") - (return-type "none") - (parameters - '("ClutterColor*" "dest") - ) -) - -(define-method shade - (of-object "ClutterColor") - (c-name "clutter_color_shade") - (return-type "none") - (parameters - '("ClutterColor*" "dest") - '("gdouble" "shade") - ) -) - -(define-function color_to_hls - (c-name "clutter_color_to_hls") - (return-type "none") - (parameters - '("guint8*" "hue") - '("guint8*" "luminance") - '("guint8*" "saturation") - ) -) - -(define-function color_from_hls - (c-name "clutter_color_from_hls") - (return-type "none") - (parameters - '("guint8" "hue") - '("guint8" "luminance") - '("guint8" "saturation") - ) -) - -(define-function color_to_pixel - (c-name "clutter_color_to_pixel") - (return-type "guint32") - (parameters - '("ClutterColor" "src") - ) -) - -(define-function color_from_pixel - (c-name "clutter_color_from_pixel") - (return-type "none") - (parameters - '("ClutterColor" "dest") - '("guint32" "pixel") - ) -) - - - - -;; From ../../clutter/clutter-clone-texture.h - -(define-function clutter_clone_texture_get_type - (c-name "clutter_clone_texture_get_type") - (return-type "GType") -) - -(define-function clutter_clone_texture_new - (c-name "clutter_clone_texture_new") - (is-constructor-of "ClutterCloneTexture") - (return-type "ClutterActor*") - (properties - '("parent-texture" (argname "texture")) - ) -) - -;; From ../../clutter/clutter-label.h - -(define-function clutter_label_get_type - (c-name "clutter_label_get_type") - (return-type "GType") -) - -(define-function clutter_label_new - (c-name "clutter_label_new") - (is-constructor-of "ClutterLabel") - (return-type "ClutterActor*") -) - -(define-function clutter_label_new_with_text - (c-name "clutter_label_new_with_text") - (return-type "ClutterActor*") - (is-constructor-of "ClutterLabel") - (properties - '("font-name" (argname "name") (optional)) - '("text" (argname "str") (optional)) - ) -) - -(define-method set_text - (of-object "ClutterLabel") - (c-name "clutter_label_set_text") - (return-type "none") - (parameters - '("const-gchar*" "text") - ) -) - -(define-method get_text - (of-object "ClutterLabel") - (c-name "clutter_label_get_text") - (return-type "const-gchar*") -) - -(define-method set_font_name - (of-object "ClutterLabel") - (c-name "clutter_label_set_font_name") - (return-type "none") - (parameters - '("const-gchar*" "font_name") - ) -) - -(define-method get_font_name - (of-object "ClutterLabel") - (c-name "clutter_label_get_font_name") - (return-type "const-gchar*") -) - -(define-method set_color - (of-object "ClutterLabel") - (c-name "clutter_label_set_color") - (return-type "none") - (parameters - '("const-ClutterColor*" "color") - ) -) - -(define-method get_color - (of-object "ClutterLabel") - (c-name "clutter_label_get_color") - (return-type "none") - (parameters - '("ClutterColor*" "color") - ) -) - -(define-method set_text_extents - (of-object "ClutterLabel") - (c-name "clutter_label_set_text_extents") - (return-type "none") - (parameters - '("gint" "width") - '("gint" "height") - ) -) - -(define-method get_text_extents - (of-object "ClutterLabel") - (c-name "clutter_label_get_text_extents") - (return-type "none") - (parameters - '("gint*" "width") - '("gint*" "height") - ) -) - - - -;; From ../../clutter/clutter-group.h - -(define-function clutter_group_get_type - (c-name "clutter_group_get_type") - (return-type "GType") -) - -(define-function clutter_group_new - (c-name "clutter_group_new") - (is-constructor-of "ClutterGroup") - (return-type "ClutterGroup*") -) - -(define-method add - (of-object "ClutterGroup") - (c-name "clutter_group_add") - (return-type "none") - (parameters - '("ClutterActor*" "actor") - ) -) - -(define-method add_many_valist - (of-object "ClutterGroup") - (c-name "clutter_group_add_many_valist") - (return-type "none") - (parameters - '("ClutterActor*" "first_actor") - '("va_list" "args") - ) -) - -(define-method add_many - (of-object "ClutterGroup") - (c-name "clutter_group_add_many") - (return-type "none") - (parameters - '("ClutterActor*" "first_actor") - ) - (varargs #t) -) - -(define-method remove - (of-object "ClutterGroup") - (c-name "clutter_group_remove") - (return-type "none") - (parameters - '("ClutterActor*" "actor") - ) -) - -(define-method show_all - (of-object "ClutterGroup") - (c-name "clutter_group_show_all") - (return-type "none") -) - -(define-method hide_all - (of-object "ClutterGroup") - (c-name "clutter_group_hide_all") - (return-type "none") -) - -(define-method find_child_by_id - (of-object "ClutterGroup") - (c-name "clutter_group_find_child_by_id") - (return-type "ClutterActor*") - (parameters - '("guint" "id") - ) -) - -(define-method raise - (of-object "ClutterGroup") - (c-name "clutter_group_raise") - (return-type "none") - (parameters - '("ClutterActor*" "actor") - '("ClutterActor*" "sibling") - ) -) - -(define-method lower - (of-object "ClutterGroup") - (c-name "clutter_group_lower") - (return-type "none") - (parameters - '("ClutterActor*" "actor") - '("ClutterActor*" "sibling") - ) -) - - - -;; From ../../clutter/clutter-stage.h - -(define-function clutter_stage_get_type - (c-name "clutter_stage_get_type") - (return-type "GType") -) - -(define-function stage_get_default - (c-name "clutter_stage_get_default") - (return-type "ClutterActor*") -) - -(define-method get_xwindow - (of-object "ClutterStage") - (c-name "clutter_stage_get_xwindow") - (return-type "Window") -) - -(define-method set_color - (of-object "ClutterStage") - (c-name "clutter_stage_set_color") - (return-type "none") - (parameters - '("const-ClutterColor*" "color") - ) -) - -(define-method get_color - (of-object "ClutterStage") - (c-name "clutter_stage_get_color") - (return-type "none") - (parameters - '("ClutterColor*" "color") - ) -) - -(define-method get_actor_at_pos - (of-object "ClutterStage") - (c-name "clutter_stage_get_actor_at_pos") - (return-type "ClutterActor*") - (parameters - '("gint" "x") - '("gint" "y") - ) -) - -(define-method snapshot - (of-object "ClutterStage") - (c-name "clutter_stage_snapshot") - (return-type "GdkPixbuf*") - (parameters - '("gint" "x") - '("gint" "y") - '("gint" "width") - '("gint" "height") - ) -) - - - -;; From ../../clutter/clutter-enum-types.h - -(define-function clutter_event_type_get_type - (c-name "clutter_event_type_get_type") - (return-type "GType") -) - -(define-function clutter_actor_transform_get_type - (c-name "clutter_actor_transform_get_type") - (return-type "GType") -) - -(define-function clutter_actor_flags_get_type - (c-name "clutter_actor_flags_get_type") - (return-type "GType") -) - -(define-function clutter_video_texture_error_get_type - (c-name "clutter_video_texture_error_get_type") - (return-type "GType") -) - -(define-function clutter_video_texture_aspect_ratio_get_type - (c-name "clutter_video_texture_aspect_ratio_get_type") - (return-type "GType") -) - -(define-function clutter_video_texture_metadata_type_get_type - (c-name "clutter_video_texture_metadata_type_get_type") - (return-type "GType") -) - - diff --git a/bindings/python/clutter.override b/bindings/python/clutter.override deleted file mode 100644 index 8f1f25451..000000000 --- a/bindings/python/clutter.override +++ /dev/null @@ -1,1002 +0,0 @@ -/* -*- C -*- */ -%% -headers -#define NO_IMPORT_PYGOBJECT -#include "pygobject.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -%% -modulename clutter -%% -import gobject.GObject as PyGObject_Type -import gtk.gdk.Pixbuf as PyGdkPixbuf_Type -%% -ignore - clutter_video_texture_error_quark - clutter_video_texture_get_metadata - clutter_group_add_many_valist - clutter_stage_get_xwindow - clutter_init - clutter_xdisplay - clutter_root_xwindow - clutter_gl_context -%% -ignore-glob - *_get_type -%% -override clutter_geometry_new kwargs -static int -_wrap_clutter_geometry_new (PyGBoxed *self, PyObject *args, PyObject *kwargs) -{ - static char *kwlist[] = { "x", "y", "width", "height", NULL }; - ClutterGeometry geom = { 0, 0, 0, 0 }; - - if (!PyArg_ParseTupleAndKeywords(args, kwargs, - "|iiii:ClutterGeometry.__init__", - kwlist, - &(geom.x), &(geom.y), - &(geom.width), &(geom.height))) - return -1; - - self->boxed = g_boxed_copy (CLUTTER_TYPE_GEOMETRY, &geom); - self->free_on_dealloc = TRUE; - self->gtype = CLUTTER_TYPE_GEOMETRY; - - return 0; -} -%% -override-slot ClutterGeometry.tp_as_sequence -static int -_wrap_clutter_geometry_length (PyGBoxed *self) -{ - return 4; -} -static PyObject * -_wrap_clutter_geometry_getitem(PyGBoxed *self, int pos) -{ - ClutterGeometry *geom; - - if (pos < 0) - pos += 4; - - if (pos < 0 || pos >= 4) { - PyErr_SetString(PyExc_IndexError, "index out of range"); - - return NULL; - } - - geom = pyg_boxed_get (self, ClutterGeometry); - switch (pos) { - case 0: return PyInt_FromLong (geom->x); - case 1: return PyInt_FromLong (geom->y); - case 2: return PyInt_FromLong (geom->width); - case 3: return PyInt_FromLong (geom->height); - default: - g_assert_not_reached(); - return NULL; - } -} -static int -_wrap_clutter_geometry_setitem (PyGBoxed *self, int pos, PyObject *value) -{ - ClutterGeometry *geom; - gint val; - - if (pos < 0) - pos += 4; - - if (pos < 0 || pos >= 4) { - PyErr_SetString(PyExc_IndexError, "index out of range"); - - return -1; - } - - geom = pyg_boxed_get (self, ClutterGeometry); - val = PyInt_AsLong (value); - if (PyErr_Occurred ()) - return -1; - - switch(pos) { - case 0: geom->x = val; break; - case 1: geom->y = val; break; - case 2: geom->width = val; break; - case 3: geom->height = val; break; - default: - g_assert_not_reached(); - return -1; - } - - return 0; -} -static PySequenceMethods _wrap_clutter_geometry_tp_as_sequence = { - (inquiry) _wrap_clutter_geometry_length, - (binaryfunc) 0, - (intargfunc) 0, - (intargfunc) _wrap_clutter_geometry_getitem, - (intintargfunc) 0, - (intobjargproc) _wrap_clutter_geometry_setitem, - (intintobjargproc) 0 -}; -%% -override-attr ClutterGeometry.x -static int -_wrap_clutter_geometry__set_x (PyGBoxed *self, PyObject *value, void *closure) -{ - gint val; - - val = PyInt_AsLong (value); - if (PyErr_Occurred ()) - return -1; - - pyg_boxed_get (self, ClutterGeometry)->x = val; - - return 0; -} -%% -override-attr ClutterGeometry.y -static int -_wrap_clutter_geometry__set_y (PyGBoxed *self, PyObject *value, void *closure) -{ - gint val; - - val = PyInt_AsLong (value); - if (PyErr_Occurred ()) - return -1; - - pyg_boxed_get (self, ClutterGeometry)->y = val; - - return 0; -} -%% -override-attr ClutterGeometry.width -static int -_wrap_clutter_geometry__set_width (PyGBoxed *self, PyObject *value, void *closure) -{ - gint val; - - val = PyInt_AsLong (value); - if (PyErr_Occurred ()) - return -1; - - pyg_boxed_get(self, ClutterGeometry)->width = val; - - return 0; -} -%% -override-attr ClutterGeometry.height -static int -_wrap_clutter_geometry__set_height (PyGBoxed *self, PyObject *value, void *closure) -{ - gint val; - - val = PyInt_AsLong (value); - if (PyErr_Occurred ()) - return -1; - - pyg_boxed_get (self, ClutterGeometry)->height = val; - - return 0; -} -%% -override clutter_actor_box_new kwargs -static int -_wrap_clutter_actor_box_new (PyGBoxed *self, PyObject *args, PyObject *kwargs) -{ - static char *kwlist[] = { "x1", "y1", "x2", "y2", NULL }; - ClutterActorBox box = { 0, 0, 0, 0 }; - - if (!PyArg_ParseTupleAndKeywords(args, kwargs, - "|iiii:ClutterActorBox.__init__", - kwlist, - &(box.x1), &(box.y1), - &(box.x2), &(box.y2))) - return -1; - - self->boxed = g_boxed_copy (CLUTTER_TYPE_ACTOR_BOX, &box); - self->free_on_dealloc = TRUE; - self->gtype = CLUTTER_TYPE_ACTOR_BOX; - - return 0; -} -%% -override-slot ClutterActorBox.tp_as_sequence -static int -_wrap_clutter_actor_box_length (PyGBoxed *self) -{ - return 4; -} -static PyObject * -_wrap_clutter_actor_box_getitem(PyGBoxed *self, int pos) -{ - ClutterActorBox *box; - - if (pos < 0) - pos += 4; - - if (pos < 0 || pos >= 4) { - PyErr_SetString(PyExc_IndexError, "index out of range"); - - return NULL; - } - - box = pyg_boxed_get (self, ClutterActorBox); - switch (pos) { - case 0: return PyInt_FromLong (box->x1); - case 1: return PyInt_FromLong (box->y1); - case 2: return PyInt_FromLong (box->x2); - case 3: return PyInt_FromLong (box->y2); - default: - g_assert_not_reached(); - return NULL; - } -} -static int -_wrap_clutter_actor_box_setitem (PyGBoxed *self, int pos, PyObject *value) -{ - ClutterActorBox *box; - gint val; - - if (pos < 0) - pos += 4; - - if (pos < 0 || pos >= 4) { - PyErr_SetString(PyExc_IndexError, "index out of range"); - - return -1; - } - - box = pyg_boxed_get (self, ClutterActorBox); - val = PyInt_AsLong (value); - if (PyErr_Occurred ()) - return -1; - - switch(pos) { - case 0: box->x1 = val; break; - case 1: box->y1 = val; break; - case 2: box->x2 = val; break; - case 3: box->y2 = val; break; - default: - g_assert_not_reached(); - return -1; - } - - return 0; -} -static PySequenceMethods _wrap_clutter_actor_box_tp_as_sequence = { - (inquiry) _wrap_clutter_actor_box_length, - (binaryfunc) 0, - (intargfunc) 0, - (intargfunc) _wrap_clutter_actor_box_getitem, - (intintargfunc) 0, - (intobjargproc) _wrap_clutter_actor_box_setitem, - (intintobjargproc) 0 -}; -%% -override-attr ClutterActorBox.x1 -static int -_wrap_clutter_actor_box__set_x1 (PyGBoxed *self, PyObject *value, void *closure) -{ - gint val; - - val = PyInt_AsLong (value); - if (PyErr_Occurred ()) - return -1; - - pyg_boxed_get (self, ClutterActorBox)->x1 = val; - - return 0; -} -%% -override-attr ClutterActorBox.y1 -static int -_wrap_clutter_actor_box__set_y1 (PyGBoxed *self, PyObject *value, void *closure) -{ - gint val; - - val = PyInt_AsLong (value); - if (PyErr_Occurred ()) - return -1; - - pyg_boxed_get (self, ClutterActorBox)->y1 = val; - - return 0; -} -%% -override-attr ClutterActorBox.x2 -static int -_wrap_clutter_actor_box__set_x2 (PyGBoxed *self, PyObject *value, void *closure) -{ - gint val; - - val = PyInt_AsLong (value); - if (PyErr_Occurred ()) - return -1; - - pyg_boxed_get(self, ClutterActorBox)->x2 = val; - - return 0; -} -%% -override-attr ClutterActorBox.y2 -static int -_wrap_clutter_actor_box__set_y2 (PyGBoxed *self, PyObject *value, void *closure) -{ - gint val; - - val = PyInt_AsLong (value); - if (PyErr_Occurred ()) - return -1; - - pyg_boxed_get (self, ClutterActorBox)->y2 = val; - - return 0; -} -%% -override clutter_actor_get_coords -static PyObject * -_wrap_clutter_actor_get_coords (PyGObject *self) -{ - gint x1, y1; - gint x2, y2; - - clutter_actor_get_coords (CLUTTER_ACTOR (self->obj), - &x1, &y1, - &x2, &y2); - return Py_BuildValue("(iiii)", x1, y1, x2, y2); -} -%% -override clutter_actor_get_abs_position -static PyObject * -_wrap_clutter_actor_get_abs_position (PyGObject *self) -{ - gint pos_x, pos_y; - - clutter_actor_get_abs_position (CLUTTER_ACTOR (self->obj), - &pos_x, - &pos_y); - return Py_BuildValue("(ii)", pos_x, pos_y); -} -%% -override clutter_texture_get_base_size -static PyObject * -_wrap_clutter_texture_get_base_size (PyGObject *self) -{ - gint width, height; - - clutter_texture_get_base_size (CLUTTER_TEXTURE (self->obj), - &width, - &height); - return Py_BuildValue ("(ii)", width, height); -} -%% -override clutter_texture_get_n_tiles -static PyObject * -_wrap_clutter_texture_get_n_tiles (PyGObject *self) -{ - gint n_x_tiles, n_y_tiles; - - clutter_texture_get_n_tiles (CLUTTER_TEXTURE (self->obj), - &n_x_tiles, - &n_y_tiles); - return Py_BuildValue ("(ii)", n_x_tiles, n_y_tiles); -} -%% -override clutter_texture_get_x_tile_detail kwargs -static PyObject * -_wrap_clutter_texture_get_x_tile_detail (PyGObject *self, - PyObject *args, - PyObject *kwargs) -{ - static char *kwlist[] = { "x_index", NULL }; - gint x_index; - gint pos, size, waste; - - if (!PyArg_ParseTupleAndKeywords (args, kwargs, - "i:ClutterTexture.get_x_tile_detail", - kwlist, &x_index)) - return NULL; - - clutter_texture_get_x_tile_detail (CLUTTER_TEXTURE (self->obj), - x_index, - &pos, &size, &waste); - return Py_BuildValue ("(iii)", pos, size, waste); -} -%% -override clutter_texture_get_y_tile_detail kwargs -static PyObject * -_wrap_clutter_texture_get_y_tile_detail (PyGObject *self, - PyObject *args, - PyObject *kwargs) -{ - static char *kwlist[] = { "y_index", NULL }; - gint y_index; - gint pos, size, waste; - - if (!PyArg_ParseTupleAndKeywords (args, kwargs, - "i:ClutterTexture.get_y_tile_detail", - kwlist, &y_index)) - return NULL; - - clutter_texture_get_y_tile_detail (CLUTTER_TEXTURE (self->obj), - y_index, - &pos, &size, &waste); - return Py_BuildValue ("(iii)", pos, size, waste); -} -%% -override clutter_group_add_many -static PyObject * -_wrap_clutter_group_add_many (PyGObject *self, - PyObject *args) -{ - ClutterGroup *group; - int i, len; - - if ((len = PyTuple_Size(args)) < 1) { - PyErr_SetString(PyExc_TypeError, - "requires at least one argument"); - return NULL; - } - - group = CLUTTER_GROUP (self->obj); - - for (i = 0; i < len; i++) { - PyGObject *pyactor; - ClutterActor *actor; - - pyactor = (PyGObject *) PyTuple_GetItem (args, i); - if (!pygobject_check (pyactor, &PyClutterActor_Type)) { - PyErr_SetString (PyExc_TypeError, - "Expected a ClutterActor"); - return NULL; - } - - actor = CLUTTER_ACTOR (pyactor->obj); - - clutter_group_add (group, actor); - } - - Py_INCREF (Py_None); - return Py_None; -} -%% -override clutter_main noargs -static PyObject * -_wrap_clutter_main (PyObject *self) -{ - pyg_begin_allow_threads; - clutter_main (); - pyg_end_allow_threads; - - if (PyErr_Occurred ()) - return NULL; - Py_INCREF (Py_None); - return Py_None; -} -%% -override clutter_main_quit -static PyObject * -_wrap_clutter_main_quit (PyObject *self, PyObject *args) -{ - /* sanity check to make sure we are in a main loop */ - if (clutter_main_level () == 0) { - PyErr_SetString (PyExc_RuntimeError, - "called outside of a mainloop"); - return NULL; - } - - clutter_main_quit (); - Py_INCREF (Py_None); - return Py_None; -} -%% -override clutter_threads_enter noargs -static PyObject * -_wrap_clutter_threads_enter (PyObject *self) -{ - /* must allow threads while acquiring lock, or no other python - * code will execute while we wait! */ - pyg_begin_allow_threads; - clutter_threads_enter (); - pyg_end_allow_threads; - - Py_INCREF(Py_None); - return Py_None; -} -%% -override clutter_color_new kwargs -static int -_wrap_clutter_color_new (PyGBoxed *self, - PyObject *args, - PyObject *kwargs) -{ - static char *kwlist[] = { "red", "green", "blue", "alpha", NULL }; - ClutterColor color = { 0, 0, 0, 0 }; - - if (!PyArg_ParseTupleAndKeywords(args, kwargs, - "|iiii:ClutterColor.__init__", - kwlist, - &(color.red), - &(color.green), - &(color.blue), - &(color.alpha))) - return -1; - - self->boxed = g_boxed_copy (CLUTTER_TYPE_COLOR, &color); - self->free_on_dealloc = TRUE; - self->gtype = CLUTTER_TYPE_COLOR; - - return 0; -} -%% -override-slot ClutterColor.tp_as_sequence -static int -_wrap_clutter_color_length (PyGBoxed *self) -{ - return 4; -} -static PyObject * -_wrap_clutter_color_getitem (PyGBoxed *self, int pos) -{ - ClutterColor *color; - - if (pos < 0) - pos += 4; - - if (pos < 0 || pos >= 4) { - PyErr_SetString (PyExc_IndexError, "index out of range"); - return NULL; - } - - color = pyg_boxed_get (self, ClutterColor); - switch (pos) { - case 0: return PyInt_FromLong (color->red); - case 1: return PyInt_FromLong (color->green); - case 2: return PyInt_FromLong (color->blue); - case 3: return PyInt_FromLong (color->alpha); - default: - g_assert_not_reached(); - return NULL; - } -} -static int -_wrap_clutter_color_setitem (PyGBoxed *self, int pos, PyObject *value) -{ - ClutterColor *color; - gint val; - - if (pos < 0) - pos += 4; - - if (pos < 0 || pos >= 4) { - PyErr_SetString (PyExc_IndexError, "index out of range"); - return -1; - } - - color = pyg_boxed_get (self, ClutterColor); - val = PyInt_AsLong (value); - if (PyErr_Occurred ()) - return -1; - - switch (pos) { - case 0: color->red = val; break; - case 1: color->green = val; break; - case 2: color->blue = val; break; - case 3: color->alpha = val; break; - default: - g_assert_not_reached(); - return -1; - } - - return 0; -} -static PySequenceMethods _wrap_clutter_color_tp_as_sequence = { - (inquiry) _wrap_clutter_color_length, - (binaryfunc) 0, - (intargfunc) 0, - (intargfunc) _wrap_clutter_color_getitem, - (intintargfunc) 0, - (intobjargproc) _wrap_clutter_color_setitem, - (intintobjargproc) 0 -}; -%% -override-attr ClutterColor.red -static int -_wrap_clutter_color__set_red (PyGBoxed *self, PyObject *value, void *closure) -{ - gint val; - - val = PyInt_AsLong (value); - if (PyErr_Occurred ()) - return -1; - - pyg_boxed_get (self, ClutterColor)->red = val; - - return 0; -} -%% -override-attr ClutterColor.green -static int -_wrap_clutter_color__set_green (PyGBoxed *self, PyObject *value, void *closure) -{ - gint val; - - val = PyInt_AsLong (value); - if (PyErr_Occurred ()) - return -1; - - pyg_boxed_get (self, ClutterColor)->green = val; - - return 0; -} -%% -override-attr ClutterColor.blue -static int -_wrap_clutter_color__set_blue (PyGBoxed *self, PyObject *value, void *closure) -{ - gint val; - - val = PyInt_AsLong (value); - if (PyErr_Occurred ()) - return -1; - - pyg_boxed_get(self, ClutterColor)->blue = val; - - return 0; -} -%% -override-attr ClutterColor.alpha -static int -_wrap_clutter_color__set_alpha (PyGBoxed *self, PyObject *value, void *closure) -{ - gint val; - - val = PyInt_AsLong (value); - if (PyErr_Occurred ()) - return -1; - - pyg_boxed_get (self, ClutterColor)->alpha = val; - - return 0; -} -%% -override clutter_stage_set_color -static PyObject * -_wrap_clutter_stage_set_color (PyGObject *self, - PyObject *args) -{ - ClutterColor color; - int len, i; - - if (PyTuple_Size (args) != 4) { - PyErr_SetString (PyExc_TypeError, - "requires a tuple of 4 integers: (r, g, b, a)"); - return NULL; - } - - for (i = 0; i < 4; i++) { - PyObject *comp = PyTuple_GetItem (args, i); - - if (!PyInt_Check (comp)) { - PyErr_SetString (PyExc_TypeError, - "component is not an integer"); - return NULL; - } - - switch (i) { - case 0: color.red = (guint8) PyInt_AsLong (comp); break; - case 1: color.green = (guint8) PyInt_AsLong (comp); break; - case 2: color.blue = (guint8) PyInt_AsLong (comp); break; - case 3: color.alpha = (guint8) PyInt_AsLong (comp); break; - default: - g_assert_not_reached (); - break; - } - } - - clutter_stage_set_color (CLUTTER_STAGE (self->obj), &color); - - Py_INCREF (Py_None); - return Py_None; -} -%% -override clutter_stage_get_color -static PyObject * -_wrap_clutter_stage_get_color (PyGObject *self, - PyObject *args) -{ - ClutterColor color; - - clutter_stage_get_color (CLUTTER_STAGE (self->obj), &color); - - return Py_BuildValue ("(iiii)", color.red, - color.green, - color.blue, - color.alpha); -} -%% -override clutter_color_to_hls -static PyObject * -_wrap_clutter_color_to_hls (PyObject *self, - PyObject *args) -{ - ClutterColor color; - guint8 h, l, s; - int i; - - if (PyTuple_Size (args) != 4) { - PyErr_SetString (PyExc_TypeError, - "requires a tuple of 4 integers: (r, g, b, a)"); - return NULL; - } - - for (i = 0; i < 4; i++) { - PyObject *comp = PyTuple_GetItem (args, i); - - if (!PyInt_Check (comp)) { - PyErr_SetString (PyExc_TypeError, - "component is not an integer"); - return NULL; - } - - switch (i) { - case 0: color.red = (guint8) PyInt_AsLong (comp); break; - case 1: color.green = (guint8) PyInt_AsLong (comp); break; - case 2: color.blue = (guint8) PyInt_AsLong (comp); break; - case 3: color.alpha = (guint8) PyInt_AsLong (comp); break; - default: - g_assert_not_reached (); - break; - } - } - - clutter_color_to_hls (&color, &h, &l, &s); - - return Py_BuildValue ("(iii)", (int) h, (int) l, (int) s); -} -%% -override clutter_color_from_hls -static PyObject * -_wrap_clutter_color_from_hls (PyObject *self, - PyObject *args) -{ - ClutterColor color; - guint8 h, l, s; - int i; - - if (PyTuple_Size (args) != 3) { - PyErr_SetString (PyExc_TypeError, - "requires a tuple of 3 integers: (h, l, s)"); - return NULL; - } - - for (i = 0; i < 3; i++) { - PyObject *comp = PyTuple_GetItem (args, i); - - if (!PyInt_Check (comp)) { - PyErr_SetString (PyExc_TypeError, - "component is not an integer"); - return NULL; - } - - switch (i) { - case 0: h = (guint8) PyInt_AsLong (comp); break; - case 1: l = (guint8) PyInt_AsLong (comp); break; - case 2: s = (guint8) PyInt_AsLong (comp); break; - default: - g_assert_not_reached (); - break; - } - } - - clutter_color_from_hls (&color, h, l, s); - - return Py_BuildValue ("(iiii)", - (int) color.red, - (int) color.green, - (int) color.blue, - (int) color.alpha); -} -%% -override clutter_color_to_pixel -static PyObject * -_wrap_clutter_color_to_pixel (PyObject *self, - PyObject *args) -{ - ClutterColor color; - guint32 pixel; - int i; - - if (PyTuple_Size (args) != 4) { - PyErr_SetString (PyExc_TypeError, - "requires a tuple of 4 integers: (r, g, b, a)"); - return NULL; - } - - for (i = 0; i < 4; i++) { - PyObject *comp = PyTuple_GetItem (args, i); - - if (!PyInt_Check (comp)) { - PyErr_SetString (PyExc_TypeError, - "component is not an integer"); - return NULL; - } - - switch (i) { - case 0: color.red = (guint8) PyInt_AsLong (comp); break; - case 1: color.green = (guint8) PyInt_AsLong (comp); break; - case 2: color.blue = (guint8) PyInt_AsLong (comp); break; - case 3: color.alpha = (guint8) PyInt_AsLong (comp); break; - default: - g_assert_not_reached (); - break; - } - } - - pixel = clutter_color_to_pixel (&color); - - return PyInt_FromLong (pixel); -} -%% -override clutter_color_from_pixel -static PyObject * -_wrap_clutter_color_from_pixel (PyObject *self, - PyObject *args) -{ - ClutterColor color; - guint32 pixel; - - if (!PyInt_Check (args)) { - PyErr_SetString (PyExc_TypeError, - "requires a 32 bit encoded integer"); - return NULL; - } - - pixel = (guint32) PyInt_AsLong (args); - - clutter_color_from_pixel (&color, pixel); - - return Py_BuildValue ("(iiii)", - (int) color.red, - (int) color.green, - (int) color.blue, - (int) color.alpha); -} -%% -override clutter_label_get_text_extents -static PyObject * -_wrap_clutter_label_get_text_extents (PyGObject *self, - PyObject *args) -{ - gint width, height; - - clutter_label_get_text_extents (CLUTTER_LABEL (self->obj), - &width, - &height); - - return Py_BuildValue ("(ii)", width, height); -} -%% -override clutter_rectangle_set_color -static PyObject * -_wrap_clutter_rectangle_set_color (PyGObject *self, - PyObject *args) -{ - ClutterColor color; - int len, i; - - if (PyTuple_Size (args) != 4) { - PyErr_SetString (PyExc_TypeError, - "requires a tuple of 4 integers: (r, g, b, a)"); - return NULL; - } - - for (i = 0; i < 4; i++) { - PyObject *comp = PyTuple_GetItem (args, i); - - if (!PyInt_Check (comp)) { - PyErr_SetString (PyExc_TypeError, - "component is not an integer"); - return NULL; - } - - switch (i) { - case 0: color.red = (guint8) PyInt_AsLong (comp); break; - case 1: color.green = (guint8) PyInt_AsLong (comp); break; - case 2: color.blue = (guint8) PyInt_AsLong (comp); break; - case 3: color.alpha = (guint8) PyInt_AsLong (comp); break; - default: - g_assert_not_reached (); - break; - } - } - - clutter_rectangle_set_color (CLUTTER_RECTANGLE (self->obj), &color); - - Py_INCREF (Py_None); - return Py_None; -} -%% -override clutter_rectangle_get_color -static PyObject * -_wrap_clutter_rectangle_get_color (PyGObject *self, - PyObject *args) -{ - ClutterColor color; - - clutter_rectangle_get_color (CLUTTER_RECTANGLE (self->obj), &color); - - return Py_BuildValue ("(iiii)", color.red, - color.green, - color.blue, - color.alpha); -} -%% -override clutter_label_set_color -static PyObject * -_wrap_clutter_label_set_color (PyGObject *self, - PyObject *args) -{ - ClutterColor color; - int len, i; - - if (PyTuple_Size (args) != 4) { - PyErr_SetString (PyExc_TypeError, - "requires a tuple of 4 integers: (r, g, b, a)"); - return NULL; - } - - for (i = 0; i < 4; i++) { - PyObject *comp = PyTuple_GetItem (args, i); - - if (!PyInt_Check (comp)) { - PyErr_SetString (PyExc_TypeError, - "component is not an integer"); - return NULL; - } - - switch (i) { - case 0: color.red = (guint8) PyInt_AsLong (comp); break; - case 1: color.green = (guint8) PyInt_AsLong (comp); break; - case 2: color.blue = (guint8) PyInt_AsLong (comp); break; - case 3: color.alpha = (guint8) PyInt_AsLong (comp); break; - default: - g_assert_not_reached (); - break; - } - } - - clutter_label_set_color (CLUTTER_LABEL (self->obj), &color); - - Py_INCREF (Py_None); - return Py_None; -} -%% -override clutter_label_get_color -static PyObject * -_wrap_clutter_label_get_color (PyGObject *self, - PyObject *args) -{ - ClutterColor color; - - clutter_label_get_color (CLUTTER_LABEL (self->obj), &color); - - return Py_BuildValue ("(iiii)", color.red, - color.green, - color.blue, - color.alpha); -} -%% diff --git a/bindings/python/cluttermodule.c b/bindings/python/cluttermodule.c deleted file mode 100644 index 6d11647c4..000000000 --- a/bindings/python/cluttermodule.c +++ /dev/null @@ -1,26 +0,0 @@ -#include -/* #include */ - -void clutter_register_classes (PyObject *d); -extern PyMethodDef clutter_functions[]; - -DL_EXPORT (void) -initclutter (void) -{ - PyObject *m, *d; - - init_pygobject (); - /* init_pygtk(); */ - - m = Py_InitModule ("clutter", clutter_functions); - d = PyModule_GetDict (m); - - clutter_register_classes (d); - - if (PyErr_Occurred ()) - { - Py_FatalError ("can't initialise module clutter"); - } - else - clutter_init(NULL, NULL); -} diff --git a/bindings/python/pyclutter.pc.in b/bindings/python/pyclutter.pc.in deleted file mode 100644 index b281063ce..000000000 --- a/bindings/python/pyclutter.pc.in +++ /dev/null @@ -1,8 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -includedir=@includedir@ -datadir=@datadir@ - -Name: PyClutter -Description: Python bindings for Clutter -Version: @VERSION@ diff --git a/web/clutter-header.png b/web/clutter-header.png deleted file mode 100644 index e86cf18bb..000000000 Binary files a/web/clutter-header.png and /dev/null differ diff --git a/web/index.html b/web/index.html deleted file mode 100644 index 84b9f3f70..000000000 --- a/web/index.html +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - - - Clutter Toolkit - - - -
- -
-

#About

-

- -Clutter is a GObject based library for creating fast, visually -rich graphical user interfaces. It is intended for creating single -window heavily stylised applications such as media box ui's, presentations -or kiosk style programs in preference to regular 'desktop' style -applications. - -

-

- -Clutter's underlying graphics rendering is OpenGL (version 1.2+) -based. The clutter API is intended to be easy to use, attempting -to hide many of the GL complexities. It targets mainly 2D based -graphics and is definetly not intended to be a general interface -for all OpenGL functionality. -

-

- -As well as OpenGL Clutter depends on and uses GLib, GObject, Pango, -GDKPixbuf and GStreamer. Clutter is free software released under the GNU LGPL. - -

-

#News

- -

0.1 Release 22/06/2006

-

-

    -
  • First 'official' release, expect bugs aplenty. -
  • Contains: -
      -
    • Hopefully enough functionality to build things.
    • -
    • Basic gstreamer 0.10 video playback support. -
    • Fairly stable API, though in no way totally stable. - Expect CHANGES in future versions.
    • -
    • Some simple examples ( also see OPT ).
    • -
    • An experimental GTK-Clutter widget.
    • -
    • Fairly complete Python bindings.
    • -
    • Non complete but hopefully useful API documentation.
    • -
    -
  • If you want to help out see the TODO file.
  • -
- - -

#Screenshots

-


obligatory simple video player shot.

-

#Download

-

-See http://projects.o-hand.com/clutter/sources for sources. -

-

-Prebuilt Debian packages available via http://debian.o-hand.com -

- -

#Documentation

-

-API reference. -

-

#Participate

-

-Subversion Repo
- -svn co http://svn.o-hand.com/repos/clutter/trunk clutter - -
-Browseable here. -

-

-Bugs
-Use the OpenedHand Bugzilla -

-

-Mailing List
-Send a blank message to clutter+subscribe <at> o-hand.com . Then follow instructions in resulting reply. -

-

#Authors

-

-Clutter is an OHand Gang production featuring the coding of Matthew Allum, Emmanuele Bassi, Iain Holmes, Ross Burton and Jorn Baayen. -

-
-
- - - \ No newline at end of file diff --git a/web/screenshots/video-playback-thumb.png b/web/screenshots/video-playback-thumb.png deleted file mode 100644 index 4a23c6b85..000000000 Binary files a/web/screenshots/video-playback-thumb.png and /dev/null differ diff --git a/web/screenshots/video-playback.png b/web/screenshots/video-playback.png deleted file mode 100644 index aa03f0387..000000000 Binary files a/web/screenshots/video-playback.png and /dev/null differ diff --git a/web/style.css b/web/style.css deleted file mode 100644 index 8d88375eb..000000000 --- a/web/style.css +++ /dev/null @@ -1,45 +0,0 @@ -body { - margin:0px 0px 0px 0px; - background:#eee; -} - -A { color: #111; text-decoration: underline; } -A:link { color: #111; text-decoration: none; } -A:visited { color: #111; text-decoration: none; } -A:active { color: #111; } -A:hover { color: #111; text-decoration: underline; } - -h1, h2, h3, h4 { - margin: 3px 0px; - padding: 0px; - color: #594051; -} - -#logo { - border-bottom: 4px solid #000; -} - -#container { - width: 546px; - max-width: 546px; - margin: 20px auto; - border: 4px solid #000; - - font-family:verdana, arial, sans-serif; - color:#555; - font-size:12px; - font-weight:normal; - line-height:200%; - - background:#fff; -} - -#content { - padding: 20px; -} - -#footer { - font-family:verdana, arial, sans-serif; - color:#777; - font-size:9px; -} \ No newline at end of file