2008-06-10 Emmanuele Bassi <ebassi@openedhand.com>
+ * clutter/clutter-child-meta.c: Fix section name
+
+ * clutter/clutter-container.c:
+ (clutter_container_child_set_property),
+ (clutter_container_child_get_property): Fix gtk-doc parameter
+ name.
+
+ * clutter/clutter-container.h: Fix documentation of the
+ interface vfuncs.
+
+ * clutter/clutter-event.h: Fix documentation.
+
+ * clutter/clutter-feature.h: Fix documentation.
+
+ * clutter/clutter-types.h: Add ClutterRequestMode.
+
+ * clutter/x11/clutter-event-x11.c: Fix documentation.
+
+ * tests/test-fullscreen.c: Verify that the stage size has been
+ changed by clutter_stage_fullscreen().
+
+2008-06-10 Emmanuele Bassi <ebassi@openedhand.com>
+
Bug #815 - Split up request, allocation, and paint box
* clutter/clutter-actor.[ch]: Rework the size allocation,
*/
/**
- * SECTION:clutter-child-data
+ * SECTION:clutter-child-meta
* @short_description: Wrapper for actors inside a container
*
* #ClutterChildMeta is a wrapper object created by #ClutterContainer
/**
* clutter_container_child_set_property:
* @container: a #ClutterContainer
- * @actor: a #ClutterActor that is a child of @container.
+ * @child: a #ClutterActor that is a child of @container.
* @property: the name of the property to set.
* @value: the value.
*
*/
void
clutter_container_child_set_property (ClutterContainer *container,
- ClutterActor *actor,
+ ClutterActor *child,
const gchar *property,
const GValue *value)
{
GParamSpec *pspec;
g_return_if_fail (CLUTTER_IS_CONTAINER (container));
- g_return_if_fail (CLUTTER_IS_ACTOR (actor));
+ g_return_if_fail (CLUTTER_IS_ACTOR (child));
g_return_if_fail (property != NULL);
g_return_if_fail (value != NULL);
return;
}
- container_set_child_property (container, actor, value, pspec);
+ container_set_child_property (container, child, value, pspec);
}
/**
/**
* clutter_container_child_get_property:
* @container: a #ClutterContainer
- * @actor: a #ClutterActor that is a child of @container.
+ * @child: a #ClutterActor that is a child of @container.
* @property: the name of the property to set.
* @value: the value.
*
*/
void
clutter_container_child_get_property (ClutterContainer *container,
- ClutterActor *actor,
+ ClutterActor *child,
const gchar *property,
GValue *value)
{
GParamSpec *pspec;
g_return_if_fail (CLUTTER_IS_CONTAINER (container));
- g_return_if_fail (CLUTTER_IS_ACTOR (actor));
+ g_return_if_fail (CLUTTER_IS_ACTOR (child));
g_return_if_fail (property != NULL);
g_return_if_fail (value != NULL);
return;
}
- container_get_child_property (container, actor, value, pspec);
+ container_get_child_property (container, child, value, pspec);
}
* @lower: virtual function for lowering a child
* @sort_depth_order: virtual function for sorting the children of a
* container depending on their depth
- * @child_record_type: The GType used for storing auxiliary information about
- * each of the containers children.
- * @create_child_record: virtual function that gets called for each added
- * child, the function should instantiate @child_record_type, set the container
- * and actor fields in the instance and add the record to a data structure for
- * subsequent access for get_child_record.
- * @destroy_child_record: virtual function that gets called when a child is removed
- * it shuld release all resources held by the record.
- * @get_child_record: return the record for a container child.
- * @actor_added: signal class handler for ClutterContainer::actor_added
- * @actor_removed: signal class handler for ClutterContainer::actor_removed
+ * @child_meta_type: The GType used for storing auxiliary information about
+ * each of the containers children.
+ * @create_child_meta: virtual function that gets called for each added
+ * child, the function should instantiate an object of type
+ * #ClutterContainerIface::child_meta_type, set the container and actor
+ * fields in the instance and add the record to a data structure for
+ * subsequent access for #ClutterContainerIface::get_child_meta
+ * @destroy_child_meta: virtual function that gets called when a child is
+ * removed; it shuld release all resources held by the record
+ * @get_child_meta: return the record for a container child
+ * @actor_added: signal class handler for #ClutterContainer::actor_added
+ * @actor_removed: signal class handler for #ClutterContainer::actor_removed
*
* Base interface for container actors.
*
* @type: event type
* @time: event time
* @flags: event flags
- * @stage: event source stage
* @source: event source actor
*
* Common members for a #ClutterEvent
* @type: event type
* @time: event time
* @flags: event flags
+ * @stage: event source stage
* @source: event source actor
* @x: event X coordinate
* @y: event Y coordinate
/**
* ClutterFeatureFlags:
- * @CLUTTER_FEATURE_TEXTURE_RECTANGLE: Set if NPOTS textures supported.
+ * @CLUTTER_FEATURE_TEXTURE_NPOT: Set if NPOTS textures supported.
* @CLUTTER_FEATURE_SYNC_TO_VBLANK: Set if vblank syncing supported.
* @CLUTTER_FEATURE_TEXTURE_YUV: Set if YUV based textures supported.
* @CLUTTER_FEATURE_TEXTURE_READ_PIXELS: Set if texture pixels can be read.
CLUTTER_ROTATE_CCW
} ClutterRotateDirection;
+/**
+ * ClutterRequestMode:
+ * @CLUTTER_REQUEST_HEIGHT_FOR_WIDTH: Height for width requests
+ * @CLUTTER_REQUEST_WIDTH_FOR_HEIGHT: Width for height requests
+ *
+ * Specifies the type of requests for a #ClutterActor.
+ *
+ * Since: 0.8
+ */
+typedef enum {
+ CLUTTER_REQUEST_HEIGHT_FOR_WIDTH,
+ CLUTTER_REQUEST_WIDTH_FOR_HEIGHT
+} ClutterRequestMode;
+
G_END_DECLS
#endif /* __CLUTTER_TYPES_H__ */
}
/**
- * clutter_x11_handle_event
+ * clutter_x11_handle_event:
* @xevent: pointer to XEvent structure
*
* This function processes a single X event; it can be used to hook
* into external X event retrieval (for example that done by GDK).
*
- * Return: #ClutterX11FilterReturn indicating what the caller should
- * do with the original event.
+ * Return value: #ClutterX11FilterReturn indicating what the caller
+ * should do with the original event.
*
* Since: 0.8
*/
clutter_stage_fullscreen (CLUTTER_STAGE (stage));
clutter_actor_show (stage);
+ g_debug ("stage size: %dx%d, mapped: %s",
+ clutter_actor_get_width (stage),
+ clutter_actor_get_height (stage),
+ CLUTTER_ACTOR_IS_MAPPED (stage) ? "true" : "false");
+
g_timeout_add (1000, toggle_fullscreen, NULL);
clutter_main ();