2006-05-29 08:59:36 +00:00
|
|
|
;; -*- scheme -*-
|
|
|
|
;;
|
|
|
|
;; Try and keep everything sorted
|
|
|
|
;;
|
|
|
|
|
|
|
|
;; Boxed types
|
|
|
|
|
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 13:38:31 +00:00
|
|
|
(define-boxed Color
|
|
|
|
(in-module "Clutter")
|
|
|
|
(c-name "ClutterColor")
|
|
|
|
(gtype-id "CLUTTER_TYPE_COLOR")
|
|
|
|
(fields
|
|
|
|
'("guint8" "red")
|
|
|
|
'("guint8" "green")
|
|
|
|
'("guint8" "blue")
|
|
|
|
'("guint8" "alpha")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2006-06-13 13:17:45 +00:00
|
|
|
(define-boxed ActorBox
|
2006-05-29 08:59:36 +00:00
|
|
|
(in-module "Clutter")
|
2006-06-13 13:17:45 +00:00
|
|
|
(c-name "ClutterActorBox")
|
|
|
|
(gtype-id "CLUTTER_TYPE_ACTOR_BOX")
|
2006-05-29 08:59:36 +00:00
|
|
|
(fields
|
|
|
|
'("gint" "x1")
|
|
|
|
'("gint" "y1")
|
|
|
|
'("gint" "x2")
|
|
|
|
'("gint" "y2")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
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 13:38:31 +00:00
|
|
|
(define-boxed Event
|
|
|
|
(in-module "Clutter")
|
|
|
|
(c-name "ClutterEvent")
|
|
|
|
(gtype-id "CLUTTER_TYPE_EVENT")
|
|
|
|
(fields
|
|
|
|
'("ClutterEventType" "type")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2006-05-29 08:59:36 +00:00
|
|
|
(define-boxed Geometry
|
|
|
|
(in-module "Clutter")
|
|
|
|
(c-name "ClutterGeometry")
|
|
|
|
(gtype-id "CLUTTER_TYPE_GEOMETRY")
|
|
|
|
(fields
|
|
|
|
'("gint" "x")
|
|
|
|
'("gint" "y")
|
|
|
|
'("gint" "width")
|
|
|
|
'("gint" "height")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
;; Enumerations and flags ...
|
|
|
|
|
2006-06-13 13:17:45 +00:00
|
|
|
(define-flags ActorFlags
|
2006-05-29 08:59:36 +00:00
|
|
|
(in-module "Clutter")
|
2006-06-13 13:17:45 +00:00
|
|
|
(c-name "ClutterActorFlags")
|
|
|
|
(gtype-id "CLUTTER_TYPE_ACTOR_FLAGS")
|
2006-05-29 08:59:36 +00:00
|
|
|
(values
|
2006-06-13 13:17:45 +00:00
|
|
|
'("mapped" "CLUTTER_ACTOR_MAPPED")
|
|
|
|
'("realized" "CLUTTER_ACTOR_REALIZED")
|
2006-05-29 08:59:36 +00:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-enum EventType
|
|
|
|
(in-module "Clutter")
|
|
|
|
(c-name "ClutterEventType")
|
|
|
|
(gtype-id "CLUTTER_TYPE_EVENT_TYPE")
|
|
|
|
(values
|
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 13:38:31 +00:00
|
|
|
'("nothing" "CLUTTER_NOTHING")
|
2006-05-29 08:59:36 +00:00
|
|
|
'("key-press" "CLUTTER_KEY_PRESS")
|
|
|
|
'("key-release" "CLUTTER_KEY_RELEASE")
|
|
|
|
'("motion" "CLUTTER_MOTION")
|
|
|
|
'("button-press" "CLUTTER_BUTTON_PRESS")
|
|
|
|
'("2button-press" "CLUTTER_2BUTTON_PRESS")
|
|
|
|
'("button-release" "CLUTTER_BUTTON_RELEASE")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
;; Objects
|
|
|
|
|
|
|
|
(define-object CloneTexture
|
|
|
|
(in-module "Clutter")
|
2006-06-13 13:17:45 +00:00
|
|
|
(parent "ClutterActor")
|
2006-05-29 08:59:36 +00:00
|
|
|
(c-name "ClutterCloneTexture")
|
|
|
|
(gtype-id "CLUTTER_TYPE_CLONE_TEXTURE")
|
|
|
|
)
|
|
|
|
|
2006-06-13 13:17:45 +00:00
|
|
|
(define-object Actor
|
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 13:38:31 +00:00
|
|
|
(in-module "Clutter")
|
|
|
|
(parent "GObject")
|
2006-06-13 13:17:45 +00:00
|
|
|
(c-name "ClutterActor")
|
|
|
|
(gtype-id "CLUTTER_TYPE_ACTOR")
|
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 13:38:31 +00:00
|
|
|
)
|
|
|
|
|
2006-05-29 08:59:36 +00:00
|
|
|
(define-object Group
|
|
|
|
(in-module "Clutter")
|
2006-06-13 13:17:45 +00:00
|
|
|
(parent "ClutterActor")
|
2006-05-29 08:59:36 +00:00
|
|
|
(c-name "ClutterGroup")
|
|
|
|
(gtype-id "CLUTTER_TYPE_GROUP")
|
|
|
|
)
|
|
|
|
|
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 13:38:31 +00:00
|
|
|
(define-object Label
|
|
|
|
(in-module "Clutter")
|
|
|
|
(parent "ClutterTexture")
|
|
|
|
(c-name "ClutterLabel")
|
|
|
|
(gtype-id "CLUTTER_TYPE_LABEL")
|
|
|
|
)
|
|
|
|
|
2006-05-29 08:59:36 +00:00
|
|
|
(define-object Rectangle
|
|
|
|
(in-module "Clutter")
|
2006-06-13 13:17:45 +00:00
|
|
|
(parent "ClutterActor")
|
2006-05-29 08:59:36 +00:00
|
|
|
(c-name "ClutterRectangle")
|
|
|
|
(gtype-id "CLUTTER_TYPE_RECTANGLE")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-object Stage
|
|
|
|
(in-module "Clutter")
|
|
|
|
(parent "ClutterGroup")
|
|
|
|
(c-name "ClutterStage")
|
|
|
|
(gtype-id "CLUTTER_TYPE_STAGE")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-object Texture
|
|
|
|
(in-module "Clutter")
|
2006-06-13 13:17:45 +00:00
|
|
|
(parent "ClutterActor")
|
2006-05-29 08:59:36 +00:00
|
|
|
(c-name "ClutterTexture")
|
|
|
|
(gtype-id "CLUTTER_TYPE_TEXTURE")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-object Timeline
|
|
|
|
(in-module "Clutter")
|
|
|
|
(parent "GObject")
|
|
|
|
(c-name "ClutterTimeline")
|
|
|
|
(gtype-id "CLUTTER_TYPE_TIMELINE")
|
|
|
|
)
|
|
|
|
|
|
|
|
;; Pointers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; Unsupported
|
|
|
|
|
|
|
|
|
|
|
|
|