2006-06-13 Matthew Allum <mallum@openedhand.com>
* clutter/Makefile.am: * clutter/clutter-actor.c: * clutter/clutter-actor.h: * clutter/clutter-clone-texture.c: * clutter/clutter-clone-texture.h: * clutter/clutter-element.c: * clutter/clutter-element.h: * clutter/clutter-group.c: * clutter/clutter-group.h: * clutter/clutter-label.c: * clutter/clutter-label.h: * clutter/clutter-main.c: * clutter/clutter-main.h: * clutter/clutter-rectangle.c: * clutter/clutter-rectangle.h: * clutter/clutter-stage.c: * clutter/clutter-stage.h: * clutter/clutter-texture.c: * clutter/clutter-texture.h: * clutter/clutter-video-texture.c: * clutter/clutter-video-texture.h: * clutter/clutter.h: * examples/super-oh.c: * examples/test-text.c: * examples/test-video.c: * examples/test.c: * examples/video-cube.c: * gtk/gtk-clutter-test.c: * gtk/gtk-clutter.c: * gtk/gtk-clutter.h: Element to Actor Renaming.
This commit is contained in:
@ -76,12 +76,11 @@ update-defs:
|
||||
$(top_srcdir)/clutter/clutter-timeline.h \
|
||||
$(top_srcdir)/clutter/clutter-main.h \
|
||||
$(top_srcdir)/clutter/clutter-event.h \
|
||||
$(top_srcdir)/clutter/clutter-element.h \
|
||||
$(top_srcdir)/clutter/clutter-actor.h \
|
||||
$(top_srcdir)/clutter/clutter-rectangle.h \
|
||||
$(top_srcdir)/clutter/clutter-texture.h \
|
||||
$(top_srcdir)/clutter/clutter-color.h \
|
||||
$(top_srcdir)/clutter/clutter-clone-texture.h \
|
||||
$(top_srcdir)/clutter/clutter-video-texture.h \
|
||||
$(top_srcdir)/clutter/clutter-label.h \
|
||||
$(top_srcdir)/clutter/clutter-group.h \
|
||||
$(top_srcdir)/clutter/clutter-stage.h \
|
||||
|
@ -17,10 +17,10 @@
|
||||
)
|
||||
)
|
||||
|
||||
(define-boxed ElementBox
|
||||
(define-boxed ActorBox
|
||||
(in-module "Clutter")
|
||||
(c-name "ClutterElementBox")
|
||||
(gtype-id "CLUTTER_TYPE_ELEMENT_BOX")
|
||||
(c-name "ClutterActorBox")
|
||||
(gtype-id "CLUTTER_TYPE_ACTOR_BOX")
|
||||
(fields
|
||||
'("gint" "x1")
|
||||
'("gint" "y1")
|
||||
@ -52,23 +52,23 @@
|
||||
|
||||
;; Enumerations and flags ...
|
||||
|
||||
(define-flags ElementFlags
|
||||
(define-flags ActorFlags
|
||||
(in-module "Clutter")
|
||||
(c-name "ClutterElementFlags")
|
||||
(gtype-id "CLUTTER_TYPE_ELEMENT_FLAGS")
|
||||
(c-name "ClutterActorFlags")
|
||||
(gtype-id "CLUTTER_TYPE_ACTOR_FLAGS")
|
||||
(values
|
||||
'("mapped" "CLUTTER_ELEMENT_MAPPED")
|
||||
'("realized" "CLUTTER_ELEMENT_REALIZED")
|
||||
'("mapped" "CLUTTER_ACTOR_MAPPED")
|
||||
'("realized" "CLUTTER_ACTOR_REALIZED")
|
||||
)
|
||||
)
|
||||
|
||||
(define-flags ElementTransform
|
||||
(define-flags ActorTransform
|
||||
(in-module "Clutter")
|
||||
(c-name "ClutterElementTransform")
|
||||
(gtype-id "CLUTTER_TYPE_ELEMENT_TRANSFORM")
|
||||
(c-name "ClutterActorTransform")
|
||||
(gtype-id "CLUTTER_TYPE_ACTOR_TRANSFORM")
|
||||
(values
|
||||
'("x" "CLUTTER_ELEMENT_MIRROR_X")
|
||||
'("y" "CLUTTER_ELEMENT_MIRROR_Y")
|
||||
'("x" "CLUTTER_ACTOR_MIRROR_X")
|
||||
'("y" "CLUTTER_ACTOR_MIRROR_Y")
|
||||
)
|
||||
)
|
||||
|
||||
@ -87,92 +87,25 @@
|
||||
)
|
||||
)
|
||||
|
||||
(define-enum VideoTextureAspectRatio
|
||||
(in-module "Clutter")
|
||||
(c-name "ClutterVideoTextureAspectRatio")
|
||||
(gtype-id "CLUTTER_TYPE_VIDEO_TEXTURE_ASPECT_RATIO")
|
||||
(values
|
||||
'("auto" "CLUTTER_VIDEO_TEXTURE_AUTO")
|
||||
'("square" "CLUTTER_VIDEO_TEXTURE_SQUARE")
|
||||
'("fourbythree" "CLUTTER_VIDEO_TEXTURE_FOURBYTHREE")
|
||||
'("anamorphic" "CLUTTER_VIDEO_TEXTURE_ANAMORPHIC")
|
||||
'("dvb" "CLUTTER_VIDEO_TEXTURE_DVB")
|
||||
)
|
||||
)
|
||||
|
||||
(define-enum VideoTextureError
|
||||
(in-module "Clutter")
|
||||
(c-name "ClutterVideoTextureError")
|
||||
(gtype-id "CLUTTER_TYPE_VIDEO_TEXTURE_ERROR")
|
||||
(values
|
||||
'("audio-plugin" "CLUTTER_VIDEO_TEXTURE_ERROR_AUDIO_PLUGIN")
|
||||
'("no-plugin-for-file" "CLUTTER_VIDEO_TEXTURE_ERROR_NO_PLUGIN_FOR_FILE")
|
||||
'("video-plugin" "CLUTTER_VIDEO_TEXTURE_ERROR_VIDEO_PLUGIN")
|
||||
'("audio-busy" "CLUTTER_VIDEO_TEXTURE_ERROR_AUDIO_BUSY")
|
||||
'("broken-file" "CLUTTER_VIDEO_TEXTURE_ERROR_BROKEN_FILE")
|
||||
'("file-generic" "CLUTTER_VIDEO_TEXTURE_ERROR_FILE_GENERIC")
|
||||
'("file-permission" "CLUTTER_VIDEO_TEXTURE_ERROR_FILE_PERMISSION")
|
||||
'("file-encrypted" "CLUTTER_VIDEO_TEXTURE_ERROR_FILE_ENCRYPTED")
|
||||
'("file-not-found" "CLUTTER_VIDEO_TEXTURE_ERROR_FILE_NOT_FOUND")
|
||||
'("dvd-encrypted" "CLUTTER_VIDEO_TEXTURE_ERROR_DVD_ENCRYPTED")
|
||||
'("invalid-device" "CLUTTER_VIDEO_TEXTURE_ERROR_INVALID_DEVICE")
|
||||
'("unknown-host" "CLUTTER_VIDEO_TEXTURE_ERROR_UNKNOWN_HOST")
|
||||
'("network-unreachable" "CLUTTER_VIDEO_TEXTURE_ERROR_NETWORK_UNREACHABLE")
|
||||
'("connection-refused" "CLUTTER_VIDEO_TEXTURE_ERROR_CONNECTION_REFUSED")
|
||||
'("unvalid-location" "CLUTTER_VIDEO_TEXTURE_ERROR_UNVALID_LOCATION")
|
||||
'("generic" "CLUTTER_VIDEO_TEXTURE_ERROR_GENERIC")
|
||||
'("codec-not-handled" "CLUTTER_VIDEO_TEXTURE_ERROR_CODEC_NOT_HANDLED")
|
||||
'("audio-only" "CLUTTER_VIDEO_TEXTURE_ERROR_AUDIO_ONLY")
|
||||
'("cannot-capture" "CLUTTER_VIDEO_TEXTURE_ERROR_CANNOT_CAPTURE")
|
||||
'("read-error" "CLUTTER_VIDEO_TEXTURE_ERROR_READ_ERROR")
|
||||
'("plugin-load" "CLUTTER_VIDEO_TEXTURE_ERROR_PLUGIN_LOAD")
|
||||
'("still-image" "CLUTTER_VIDEO_TEXTURE_ERROR_STILL_IMAGE")
|
||||
'("empty-file" "CLUTTER_VIDEO_TEXTURE_ERROR_EMPTY_FILE")
|
||||
)
|
||||
)
|
||||
|
||||
(define-enum VideoTextureMetadataType
|
||||
(in-module "Clutter")
|
||||
(c-name "ClutterVideoTextureMetadataType")
|
||||
(gtype-id "CLUTTER_TYPE_VIDEO_TEXTURE_METADATA_TYPE")
|
||||
(values
|
||||
'("title" "CLUTTER_INFO_TITLE")
|
||||
'("artist" "CLUTTER_INFO_ARTIST")
|
||||
'("year" "CLUTTER_INFO_YEAR")
|
||||
'("album" "CLUTTER_INFO_ALBUM")
|
||||
'("duration" "CLUTTER_INFO_DURATION")
|
||||
'("track-number" "CLUTTER_INFO_TRACK_NUMBER")
|
||||
'("has-video" "CLUTTER_INFO_HAS_VIDEO")
|
||||
'("dimension-x" "CLUTTER_INFO_DIMENSION_X")
|
||||
'("dimension-y" "CLUTTER_INFO_DIMENSION_Y")
|
||||
'("video-bitrate" "CLUTTER_INFO_VIDEO_BITRATE")
|
||||
'("video-codec" "CLUTTER_INFO_VIDEO_CODEC")
|
||||
'("fps" "CLUTTER_INFO_FPS")
|
||||
'("has-audio" "CLUTTER_INFO_HAS_AUDIO")
|
||||
'("audio-bitrate" "CLUTTER_INFO_AUDIO_BITRATE")
|
||||
'("audio-codec" "CLUTTER_INFO_AUDIO_CODEC")
|
||||
)
|
||||
)
|
||||
|
||||
;; Objects
|
||||
|
||||
(define-object CloneTexture
|
||||
(in-module "Clutter")
|
||||
(parent "ClutterElement")
|
||||
(parent "ClutterActor")
|
||||
(c-name "ClutterCloneTexture")
|
||||
(gtype-id "CLUTTER_TYPE_CLONE_TEXTURE")
|
||||
)
|
||||
|
||||
(define-object Element
|
||||
(define-object Actor
|
||||
(in-module "Clutter")
|
||||
(parent "GObject")
|
||||
(c-name "ClutterElement")
|
||||
(gtype-id "CLUTTER_TYPE_ELEMENT")
|
||||
(c-name "ClutterActor")
|
||||
(gtype-id "CLUTTER_TYPE_ACTOR")
|
||||
)
|
||||
|
||||
(define-object Group
|
||||
(in-module "Clutter")
|
||||
(parent "ClutterElement")
|
||||
(parent "ClutterActor")
|
||||
(c-name "ClutterGroup")
|
||||
(gtype-id "CLUTTER_TYPE_GROUP")
|
||||
)
|
||||
@ -186,7 +119,7 @@
|
||||
|
||||
(define-object Rectangle
|
||||
(in-module "Clutter")
|
||||
(parent "ClutterElement")
|
||||
(parent "ClutterActor")
|
||||
(c-name "ClutterRectangle")
|
||||
(gtype-id "CLUTTER_TYPE_RECTANGLE")
|
||||
)
|
||||
@ -200,7 +133,7 @@
|
||||
|
||||
(define-object Texture
|
||||
(in-module "Clutter")
|
||||
(parent "ClutterElement")
|
||||
(parent "ClutterActor")
|
||||
(c-name "ClutterTexture")
|
||||
(gtype-id "CLUTTER_TYPE_TEXTURE")
|
||||
)
|
||||
@ -212,13 +145,6 @@
|
||||
(gtype-id "CLUTTER_TYPE_TIMELINE")
|
||||
)
|
||||
|
||||
(define-object VideoTexture
|
||||
(in-module "Clutter")
|
||||
(parent "ClutterTexture")
|
||||
(c-name "ClutterVideoTexture")
|
||||
(gtype-id "CLUTTER_TYPE_VIDEO_TEXTURE")
|
||||
)
|
||||
|
||||
;; Pointers
|
||||
|
||||
|
||||
|
@ -231,7 +231,7 @@
|
||||
|
||||
|
||||
|
||||
;; From ../../clutter/clutter-element.h
|
||||
;; From ../../clutter/clutter-actor.h
|
||||
|
||||
(define-function clutter_geometry_get_type
|
||||
(c-name "clutter_geometry_get_type")
|
||||
@ -244,79 +244,79 @@
|
||||
;; (return-type "ClutterGeometry")
|
||||
;;)
|
||||
|
||||
(define-function clutter_element_box_get_type
|
||||
(c-name "clutter_element_box_get_type")
|
||||
(define-function clutter_actor_box_get_type
|
||||
(c-name "clutter_actor_box_get_type")
|
||||
(return-type "GType")
|
||||
)
|
||||
|
||||
;;(define-function element_box_new
|
||||
;; (c-name "clutter_element_box_new")
|
||||
;; (is-constructor-of "ClutterElementBox")
|
||||
;; (return-type "ClutterElementBox")
|
||||
;;(define-function actor_box_new
|
||||
;; (c-name "clutter_actor_box_new")
|
||||
;; (is-constructor-of "ClutterActorBox")
|
||||
;; (return-type "ClutterActorBox")
|
||||
;;)
|
||||
|
||||
(define-function clutter_element_get_type
|
||||
(c-name "clutter_element_get_type")
|
||||
(define-function clutter_actor_get_type
|
||||
(c-name "clutter_actor_get_type")
|
||||
(return-type "GType")
|
||||
)
|
||||
|
||||
(define-method show
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_show")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_show")
|
||||
(return-type "none")
|
||||
)
|
||||
|
||||
(define-method hide
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_hide")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_hide")
|
||||
(return-type "none")
|
||||
)
|
||||
|
||||
(define-method realize
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_realize")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_realize")
|
||||
(return-type "none")
|
||||
)
|
||||
|
||||
(define-method unrealize
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_unrealize")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_unrealize")
|
||||
(return-type "none")
|
||||
)
|
||||
|
||||
(define-method paint
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_paint")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_paint")
|
||||
(return-type "none")
|
||||
)
|
||||
|
||||
(define-method queue_redraw
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_queue_redraw")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_queue_redraw")
|
||||
(return-type "none")
|
||||
)
|
||||
|
||||
(define-method request_coords
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_request_coords")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_request_coords")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("ClutterElementBox*" "box")
|
||||
'("ClutterActorBox*" "box")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method allocate_coords
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_allocate_coords")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_allocate_coords")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("ClutterElementBox*" "box")
|
||||
'("ClutterActorBox*" "box")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method set_geometry
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_set_geometry")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_set_geometry")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("ClutterGeometry*" "geom")
|
||||
@ -324,8 +324,8 @@
|
||||
)
|
||||
|
||||
(define-method get_geometry
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_get_geometry")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_get_geometry")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("ClutterGeometry*" "geom")
|
||||
@ -333,8 +333,8 @@
|
||||
)
|
||||
|
||||
(define-method get_coords
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_get_coords")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_get_coords")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("gint*" "x1")
|
||||
@ -345,8 +345,8 @@
|
||||
)
|
||||
|
||||
(define-method set_position
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_set_position")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_set_position")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("gint" "x")
|
||||
@ -355,8 +355,8 @@
|
||||
)
|
||||
|
||||
(define-method set_size
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_set_size")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_set_size")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("gint" "width")
|
||||
@ -365,8 +365,8 @@
|
||||
)
|
||||
|
||||
(define-method get_abs_position
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_get_abs_position")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_get_abs_position")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("gint*" "x")
|
||||
@ -375,32 +375,32 @@
|
||||
)
|
||||
|
||||
(define-method get_width
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_get_width")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_get_width")
|
||||
(return-type "guint")
|
||||
)
|
||||
|
||||
(define-method get_height
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_get_height")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_get_height")
|
||||
(return-type "guint")
|
||||
)
|
||||
|
||||
(define-method get_x
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_get_x")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_get_x")
|
||||
(return-type "gint")
|
||||
)
|
||||
|
||||
(define-method get_y
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_get_y")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_get_y")
|
||||
(return-type "gint")
|
||||
)
|
||||
|
||||
(define-method rotate_z
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_rotate_z")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_rotate_z")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("gfloat" "angle")
|
||||
@ -410,8 +410,8 @@
|
||||
)
|
||||
|
||||
(define-method rotate_x
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_rotate_x")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_rotate_x")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("gfloat" "angle")
|
||||
@ -421,8 +421,8 @@
|
||||
)
|
||||
|
||||
(define-method rotate_y
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_rotate_y")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_rotate_y")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("gfloat" "angle")
|
||||
@ -432,8 +432,8 @@
|
||||
)
|
||||
|
||||
(define-method set_opacity
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_set_opacity")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_set_opacity")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("guint8" "opacity")
|
||||
@ -441,14 +441,14 @@
|
||||
)
|
||||
|
||||
(define-method get_opacity
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_get_opacity")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_get_opacity")
|
||||
(return-type "guint8")
|
||||
)
|
||||
|
||||
(define-method set_name
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_set_name")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_set_name")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("const-gchar*" "id")
|
||||
@ -456,20 +456,20 @@
|
||||
)
|
||||
|
||||
(define-method get_name
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_get_name")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_get_name")
|
||||
(return-type "const-gchar*")
|
||||
)
|
||||
|
||||
(define-method get_id
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_get_id")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_get_id")
|
||||
(return-type "guint32")
|
||||
)
|
||||
|
||||
(define-method set_clip
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_set_clip")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_set_clip")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("gint" "xoff")
|
||||
@ -480,59 +480,59 @@
|
||||
)
|
||||
|
||||
(define-method remove_clip
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_remove_clip")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_remove_clip")
|
||||
(return-type "none")
|
||||
)
|
||||
|
||||
(define-method set_parent
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_set_parent")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_set_parent")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("ClutterElement*" "parent")
|
||||
'("ClutterActor*" "parent")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method get_parent
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_get_parent")
|
||||
(return-type "ClutterElement*")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_get_parent")
|
||||
(return-type "ClutterActor*")
|
||||
)
|
||||
|
||||
(define-method raise
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_raise")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_raise")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("ClutterElement*" "below")
|
||||
'("ClutterActor*" "below")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method lower
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_lower")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_lower")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("ClutterElement*" "above")
|
||||
'("ClutterActor*" "above")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method raise_top
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_raise_top")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_raise_top")
|
||||
(return-type "none")
|
||||
)
|
||||
|
||||
(define-method lower_bottom
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_lower_bottom")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_lower_bottom")
|
||||
(return-type "none")
|
||||
)
|
||||
|
||||
(define-method set_depth
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_set_depth")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_set_depth")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("gint" "depth")
|
||||
@ -540,8 +540,8 @@
|
||||
)
|
||||
|
||||
(define-method get_depth
|
||||
(of-object "ClutterElement")
|
||||
(c-name "clutter_element_get_depth")
|
||||
(of-object "ClutterActor")
|
||||
(c-name "clutter_actor_get_depth")
|
||||
(return-type "gint")
|
||||
)
|
||||
|
||||
@ -550,13 +550,13 @@
|
||||
(define-function clutter_rectangle_new
|
||||
(c-name "clutter_rectangle_new")
|
||||
(is-constructor-of "ClutterRectangle")
|
||||
(return-type "ClutterElement*")
|
||||
(return-type "ClutterActor*")
|
||||
)
|
||||
|
||||
(define-function clutter_rectangle_new_with_color
|
||||
(c-name "clutter_rectangle_new_with_color")
|
||||
(is-constructor-of "ClutterRectangle")
|
||||
(return-type "ClutterElement*")
|
||||
(return-type "ClutterActor*")
|
||||
(properties
|
||||
'("color" (argname "color"))
|
||||
)
|
||||
@ -591,7 +591,7 @@
|
||||
|
||||
(define-function clutter_texture_new_from_pixbuf
|
||||
(c-name "clutter_texture_new_from_pixbuf")
|
||||
(return-type "ClutterElement*")
|
||||
(return-type "ClutterActor*")
|
||||
(parameters
|
||||
'("GdkPixbuf*" "pixbuf")
|
||||
)
|
||||
@ -600,7 +600,7 @@
|
||||
(define-function clutter_texture_new
|
||||
(c-name "clutter_texture_new")
|
||||
(is-constructor-of "ClutterTexture")
|
||||
(return-type "ClutterElement*")
|
||||
(return-type "ClutterActor*")
|
||||
)
|
||||
|
||||
(define-method set_pixbuf
|
||||
@ -790,168 +790,12 @@
|
||||
(define-function clutter_clone_texture_new
|
||||
(c-name "clutter_clone_texture_new")
|
||||
(is-constructor-of "ClutterCloneTexture")
|
||||
(return-type "ClutterElement*")
|
||||
(return-type "ClutterActor*")
|
||||
(properties
|
||||
'("parent-texture" (argname "texture"))
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
|
||||
;; From ../../clutter/clutter-video-texture.h
|
||||
|
||||
(define-function clutter_video_texture_error_quark
|
||||
(c-name "clutter_video_texture_error_quark")
|
||||
(return-type "GQuark")
|
||||
)
|
||||
|
||||
(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 "ClutterElement*")
|
||||
)
|
||||
|
||||
(define-method open
|
||||
(of-object "ClutterVideoTexture")
|
||||
(c-name "clutter_video_texture_open")
|
||||
(return-type "gboolean")
|
||||
(parameters
|
||||
'("const-gchar*" "mrl")
|
||||
'("const-gchar*" "subtitle_uri")
|
||||
'("GError**" "error")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method play
|
||||
(of-object "ClutterVideoTexture")
|
||||
(c-name "clutter_video_texture_play")
|
||||
(return-type "gboolean")
|
||||
(parameters
|
||||
'("GError**" "error")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method pause
|
||||
(of-object "ClutterVideoTexture")
|
||||
(c-name "clutter_video_texture_pause")
|
||||
(return-type "none")
|
||||
)
|
||||
|
||||
(define-method can_direct_seek
|
||||
(of-object "ClutterVideoTexture")
|
||||
(c-name "clutter_video_texture_can_direct_seek")
|
||||
(return-type "gboolean")
|
||||
)
|
||||
|
||||
(define-method seek_time
|
||||
(of-object "ClutterVideoTexture")
|
||||
(c-name "clutter_video_texture_seek_time")
|
||||
(return-type "gboolean")
|
||||
(parameters
|
||||
'("gint64" "time")
|
||||
'("GError**" "gerror")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method seek
|
||||
(of-object "ClutterVideoTexture")
|
||||
(c-name "clutter_video_texture_seek")
|
||||
(return-type "gboolean")
|
||||
(parameters
|
||||
'("float" "position")
|
||||
'("GError**" "error")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method stop
|
||||
(of-object "ClutterVideoTexture")
|
||||
(c-name "clutter_video_texture_stop")
|
||||
(return-type "none")
|
||||
)
|
||||
|
||||
(define-method can_set_volume
|
||||
(of-object "ClutterVideoTexture")
|
||||
(c-name "clutter_video_texture_can_set_volume")
|
||||
(return-type "gboolean")
|
||||
)
|
||||
|
||||
(define-method set_volume
|
||||
(of-object "ClutterVideoTexture")
|
||||
(c-name "clutter_video_texture_set_volume")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("int" "volume")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method get_volume
|
||||
(of-object "ClutterVideoTexture")
|
||||
(c-name "clutter_video_texture_get_volume")
|
||||
(return-type "int")
|
||||
)
|
||||
|
||||
(define-method get_current_time
|
||||
(of-object "ClutterVideoTexture")
|
||||
(c-name "clutter_video_texture_get_current_time")
|
||||
(return-type "gint64")
|
||||
)
|
||||
|
||||
(define-method get_stream_length
|
||||
(of-object "ClutterVideoTexture")
|
||||
(c-name "clutter_video_texture_get_stream_length")
|
||||
(return-type "gint64")
|
||||
)
|
||||
|
||||
(define-method is_playing
|
||||
(of-object "ClutterVideoTexture")
|
||||
(c-name "clutter_video_texture_is_playing")
|
||||
(return-type "gboolean")
|
||||
)
|
||||
|
||||
(define-method is_seekable
|
||||
(of-object "ClutterVideoTexture")
|
||||
(c-name "clutter_video_texture_is_seekable")
|
||||
(return-type "gboolean")
|
||||
)
|
||||
|
||||
(define-method get_position
|
||||
(of-object "ClutterVideoTexture")
|
||||
(c-name "clutter_video_texture_get_position")
|
||||
(return-type "float")
|
||||
)
|
||||
|
||||
(define-method set_aspect_ratio
|
||||
(of-object "ClutterVideoTexture")
|
||||
(c-name "clutter_video_texture_set_aspect_ratio")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("ClutterVideoTextureAspectRatio" "ratio")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method get_aspect_ratio
|
||||
(of-object "ClutterVideoTexture")
|
||||
(c-name "clutter_video_texture_get_aspect_ratio")
|
||||
(return-type "ClutterVideoTextureAspectRatio")
|
||||
)
|
||||
|
||||
(define-method get_metadata
|
||||
(of-object "ClutterVideoTexture")
|
||||
(c-name "clutter_video_texture_get_metadata")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("ClutterVideoTextureMetadataType" "type")
|
||||
'("GValue*" "value")
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
|
||||
;; From ../../clutter/clutter-label.h
|
||||
|
||||
(define-function clutter_label_get_type
|
||||
@ -962,12 +806,12 @@
|
||||
(define-function clutter_label_new
|
||||
(c-name "clutter_label_new")
|
||||
(is-constructor-of "ClutterLabel")
|
||||
(return-type "ClutterElement*")
|
||||
(return-type "ClutterActor*")
|
||||
)
|
||||
|
||||
(define-function clutter_label_new_with_text
|
||||
(c-name "clutter_label_new_with_text")
|
||||
(return-type "ClutterElement*")
|
||||
(return-type "ClutterActor*")
|
||||
(is-constructor-of "ClutterLabel")
|
||||
(properties
|
||||
'("font-name" (argname "name") (optional))
|
||||
@ -1063,7 +907,7 @@
|
||||
(c-name "clutter_group_add")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("ClutterElement*" "element")
|
||||
'("ClutterActor*" "actor")
|
||||
)
|
||||
)
|
||||
|
||||
@ -1072,7 +916,7 @@
|
||||
(c-name "clutter_group_add_many_valist")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("ClutterElement*" "first_element")
|
||||
'("ClutterActor*" "first_actor")
|
||||
'("va_list" "args")
|
||||
)
|
||||
)
|
||||
@ -1082,7 +926,7 @@
|
||||
(c-name "clutter_group_add_many")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("ClutterElement*" "first_element")
|
||||
'("ClutterActor*" "first_actor")
|
||||
)
|
||||
(varargs #t)
|
||||
)
|
||||
@ -1092,7 +936,7 @@
|
||||
(c-name "clutter_group_remove")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("ClutterElement*" "element")
|
||||
'("ClutterActor*" "actor")
|
||||
)
|
||||
)
|
||||
|
||||
@ -1111,7 +955,7 @@
|
||||
(define-method find_child_by_id
|
||||
(of-object "ClutterGroup")
|
||||
(c-name "clutter_group_find_child_by_id")
|
||||
(return-type "ClutterElement*")
|
||||
(return-type "ClutterActor*")
|
||||
(parameters
|
||||
'("guint" "id")
|
||||
)
|
||||
@ -1122,8 +966,8 @@
|
||||
(c-name "clutter_group_raise")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("ClutterElement*" "element")
|
||||
'("ClutterElement*" "sibling")
|
||||
'("ClutterActor*" "actor")
|
||||
'("ClutterActor*" "sibling")
|
||||
)
|
||||
)
|
||||
|
||||
@ -1132,8 +976,8 @@
|
||||
(c-name "clutter_group_lower")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("ClutterElement*" "element")
|
||||
'("ClutterElement*" "sibling")
|
||||
'("ClutterActor*" "actor")
|
||||
'("ClutterActor*" "sibling")
|
||||
)
|
||||
)
|
||||
|
||||
@ -1148,7 +992,7 @@
|
||||
|
||||
(define-function stage_get_default
|
||||
(c-name "clutter_stage_get_default")
|
||||
(return-type "ClutterElement*")
|
||||
(return-type "ClutterActor*")
|
||||
)
|
||||
|
||||
(define-method get_xwindow
|
||||
@ -1175,10 +1019,10 @@
|
||||
)
|
||||
)
|
||||
|
||||
(define-method get_element_at_pos
|
||||
(define-method get_actor_at_pos
|
||||
(of-object "ClutterStage")
|
||||
(c-name "clutter_stage_get_element_at_pos")
|
||||
(return-type "ClutterElement*")
|
||||
(c-name "clutter_stage_get_actor_at_pos")
|
||||
(return-type "ClutterActor*")
|
||||
(parameters
|
||||
'("gint" "x")
|
||||
'("gint" "y")
|
||||
@ -1206,13 +1050,13 @@
|
||||
(return-type "GType")
|
||||
)
|
||||
|
||||
(define-function clutter_element_transform_get_type
|
||||
(c-name "clutter_element_transform_get_type")
|
||||
(define-function clutter_actor_transform_get_type
|
||||
(c-name "clutter_actor_transform_get_type")
|
||||
(return-type "GType")
|
||||
)
|
||||
|
||||
(define-function clutter_element_flags_get_type
|
||||
(c-name "clutter_element_flags_get_type")
|
||||
(define-function clutter_actor_flags_get_type
|
||||
(c-name "clutter_actor_flags_get_type")
|
||||
(return-type "GType")
|
||||
)
|
||||
|
||||
|
@ -9,12 +9,11 @@ headers
|
||||
#include <clutter/clutter-timeline.h>
|
||||
#include <clutter/clutter-stage.h>
|
||||
#include <clutter/clutter-color.h>
|
||||
#include <clutter/clutter-element.h>
|
||||
#include <clutter/clutter-actor.h>
|
||||
#include <clutter/clutter-rectangle.h>
|
||||
#include <clutter/clutter-group.h>
|
||||
#include <clutter/clutter-texture.h>
|
||||
#include <clutter/clutter-clone-texture.h>
|
||||
#include <clutter/clutter-video-texture.h>
|
||||
#include <clutter/clutter-label.h>
|
||||
#include <clutter/clutter-util.h>
|
||||
#include <clutter/clutter-enum-types.h>
|
||||
@ -191,37 +190,37 @@ _wrap_clutter_geometry__set_height (PyGBoxed *self, PyObject *value, void *closu
|
||||
return 0;
|
||||
}
|
||||
%%
|
||||
override clutter_element_box_new kwargs
|
||||
override clutter_actor_box_new kwargs
|
||||
static int
|
||||
_wrap_clutter_element_box_new (PyGBoxed *self, PyObject *args, PyObject *kwargs)
|
||||
_wrap_clutter_actor_box_new (PyGBoxed *self, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
static char *kwlist[] = { "x1", "y1", "x2", "y2", NULL };
|
||||
ClutterElementBox box = { 0, 0, 0, 0 };
|
||||
ClutterActorBox box = { 0, 0, 0, 0 };
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs,
|
||||
"|iiii:ClutterElementBox.__init__",
|
||||
"|iiii:ClutterActorBox.__init__",
|
||||
kwlist,
|
||||
&(box.x1), &(box.y1),
|
||||
&(box.x2), &(box.y2)))
|
||||
return -1;
|
||||
|
||||
self->boxed = g_boxed_copy (CLUTTER_TYPE_ELEMENT_BOX, &box);
|
||||
self->boxed = g_boxed_copy (CLUTTER_TYPE_ACTOR_BOX, &box);
|
||||
self->free_on_dealloc = TRUE;
|
||||
self->gtype = CLUTTER_TYPE_ELEMENT_BOX;
|
||||
self->gtype = CLUTTER_TYPE_ACTOR_BOX;
|
||||
|
||||
return 0;
|
||||
}
|
||||
%%
|
||||
override-slot ClutterElementBox.tp_as_sequence
|
||||
override-slot ClutterActorBox.tp_as_sequence
|
||||
static int
|
||||
_wrap_clutter_element_box_length (PyGBoxed *self)
|
||||
_wrap_clutter_actor_box_length (PyGBoxed *self)
|
||||
{
|
||||
return 4;
|
||||
}
|
||||
static PyObject *
|
||||
_wrap_clutter_element_box_getitem(PyGBoxed *self, int pos)
|
||||
_wrap_clutter_actor_box_getitem(PyGBoxed *self, int pos)
|
||||
{
|
||||
ClutterElementBox *box;
|
||||
ClutterActorBox *box;
|
||||
|
||||
if (pos < 0)
|
||||
pos += 4;
|
||||
@ -232,7 +231,7 @@ _wrap_clutter_element_box_getitem(PyGBoxed *self, int pos)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
box = pyg_boxed_get (self, ClutterElementBox);
|
||||
box = pyg_boxed_get (self, ClutterActorBox);
|
||||
switch (pos) {
|
||||
case 0: return PyInt_FromLong (box->x1);
|
||||
case 1: return PyInt_FromLong (box->y1);
|
||||
@ -244,9 +243,9 @@ _wrap_clutter_element_box_getitem(PyGBoxed *self, int pos)
|
||||
}
|
||||
}
|
||||
static int
|
||||
_wrap_clutter_element_box_setitem (PyGBoxed *self, int pos, PyObject *value)
|
||||
_wrap_clutter_actor_box_setitem (PyGBoxed *self, int pos, PyObject *value)
|
||||
{
|
||||
ClutterElementBox *box;
|
||||
ClutterActorBox *box;
|
||||
gint val;
|
||||
|
||||
if (pos < 0)
|
||||
@ -258,7 +257,7 @@ _wrap_clutter_element_box_setitem (PyGBoxed *self, int pos, PyObject *value)
|
||||
return -1;
|
||||
}
|
||||
|
||||
box = pyg_boxed_get (self, ClutterElementBox);
|
||||
box = pyg_boxed_get (self, ClutterActorBox);
|
||||
val = PyInt_AsLong (value);
|
||||
if (PyErr_Occurred ())
|
||||
return -1;
|
||||
@ -275,19 +274,19 @@ _wrap_clutter_element_box_setitem (PyGBoxed *self, int pos, PyObject *value)
|
||||
|
||||
return 0;
|
||||
}
|
||||
static PySequenceMethods _wrap_clutter_element_box_tp_as_sequence = {
|
||||
(inquiry) _wrap_clutter_element_box_length,
|
||||
static PySequenceMethods _wrap_clutter_actor_box_tp_as_sequence = {
|
||||
(inquiry) _wrap_clutter_actor_box_length,
|
||||
(binaryfunc) 0,
|
||||
(intargfunc) 0,
|
||||
(intargfunc) _wrap_clutter_element_box_getitem,
|
||||
(intargfunc) _wrap_clutter_actor_box_getitem,
|
||||
(intintargfunc) 0,
|
||||
(intobjargproc) _wrap_clutter_element_box_setitem,
|
||||
(intobjargproc) _wrap_clutter_actor_box_setitem,
|
||||
(intintobjargproc) 0
|
||||
};
|
||||
%%
|
||||
override-attr ClutterElementBox.x1
|
||||
override-attr ClutterActorBox.x1
|
||||
static int
|
||||
_wrap_clutter_element_box__set_x1 (PyGBoxed *self, PyObject *value, void *closure)
|
||||
_wrap_clutter_actor_box__set_x1 (PyGBoxed *self, PyObject *value, void *closure)
|
||||
{
|
||||
gint val;
|
||||
|
||||
@ -295,14 +294,14 @@ _wrap_clutter_element_box__set_x1 (PyGBoxed *self, PyObject *value, void *closur
|
||||
if (PyErr_Occurred ())
|
||||
return -1;
|
||||
|
||||
pyg_boxed_get (self, ClutterElementBox)->x1 = val;
|
||||
pyg_boxed_get (self, ClutterActorBox)->x1 = val;
|
||||
|
||||
return 0;
|
||||
}
|
||||
%%
|
||||
override-attr ClutterElementBox.y1
|
||||
override-attr ClutterActorBox.y1
|
||||
static int
|
||||
_wrap_clutter_element_box__set_y1 (PyGBoxed *self, PyObject *value, void *closure)
|
||||
_wrap_clutter_actor_box__set_y1 (PyGBoxed *self, PyObject *value, void *closure)
|
||||
{
|
||||
gint val;
|
||||
|
||||
@ -310,14 +309,14 @@ _wrap_clutter_element_box__set_y1 (PyGBoxed *self, PyObject *value, void *closur
|
||||
if (PyErr_Occurred ())
|
||||
return -1;
|
||||
|
||||
pyg_boxed_get (self, ClutterElementBox)->y1 = val;
|
||||
pyg_boxed_get (self, ClutterActorBox)->y1 = val;
|
||||
|
||||
return 0;
|
||||
}
|
||||
%%
|
||||
override-attr ClutterElementBox.x2
|
||||
override-attr ClutterActorBox.x2
|
||||
static int
|
||||
_wrap_clutter_element_box__set_x2 (PyGBoxed *self, PyObject *value, void *closure)
|
||||
_wrap_clutter_actor_box__set_x2 (PyGBoxed *self, PyObject *value, void *closure)
|
||||
{
|
||||
gint val;
|
||||
|
||||
@ -325,14 +324,14 @@ _wrap_clutter_element_box__set_x2 (PyGBoxed *self, PyObject *value, void *closur
|
||||
if (PyErr_Occurred ())
|
||||
return -1;
|
||||
|
||||
pyg_boxed_get(self, ClutterElementBox)->x2 = val;
|
||||
pyg_boxed_get(self, ClutterActorBox)->x2 = val;
|
||||
|
||||
return 0;
|
||||
}
|
||||
%%
|
||||
override-attr ClutterElementBox.y2
|
||||
override-attr ClutterActorBox.y2
|
||||
static int
|
||||
_wrap_clutter_element_box__set_y2 (PyGBoxed *self, PyObject *value, void *closure)
|
||||
_wrap_clutter_actor_box__set_y2 (PyGBoxed *self, PyObject *value, void *closure)
|
||||
{
|
||||
gint val;
|
||||
|
||||
@ -340,31 +339,31 @@ _wrap_clutter_element_box__set_y2 (PyGBoxed *self, PyObject *value, void *closur
|
||||
if (PyErr_Occurred ())
|
||||
return -1;
|
||||
|
||||
pyg_boxed_get (self, ClutterElementBox)->y2 = val;
|
||||
pyg_boxed_get (self, ClutterActorBox)->y2 = val;
|
||||
|
||||
return 0;
|
||||
}
|
||||
%%
|
||||
override clutter_element_get_coords
|
||||
override clutter_actor_get_coords
|
||||
static PyObject *
|
||||
_wrap_clutter_element_get_coords (PyGObject *self)
|
||||
_wrap_clutter_actor_get_coords (PyGObject *self)
|
||||
{
|
||||
gint x1, y1;
|
||||
gint x2, y2;
|
||||
|
||||
clutter_element_get_coords (CLUTTER_ELEMENT (self->obj),
|
||||
clutter_actor_get_coords (CLUTTER_ACTOR (self->obj),
|
||||
&x1, &y1,
|
||||
&x2, &y2);
|
||||
return Py_BuildValue("(iiii)", x1, y1, x2, y2);
|
||||
}
|
||||
%%
|
||||
override clutter_element_get_abs_position
|
||||
override clutter_actor_get_abs_position
|
||||
static PyObject *
|
||||
_wrap_clutter_element_get_abs_position (PyGObject *self)
|
||||
_wrap_clutter_actor_get_abs_position (PyGObject *self)
|
||||
{
|
||||
gint pos_x, pos_y;
|
||||
|
||||
clutter_element_get_abs_position (CLUTTER_ELEMENT (self->obj),
|
||||
clutter_actor_get_abs_position (CLUTTER_ACTOR (self->obj),
|
||||
&pos_x,
|
||||
&pos_y);
|
||||
return Py_BuildValue("(ii)", pos_x, pos_y);
|
||||
@ -453,19 +452,19 @@ _wrap_clutter_group_add_many (PyGObject *self,
|
||||
group = CLUTTER_GROUP (self->obj);
|
||||
|
||||
for (i = 0; i < len; i++) {
|
||||
PyGObject *pyelement;
|
||||
ClutterElement *element;
|
||||
PyGObject *pyactor;
|
||||
ClutterActor *actor;
|
||||
|
||||
pyelement = (PyGObject *) PyTuple_GetItem (args, i);
|
||||
if (!pygobject_check (pyelement, &PyClutterElement_Type)) {
|
||||
pyactor = (PyGObject *) PyTuple_GetItem (args, i);
|
||||
if (!pygobject_check (pyactor, &PyClutterActor_Type)) {
|
||||
PyErr_SetString (PyExc_TypeError,
|
||||
"Expected a ClutterElement");
|
||||
"Expected a ClutterActor");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
element = CLUTTER_ELEMENT (pyelement->obj);
|
||||
actor = CLUTTER_ACTOR (pyactor->obj);
|
||||
|
||||
clutter_group_add (group, element);
|
||||
clutter_group_add (group, actor);
|
||||
}
|
||||
|
||||
Py_INCREF (Py_None);
|
||||
|
Reference in New Issue
Block a user