mutter/bindings/python/clutter-base.defs

1196 lines
22 KiB
Plaintext
Raw Normal View History

2006-05-29 04:59:36 -04:00
;; -*- 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"))
2006-05-29 04:59:36 -04:00
'("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")
)
2006-05-29 04:59:36 -04:00
(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")
)
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
(define-function main_quit
(c-name "clutter_main_quit")
(return-type "none")
2006-05-29 04:59:36 -04:00
)
(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")
)
)
2006-05-29 04:59:36 -04:00
;; From ../../clutter/clutter-event.h
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
(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")
)
2006-05-29 04:59:36 -04:00
(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
2006-05-29 04:59:36 -04:00
(define-function clutter_geometry_get_type
(c-name "clutter_geometry_get_type")
(return-type "GType")
)
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
;;(define-function geometry_new
;; (c-name "clutter_geometry_new")
;; (is-constructor-of "ClutterGeometry")
;; (return-type "ClutterGeometry")
;;)
2006-05-29 04:59:36 -04:00
(define-function clutter_actor_box_get_type
(c-name "clutter_actor_box_get_type")
2006-05-29 04:59:36 -04:00
(return-type "GType")
)
;;(define-function actor_box_new
;; (c-name "clutter_actor_box_new")
;; (is-constructor-of "ClutterActorBox")
;; (return-type "ClutterActorBox")
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
;;)
2006-05-29 04:59:36 -04:00
(define-function clutter_actor_get_type
(c-name "clutter_actor_get_type")
2006-05-29 04:59:36 -04:00
(return-type "GType")
)
(define-method show
(of-object "ClutterActor")
(c-name "clutter_actor_show")
2006-05-29 04:59:36 -04:00
(return-type "none")
)
(define-method hide
(of-object "ClutterActor")
(c-name "clutter_actor_hide")
2006-05-29 04:59:36 -04:00
(return-type "none")
)
(define-method realize
(of-object "ClutterActor")
(c-name "clutter_actor_realize")
2006-05-29 04:59:36 -04:00
(return-type "none")
)
(define-method unrealize
(of-object "ClutterActor")
(c-name "clutter_actor_unrealize")
2006-05-29 04:59:36 -04:00
(return-type "none")
)
(define-method paint
(of-object "ClutterActor")
(c-name "clutter_actor_paint")
2006-05-29 04:59:36 -04:00
(return-type "none")
)
(define-method queue_redraw
(of-object "ClutterActor")
(c-name "clutter_actor_queue_redraw")
2006-05-29 04:59:36 -04:00
(return-type "none")
)
(define-method request_coords
(of-object "ClutterActor")
(c-name "clutter_actor_request_coords")
2006-05-29 04:59:36 -04:00
(return-type "none")
(parameters
'("ClutterActorBox*" "box")
2006-05-29 04:59:36 -04:00
)
)
(define-method allocate_coords
(of-object "ClutterActor")
(c-name "clutter_actor_allocate_coords")
2006-05-29 04:59:36 -04:00
(return-type "none")
(parameters
'("ClutterActorBox*" "box")
2006-05-29 04:59:36 -04:00
)
)
(define-method set_geometry
(of-object "ClutterActor")
(c-name "clutter_actor_set_geometry")
2006-05-29 04:59:36 -04:00
(return-type "none")
(parameters
'("ClutterGeometry*" "geom")
)
)
(define-method get_geometry
(of-object "ClutterActor")
(c-name "clutter_actor_get_geometry")
2006-05-29 04:59:36 -04:00
(return-type "none")
(parameters
'("ClutterGeometry*" "geom")
)
)
(define-method get_coords
(of-object "ClutterActor")
(c-name "clutter_actor_get_coords")
2006-05-29 04:59:36 -04:00
(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")
2006-05-29 04:59:36 -04:00
(return-type "none")
(parameters
'("gint" "x")
'("gint" "y")
)
)
(define-method set_size
(of-object "ClutterActor")
(c-name "clutter_actor_set_size")
2006-05-29 04:59:36 -04:00
(return-type "none")
(parameters
'("gint" "width")
'("gint" "height")
)
)
(define-method get_abs_position
(of-object "ClutterActor")
(c-name "clutter_actor_get_abs_position")
2006-05-29 04:59:36 -04:00
(return-type "none")
(parameters
'("gint*" "x")
'("gint*" "y")
)
)
(define-method get_width
(of-object "ClutterActor")
(c-name "clutter_actor_get_width")
2006-05-29 04:59:36 -04:00
(return-type "guint")
)
(define-method get_height
(of-object "ClutterActor")
(c-name "clutter_actor_get_height")
2006-05-29 04:59:36 -04:00
(return-type "guint")
)
(define-method get_x
(of-object "ClutterActor")
(c-name "clutter_actor_get_x")
2006-05-29 04:59:36 -04:00
(return-type "gint")
)
(define-method get_y
(of-object "ClutterActor")
(c-name "clutter_actor_get_y")
2006-05-29 04:59:36 -04:00
(return-type "gint")
)
(define-method rotate_z
(of-object "ClutterActor")
(c-name "clutter_actor_rotate_z")
2006-05-29 04:59:36 -04:00
(return-type "none")
(parameters
'("gfloat" "angle")
'("gint" "x")
'("gint" "y")
)
)
(define-method rotate_x
(of-object "ClutterActor")
(c-name "clutter_actor_rotate_x")
2006-05-29 04:59:36 -04:00
(return-type "none")
(parameters
'("gfloat" "angle")
'("gint" "y")
'("gint" "z")
)
)
(define-method rotate_y
(of-object "ClutterActor")
(c-name "clutter_actor_rotate_y")
2006-05-29 04:59:36 -04:00
(return-type "none")
(parameters
'("gfloat" "angle")
'("gint" "x")
'("gint" "z")
)
)
(define-method set_opacity
(of-object "ClutterActor")
(c-name "clutter_actor_set_opacity")
2006-05-29 04:59:36 -04:00
(return-type "none")
(parameters
'("guint8" "opacity")
)
)
(define-method get_opacity
(of-object "ClutterActor")
(c-name "clutter_actor_get_opacity")
2006-05-29 04:59:36 -04:00
(return-type "guint8")
)
(define-method set_name
(of-object "ClutterActor")
(c-name "clutter_actor_set_name")
2006-05-29 04:59:36 -04:00
(return-type "none")
(parameters
'("const-gchar*" "id")
)
)
(define-method get_name
(of-object "ClutterActor")
(c-name "clutter_actor_get_name")
2006-05-29 04:59:36 -04:00
(return-type "const-gchar*")
)
(define-method get_id
(of-object "ClutterActor")
(c-name "clutter_actor_get_id")
2006-05-29 04:59:36 -04:00
(return-type "guint32")
)
(define-method set_clip
(of-object "ClutterActor")
(c-name "clutter_actor_set_clip")
2006-05-29 04:59:36 -04:00
(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")
2006-05-29 04:59:36 -04:00
(return-type "none")
)
(define-method set_parent
(of-object "ClutterActor")
(c-name "clutter_actor_set_parent")
2006-05-29 04:59:36 -04:00
(return-type "none")
(parameters
'("ClutterActor*" "parent")
2006-05-29 04:59:36 -04:00
)
)
(define-method get_parent
(of-object "ClutterActor")
(c-name "clutter_actor_get_parent")
(return-type "ClutterActor*")
2006-05-29 04:59:36 -04:00
)
(define-method raise
(of-object "ClutterActor")
(c-name "clutter_actor_raise")
2006-05-29 04:59:36 -04:00
(return-type "none")
(parameters
'("ClutterActor*" "below")
2006-05-29 04:59:36 -04:00
)
)
(define-method lower
(of-object "ClutterActor")
(c-name "clutter_actor_lower")
2006-05-29 04:59:36 -04:00
(return-type "none")
(parameters
'("ClutterActor*" "above")
2006-05-29 04:59:36 -04:00
)
)
(define-method raise_top
(of-object "ClutterActor")
(c-name "clutter_actor_raise_top")
2006-05-29 04:59:36 -04:00
(return-type "none")
)
(define-method lower_bottom
(of-object "ClutterActor")
(c-name "clutter_actor_lower_bottom")
2006-05-29 04:59:36 -04:00
(return-type "none")
)
(define-method set_depth
(of-object "ClutterActor")
(c-name "clutter_actor_set_depth")
(return-type "none")
(parameters
'("gint" "depth")
)
)
2006-05-29 04:59:36 -04:00
(define-method get_depth
(of-object "ClutterActor")
(c-name "clutter_actor_get_depth")
(return-type "gint")
)
2006-05-29 04:59:36 -04:00
;; From ../../clutter/clutter-rectangle.h
(define-function clutter_rectangle_new
(c-name "clutter_rectangle_new")
(is-constructor-of "ClutterRectangle")
(return-type "ClutterActor*")
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
)
(define-function clutter_rectangle_new_with_color
(c-name "clutter_rectangle_new_with_color")
(is-constructor-of "ClutterRectangle")
(return-type "ClutterActor*")
2006-05-29 04:59:36 -04:00
(properties
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
'("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")
2006-05-29 04:59:36 -04:00
)
)
;; 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*")
2006-05-29 04:59:36 -04:00
(parameters
'("GdkPixbuf*" "pixbuf")
)
)
(define-function clutter_texture_new
(c-name "clutter_texture_new")
(is-constructor-of "ClutterTexture")
(return-type "ClutterActor*")
2006-05-29 04:59:36 -04:00
)
(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*")
)
2006-05-29 04:59:36 -04:00
;; From ../../clutter/clutter-color.h
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
(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")
2006-05-29 04:59:36 -04:00
(parameters
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
'("ClutterColor*" "dest")
2006-05-29 04:59:36 -04:00
)
)
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
(define-method darken
2006-05-29 04:59:36 -04:00
(of-object "ClutterColor")
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
(c-name "clutter_color_darken")
2006-05-29 04:59:36 -04:00
(return-type "none")
(parameters
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
'("ClutterColor*" "dest")
2006-05-29 04:59:36 -04:00
)
)
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
(define-method shade
2006-05-29 04:59:36 -04:00
(of-object "ClutterColor")
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
(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")
2006-05-29 04:59:36 -04:00
(return-type "none")
(parameters
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
'("ClutterColor" "dest")
'("guint32" "pixel")
2006-05-29 04:59:36 -04:00
)
)
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
2006-05-29 04:59:36 -04:00
;; 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*")
2006-05-29 04:59:36 -04:00
(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*")
2006-05-29 04:59:36 -04:00
)
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
(define-function clutter_label_new_with_text
(c-name "clutter_label_new_with_text")
(return-type "ClutterActor*")
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
(is-constructor-of "ClutterLabel")
(properties
'("font-name" (argname "name") (optional))
'("text" (argname "str") (optional))
)
)
2006-05-29 04:59:36 -04:00
(define-method set_text
(of-object "ClutterLabel")
(c-name "clutter_label_set_text")
(return-type "none")
(parameters
'("const-gchar*" "text")
)
)
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
(define-method get_text
2006-05-29 04:59:36 -04:00
(of-object "ClutterLabel")
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
(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")
2006-05-29 04:59:36 -04:00
(return-type "none")
(parameters
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
'("const-gchar*" "font_name")
2006-05-29 04:59:36 -04:00
)
)
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
(define-method get_font_name
(of-object "ClutterLabel")
(c-name "clutter_label_get_font_name")
(return-type "const-gchar*")
)
2006-05-29 04:59:36 -04:00
(define-method set_color
(of-object "ClutterLabel")
(c-name "clutter_label_set_color")
(return-type "none")
(parameters
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
'("const-ClutterColor*" "color")
)
)
(define-method get_color
(of-object "ClutterLabel")
(c-name "clutter_label_get_color")
(return-type "none")
(parameters
'("ClutterColor*" "color")
2006-05-29 04:59:36 -04:00
)
)
(define-method set_text_extents
(of-object "ClutterLabel")
(c-name "clutter_label_set_text_extents")
(return-type "none")
(parameters
'("gint" "width")
'("gint" "height")
)
)
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
(define-method get_text_extents
(of-object "ClutterLabel")
(c-name "clutter_label_get_text_extents")
(return-type "none")
(parameters
'("gint*" "width")
'("gint*" "height")
)
)
2006-05-29 04:59:36 -04:00
;; 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")
2006-05-29 04:59:36 -04:00
)
)
(define-method add_many_valist
(of-object "ClutterGroup")
(c-name "clutter_group_add_many_valist")
(return-type "none")
(parameters
'("ClutterActor*" "first_actor")
2006-05-29 04:59:36 -04:00
'("va_list" "args")
)
)
(define-method add_many
(of-object "ClutterGroup")
(c-name "clutter_group_add_many")
(return-type "none")
(parameters
'("ClutterActor*" "first_actor")
2006-05-29 04:59:36 -04:00
)
(varargs #t)
)
(define-method remove
(of-object "ClutterGroup")
(c-name "clutter_group_remove")
(return-type "none")
(parameters
'("ClutterActor*" "actor")
2006-05-29 04:59:36 -04:00
)
)
(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*")
2006-05-29 04:59:36 -04:00
(parameters
'("guint" "id")
)
)
(define-method raise
(of-object "ClutterGroup")
(c-name "clutter_group_raise")
(return-type "none")
(parameters
'("ClutterActor*" "actor")
'("ClutterActor*" "sibling")
2006-05-29 04:59:36 -04:00
)
)
(define-method lower
(of-object "ClutterGroup")
(c-name "clutter_group_lower")
(return-type "none")
(parameters
'("ClutterActor*" "actor")
'("ClutterActor*" "sibling")
2006-05-29 04:59:36 -04:00
)
)
;; From ../../clutter/clutter-stage.h
(define-function clutter_stage_get_type
(c-name "clutter_stage_get_type")
(return-type "GType")
)
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
(define-function stage_get_default
(c-name "clutter_stage_get_default")
(return-type "ClutterActor*")
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
)
2006-05-29 04:59:36 -04:00
(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
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
'("const-ClutterColor*" "color")
2006-05-29 04:59:36 -04:00
)
)
(define-method get_color
(of-object "ClutterStage")
(c-name "clutter_stage_get_color")
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
(return-type "none")
(parameters
'("ClutterColor*" "color")
)
2006-05-29 04:59:36 -04:00
)
(define-method get_actor_at_pos
2006-05-29 04:59:36 -04:00
(of-object "ClutterStage")
(c-name "clutter_stage_get_actor_at_pos")
(return-type "ClutterActor*")
2006-05-29 04:59:36 -04:00
(parameters
'("gint" "x")
'("gint" "y")
)
)
2006-06-05 Emmanuele Bassi <ebassi@openedhand.com> * clutter-color.h: * clutter-color.c: Reimplement ClutterColor as a boxed type; add convenience API for color handling, like: add, subtract, shade, HSL color-space conversion, packing and unpacking. * clutter-private.h: Update ClutterMainContext, and export the main context pointer here. * clutter-rectangle.h: * clutter-rectangle.c: Update the color-related code; make clutter_rectangle_new() and empty constructor and provide clutter_rectangle_new_with_color(); provide color setter and getter API. * clutter-label.h: * clutter-label.c: Rename the "font" property to "font-name"; update the color-related code to the new ClutterColor object; rename clutter_label_new() to clutter_label_new_with_text(), and add setters and getters for the properties. * clutter-marshal.list: Add VOID:OBJECT and VOID:BOXED marshallers generators. * clutter-stage.h: * clutter-stage.c: Rework the API: provide a default constructor for a singleton object, named clutter_stage_get_default(), which supercedes the clutter_stage() function in clutter-main; provide new events: button-press-event, button-release-event, key-press-event and key-release-event; update the color-related code; (clutter_stage_snapshot): Allow negative width and height when taking a snapshot (meaning: use full width/height). (clutter_stage_get_element_at_pos): Rename clutter_stage_pick(). * clutter-element.c (clutter_element_paint): Clean up the stage and color related code. * clutter-event.h: * clutter-event.c: Add generic ClutterAnyEvent type; add clutter_event_new(), clutter_event_copy() and clutter_event_free(); make ClutterEvent a boxed type. * clutter-main.h: * clutter-main.c: Remove clutter_stage(); add clutter_main_quit(), for cleanly quitting from clutter_main(); add multiple mainloops support; allocate the ClutterCntx instead of adding it to the stack; re-work the ClutterEvent dispatching. * clutter-group.c (clutter_group_add), (clutter_group_remove): Keep a reference on the element when added to a ClutterGroup. * examples/rects.py * examples/test.c: * examples/test-text.c: * examples/video-cube.c: * examples/super-oh.c: * examples/test-video.c: Update.
2006-06-05 09:38:31 -04:00
(define-method snapshot
(of-object "ClutterStage")
(c-name "clutter_stage_snapshot")
(return-type "GdkPixbuf*")
(parameters
'("gint" "x")
'("gint" "y")
'("gint" "width")
'("gint" "height")
)
)
2006-05-29 04:59:36 -04:00
;; 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")
2006-05-29 04:59:36 -04:00
(return-type "GType")
)
(define-function clutter_actor_flags_get_type
(c-name "clutter_actor_flags_get_type")
2006-05-29 04:59:36 -04:00
(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")
)