2006-06-13 13:17:45 +00:00
|
|
|
/*
|
|
|
|
* Clutter.
|
|
|
|
*
|
|
|
|
* An OpenGL based 'interactive canvas' library.
|
|
|
|
*
|
|
|
|
* Authored By Matthew Allum <mallum@openedhand.com>
|
|
|
|
*
|
2010-03-01 12:56:10 +00:00
|
|
|
* Copyright (C) 2006, 2007, 2008 OpenedHand Ltd
|
|
|
|
* Copyright (C) 2009, 2010 Intel Corp
|
2006-06-13 13:17:45 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2008-10-30 17:04:34 +00:00
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2006-06-13 13:17:45 +00:00
|
|
|
*/
|
|
|
|
|
2008-10-30 17:04:34 +00:00
|
|
|
#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
|
|
|
|
#error "Only <clutter/clutter.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __CLUTTER_ACTOR_H__
|
|
|
|
#define __CLUTTER_ACTOR_H__
|
2006-06-13 13:17:45 +00:00
|
|
|
|
|
|
|
/* clutter-actor.h */
|
|
|
|
|
2008-12-23 14:06:55 +00:00
|
|
|
#include <pango/pango.h>
|
2010-04-12 18:10:24 +00:00
|
|
|
#include <atk/atk.h>
|
2008-12-23 14:06:55 +00:00
|
|
|
|
2010-11-18 18:23:49 +00:00
|
|
|
#include <cogl/cogl.h>
|
2010-04-08 09:55:15 +00:00
|
|
|
|
2010-11-18 18:23:49 +00:00
|
|
|
#include <clutter/clutter-types.h>
|
2007-08-13 20:48:01 +00:00
|
|
|
#include <clutter/clutter-event.h>
|
2006-08-29 19:09:43 +00:00
|
|
|
|
2006-06-13 13:17:45 +00:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2009-06-16 11:47:19 +00:00
|
|
|
#define CLUTTER_TYPE_ACTOR (clutter_actor_get_type ())
|
|
|
|
#define CLUTTER_ACTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_ACTOR, ClutterActor))
|
|
|
|
#define CLUTTER_ACTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_ACTOR, ClutterActorClass))
|
|
|
|
#define CLUTTER_IS_ACTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_ACTOR))
|
|
|
|
#define CLUTTER_IS_ACTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_ACTOR))
|
|
|
|
#define CLUTTER_ACTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_ACTOR, ClutterActorClass))
|
2006-06-13 13:17:45 +00:00
|
|
|
|
2008-02-15 14:39:25 +00:00
|
|
|
/**
|
|
|
|
* CLUTTER_ACTOR_SET_FLAGS:
|
|
|
|
* @a: a #ClutterActor
|
|
|
|
* @f: the #ClutterActorFlags to set
|
|
|
|
*
|
|
|
|
* Sets the given flags on a #ClutterActor
|
|
|
|
*/
|
|
|
|
#define CLUTTER_ACTOR_SET_FLAGS(a,f) (((ClutterActor*)(a))->flags |= (f))
|
|
|
|
|
|
|
|
/**
|
|
|
|
* CLUTTER_ACTOR_UNSET_FLAGS:
|
|
|
|
* @a: a #ClutterActor
|
|
|
|
* @f: the #ClutterActorFlags to unset
|
|
|
|
*
|
|
|
|
* Unsets the given flags on a #ClutterActor
|
|
|
|
*/
|
|
|
|
#define CLUTTER_ACTOR_UNSET_FLAGS(a,f) (((ClutterActor*)(a))->flags &= ~(f))
|
2006-06-13 13:17:45 +00:00
|
|
|
|
2009-05-05 14:37:41 +00:00
|
|
|
#define CLUTTER_ACTOR_IS_MAPPED(a) ((((ClutterActor*)(a))->flags & CLUTTER_ACTOR_MAPPED) != FALSE)
|
|
|
|
#define CLUTTER_ACTOR_IS_REALIZED(a) ((((ClutterActor*)(a))->flags & CLUTTER_ACTOR_REALIZED) != FALSE)
|
|
|
|
#define CLUTTER_ACTOR_IS_VISIBLE(a) ((((ClutterActor*)(a))->flags & CLUTTER_ACTOR_VISIBLE) != FALSE)
|
|
|
|
#define CLUTTER_ACTOR_IS_REACTIVE(a) ((((ClutterActor*)(a))->flags & CLUTTER_ACTOR_REACTIVE) != FALSE)
|
2006-06-13 13:17:45 +00:00
|
|
|
|
|
|
|
typedef struct _ClutterActorClass ClutterActorClass;
|
|
|
|
typedef struct _ClutterActorPrivate ClutterActorPrivate;
|
|
|
|
|
2007-08-07 14:03:08 +00:00
|
|
|
/**
|
|
|
|
* ClutterCallback:
|
|
|
|
* @actor: a #ClutterActor
|
2011-07-27 07:14:10 +00:00
|
|
|
* @data: (closure): user data
|
2007-08-07 14:03:08 +00:00
|
|
|
*
|
|
|
|
* Generic callback
|
|
|
|
*/
|
2009-05-05 14:37:41 +00:00
|
|
|
typedef void (*ClutterCallback) (ClutterActor *actor,
|
|
|
|
gpointer data);
|
2008-02-15 14:39:25 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* CLUTTER_CALLBACK
|
|
|
|
* @f: a function
|
|
|
|
*
|
|
|
|
* Convenience macro to cast a function to #ClutterCallback
|
|
|
|
*/
|
2008-02-04 11:45:12 +00:00
|
|
|
#define CLUTTER_CALLBACK(f) ((ClutterCallback) (f))
|
2006-06-13 13:17:45 +00:00
|
|
|
|
2007-07-01 16:44:24 +00:00
|
|
|
/**
|
|
|
|
* ClutterActor:
|
|
|
|
* @flags: #ClutterActorFlags
|
|
|
|
*
|
|
|
|
* Base class for actors.
|
|
|
|
*/
|
2006-06-13 13:17:45 +00:00
|
|
|
struct _ClutterActor
|
|
|
|
{
|
2007-07-01 16:44:24 +00:00
|
|
|
/*< private >*/
|
2007-07-28 17:11:39 +00:00
|
|
|
GInitiallyUnowned parent_instance;
|
2007-11-28 12:23:31 +00:00
|
|
|
|
2007-07-01 16:44:24 +00:00
|
|
|
/*< public >*/
|
2006-07-06 Emmanuele Bassi <ebassi@openedhand.com>
Big rework of the actor management semantics: now ClutterActor
objects behave like GtkObjects - that is they have an initial
"floating" reference that gets "sunk" when they are added to
a ClutterGroup. This makes a group responsible of de-allocating
each actor inside it, so you just have to destroy the group to
get every child actor destroyed. Also, now you can do:
clutter_group_add (group, clutter_video_texture_new ());
without having to care about reference counting and explicit
unreffing.
* clutter/clutter-private.h: Add private flags setter and
getter macros.
* clutter/clutter-actor.h:
* clutter/clutter-actor.c: Clean up; inherit from GInitiallyUnowned;
add a "visible" property; add the "destroy", "show" and "hide"
signals to ClutterActorClass.
(clutter_actor_show), (clutter_actor_hide): Refactor a bit; emit
the "show" and "hide" signals.
(clutter_actor_set_property), (clutter_actor_get_property),
(clutter_actor_class_init): Implement the "visible" property; add
signals.
(clutter_actor_finalize): Do not leak the actor's name, if it is
set.
(clutter_actor_dispose): Emit the "destroy" signal here.
(clutter_actor_init): Sink the initial floating flag if needed.
(clutter_actor_destroy): Add a function to explicitely destroy
a ClutterActor.
(clutter_actor_set_parent), (clutter_actor_get_parent),
(clutter_actor_unparent): Make set_parent require a valid parent;
add unparent; check on get_parent; ref_sink the actor when
setting its parent and unref it when unsetting it. Probably we'll
need a function that does reparenting as unparent+set_parent in
a single shot.
* clutter/clutter-group.h:
* clutter/clutter-group.c (clutter_group_dispose),
(clutter_group_finalize), (clutter_group_add),
(clutter_group_remove): Make the group destroy its children when
disposing it; clean up, and use the newly-available
clutter_actor_unparent().
* clutter/clutter-stage.h:
* clutter/clutter-stage.c (clutter_stage_init): ClutterStage is
a top-level actor; clean up.
* clutter/clutter-video-texture.h:
* clutter/clutter-video-texture.c: Clean up.
* examples/super-oh.c:
* examples/test.c:
* examples/video-player.c:
* examples/test-text.c:
* examples/video-cube.c: Remove the g_object_unref() call, as the
ClutterStage object is destroyed on clutter_main_quit().
2006-07-06 17:52:57 +00:00
|
|
|
guint32 flags;
|
2006-06-13 13:17:45 +00:00
|
|
|
|
|
|
|
/*< private >*/
|
2006-07-06 Emmanuele Bassi <ebassi@openedhand.com>
Big rework of the actor management semantics: now ClutterActor
objects behave like GtkObjects - that is they have an initial
"floating" reference that gets "sunk" when they are added to
a ClutterGroup. This makes a group responsible of de-allocating
each actor inside it, so you just have to destroy the group to
get every child actor destroyed. Also, now you can do:
clutter_group_add (group, clutter_video_texture_new ());
without having to care about reference counting and explicit
unreffing.
* clutter/clutter-private.h: Add private flags setter and
getter macros.
* clutter/clutter-actor.h:
* clutter/clutter-actor.c: Clean up; inherit from GInitiallyUnowned;
add a "visible" property; add the "destroy", "show" and "hide"
signals to ClutterActorClass.
(clutter_actor_show), (clutter_actor_hide): Refactor a bit; emit
the "show" and "hide" signals.
(clutter_actor_set_property), (clutter_actor_get_property),
(clutter_actor_class_init): Implement the "visible" property; add
signals.
(clutter_actor_finalize): Do not leak the actor's name, if it is
set.
(clutter_actor_dispose): Emit the "destroy" signal here.
(clutter_actor_init): Sink the initial floating flag if needed.
(clutter_actor_destroy): Add a function to explicitely destroy
a ClutterActor.
(clutter_actor_set_parent), (clutter_actor_get_parent),
(clutter_actor_unparent): Make set_parent require a valid parent;
add unparent; check on get_parent; ref_sink the actor when
setting its parent and unref it when unsetting it. Probably we'll
need a function that does reparenting as unparent+set_parent in
a single shot.
* clutter/clutter-group.h:
* clutter/clutter-group.c (clutter_group_dispose),
(clutter_group_finalize), (clutter_group_add),
(clutter_group_remove): Make the group destroy its children when
disposing it; clean up, and use the newly-available
clutter_actor_unparent().
* clutter/clutter-stage.h:
* clutter/clutter-stage.c (clutter_stage_init): ClutterStage is
a top-level actor; clean up.
* clutter/clutter-video-texture.h:
* clutter/clutter-video-texture.c: Clean up.
* examples/super-oh.c:
* examples/test.c:
* examples/video-player.c:
* examples/test-text.c:
* examples/video-cube.c: Remove the g_object_unref() call, as the
ClutterStage object is destroyed on clutter_main_quit().
2006-07-06 17:52:57 +00:00
|
|
|
guint32 private_flags;
|
2007-11-28 12:23:31 +00:00
|
|
|
|
2006-07-06 Emmanuele Bassi <ebassi@openedhand.com>
Big rework of the actor management semantics: now ClutterActor
objects behave like GtkObjects - that is they have an initial
"floating" reference that gets "sunk" when they are added to
a ClutterGroup. This makes a group responsible of de-allocating
each actor inside it, so you just have to destroy the group to
get every child actor destroyed. Also, now you can do:
clutter_group_add (group, clutter_video_texture_new ());
without having to care about reference counting and explicit
unreffing.
* clutter/clutter-private.h: Add private flags setter and
getter macros.
* clutter/clutter-actor.h:
* clutter/clutter-actor.c: Clean up; inherit from GInitiallyUnowned;
add a "visible" property; add the "destroy", "show" and "hide"
signals to ClutterActorClass.
(clutter_actor_show), (clutter_actor_hide): Refactor a bit; emit
the "show" and "hide" signals.
(clutter_actor_set_property), (clutter_actor_get_property),
(clutter_actor_class_init): Implement the "visible" property; add
signals.
(clutter_actor_finalize): Do not leak the actor's name, if it is
set.
(clutter_actor_dispose): Emit the "destroy" signal here.
(clutter_actor_init): Sink the initial floating flag if needed.
(clutter_actor_destroy): Add a function to explicitely destroy
a ClutterActor.
(clutter_actor_set_parent), (clutter_actor_get_parent),
(clutter_actor_unparent): Make set_parent require a valid parent;
add unparent; check on get_parent; ref_sink the actor when
setting its parent and unref it when unsetting it. Probably we'll
need a function that does reparenting as unparent+set_parent in
a single shot.
* clutter/clutter-group.h:
* clutter/clutter-group.c (clutter_group_dispose),
(clutter_group_finalize), (clutter_group_add),
(clutter_group_remove): Make the group destroy its children when
disposing it; clean up, and use the newly-available
clutter_actor_unparent().
* clutter/clutter-stage.h:
* clutter/clutter-stage.c (clutter_stage_init): ClutterStage is
a top-level actor; clean up.
* clutter/clutter-video-texture.h:
* clutter/clutter-video-texture.c: Clean up.
* examples/super-oh.c:
* examples/test.c:
* examples/video-player.c:
* examples/test-text.c:
* examples/video-cube.c: Remove the g_object_unref() call, as the
ClutterStage object is destroyed on clutter_main_quit().
2006-07-06 17:52:57 +00:00
|
|
|
ClutterActorPrivate *priv;
|
2006-06-13 13:17:45 +00:00
|
|
|
};
|
|
|
|
|
2007-08-07 14:03:08 +00:00
|
|
|
/**
|
|
|
|
* ClutterActorClass:
|
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,
request and paint area. Now ::request_coords() is called
::allocate(), and ::query_coords() has been split into
::get_preferred_width() and ::get_preferred_height(). See
the documentation and the layout test on how to implement
a container and layout manager with the new API. (#915,
based on a patch by Havoc Pennington, Lucas Rocha and Johan
Bilien)
* clutter/clutter-clone-texture.c: Port CloneTexture to
the new size negotiation API; it just means forwarding
the requests to the parent texture.
* clutter/clutter-deprecated.h: Add deprecated and replaced
API.
* clutter/clutter-entry.c: Port Entry to the new size
negotiation API.
* clutter/clutter-group.c: Port Group to the new size
negotiation API; the semantics of the Group actor do not
change.
* clutter/clutter-label.c: Port Label to the new size
negotiation API, and vastly simplify the code.
* clutter/clutter-main.[ch]: Add API for executing a
relayout when needed.
* clutter/clutter-private.h: Add new Stage private API.
* clutter/clutter-rectangle.c: Update the get_abs_opacity()
call to get_paint_opacity().
* clutter/clutter-stage.c:
(clutter_stage_get_preferred_width),
(clutter_stage_get_preferred_height),
(clutter_stage_allocate),
(clutter_stage_class_init): Port Stage to the new size
negotiation API.
* clutter/clutter-texture.c: Port Texture to the new size
negotiation API.
* clutter/clutter-types.h: Add ClutterRequestMode enumeration.
* clutter/x11/clutter-stage-x11.c: Port the X11 stage
implementation to the new size negotiation API.
* tests/Makefile.am: Add the layout manager test case.
* tests/test-opacity.c: Update.
* tests/test-project.c: Update.
* tests/test-layout.c: Test case for a layout manager implemented
using the new size negotiation API; the layout manager handles
both transformed and untransformed children.
2008-06-10 17:07:52 +00:00
|
|
|
* @show: signal class handler for #ClutterActor::show; it must chain
|
2008-01-18 11:25:47 +00:00
|
|
|
* up to the parent's implementation
|
2007-08-07 14:03:08 +00:00
|
|
|
* @show_all: virtual function for containers and composite actors, to
|
|
|
|
* determine which children should be shown when calling
|
|
|
|
* clutter_actor_show_all() on the actor. Defaults to calling
|
2012-01-17 16:11:29 +00:00
|
|
|
* clutter_actor_show(). This virtual function is deprecated and it
|
|
|
|
* should not be overridden.
|
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,
request and paint area. Now ::request_coords() is called
::allocate(), and ::query_coords() has been split into
::get_preferred_width() and ::get_preferred_height(). See
the documentation and the layout test on how to implement
a container and layout manager with the new API. (#915,
based on a patch by Havoc Pennington, Lucas Rocha and Johan
Bilien)
* clutter/clutter-clone-texture.c: Port CloneTexture to
the new size negotiation API; it just means forwarding
the requests to the parent texture.
* clutter/clutter-deprecated.h: Add deprecated and replaced
API.
* clutter/clutter-entry.c: Port Entry to the new size
negotiation API.
* clutter/clutter-group.c: Port Group to the new size
negotiation API; the semantics of the Group actor do not
change.
* clutter/clutter-label.c: Port Label to the new size
negotiation API, and vastly simplify the code.
* clutter/clutter-main.[ch]: Add API for executing a
relayout when needed.
* clutter/clutter-private.h: Add new Stage private API.
* clutter/clutter-rectangle.c: Update the get_abs_opacity()
call to get_paint_opacity().
* clutter/clutter-stage.c:
(clutter_stage_get_preferred_width),
(clutter_stage_get_preferred_height),
(clutter_stage_allocate),
(clutter_stage_class_init): Port Stage to the new size
negotiation API.
* clutter/clutter-texture.c: Port Texture to the new size
negotiation API.
* clutter/clutter-types.h: Add ClutterRequestMode enumeration.
* clutter/x11/clutter-stage-x11.c: Port the X11 stage
implementation to the new size negotiation API.
* tests/Makefile.am: Add the layout manager test case.
* tests/test-opacity.c: Update.
* tests/test-project.c: Update.
* tests/test-layout.c: Test case for a layout manager implemented
using the new size negotiation API; the layout manager handles
both transformed and untransformed children.
2008-06-10 17:07:52 +00:00
|
|
|
* @hide: signal class handler for #ClutterActor::hide; it must chain
|
2008-01-18 11:25:47 +00:00
|
|
|
* up to the parent's implementation
|
2007-08-07 14:03:08 +00:00
|
|
|
* @hide_all: virtual function for containers and composite actors, to
|
|
|
|
* determine which children should be shown when calling
|
|
|
|
* clutter_actor_hide_all() on the actor. Defaults to calling
|
2012-01-17 16:11:29 +00:00
|
|
|
* clutter_actor_hide(). This virtual function is deprecated and it
|
|
|
|
* should not be overridden.
|
2007-08-07 14:03:08 +00:00
|
|
|
* @realize: virtual function, used to allocate resources for the actor;
|
|
|
|
* it should chain up to the parent's implementation
|
|
|
|
* @unrealize: virtual function, used to deallocate resources allocated
|
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,
request and paint area. Now ::request_coords() is called
::allocate(), and ::query_coords() has been split into
::get_preferred_width() and ::get_preferred_height(). See
the documentation and the layout test on how to implement
a container and layout manager with the new API. (#915,
based on a patch by Havoc Pennington, Lucas Rocha and Johan
Bilien)
* clutter/clutter-clone-texture.c: Port CloneTexture to
the new size negotiation API; it just means forwarding
the requests to the parent texture.
* clutter/clutter-deprecated.h: Add deprecated and replaced
API.
* clutter/clutter-entry.c: Port Entry to the new size
negotiation API.
* clutter/clutter-group.c: Port Group to the new size
negotiation API; the semantics of the Group actor do not
change.
* clutter/clutter-label.c: Port Label to the new size
negotiation API, and vastly simplify the code.
* clutter/clutter-main.[ch]: Add API for executing a
relayout when needed.
* clutter/clutter-private.h: Add new Stage private API.
* clutter/clutter-rectangle.c: Update the get_abs_opacity()
call to get_paint_opacity().
* clutter/clutter-stage.c:
(clutter_stage_get_preferred_width),
(clutter_stage_get_preferred_height),
(clutter_stage_allocate),
(clutter_stage_class_init): Port Stage to the new size
negotiation API.
* clutter/clutter-texture.c: Port Texture to the new size
negotiation API.
* clutter/clutter-types.h: Add ClutterRequestMode enumeration.
* clutter/x11/clutter-stage-x11.c: Port the X11 stage
implementation to the new size negotiation API.
* tests/Makefile.am: Add the layout manager test case.
* tests/test-opacity.c: Update.
* tests/test-project.c: Update.
* tests/test-layout.c: Test case for a layout manager implemented
using the new size negotiation API; the layout manager handles
both transformed and untransformed children.
2008-06-10 17:07:52 +00:00
|
|
|
* in ::realize; it should chain up to the parent's implementation
|
2009-05-28 16:18:13 +00:00
|
|
|
* @map: virtual function for containers and composite actors, to
|
2010-11-24 16:34:21 +00:00
|
|
|
* map their children; it must chain up to the parent's implementation.
|
|
|
|
* Overriding this function is optional.
|
2009-05-28 16:18:13 +00:00
|
|
|
* @unmap: virtual function for containers and composite actors, to
|
2010-11-24 16:34:21 +00:00
|
|
|
* unmap their children; it must chain up to the parent's implementation.
|
|
|
|
* Overriding this function is optional.
|
2007-08-07 14:03:08 +00:00
|
|
|
* @paint: virtual function, used to paint the actor
|
2008-06-12 11:43:25 +00:00
|
|
|
* @get_preferred_width: virtual function, used when querying the minimum
|
|
|
|
* and natural widths of an actor for a given height; it is used by
|
|
|
|
* clutter_actor_get_preferred_width()
|
|
|
|
* @get_preferred_height: virtual function, used when querying the minimum
|
|
|
|
* and natural heights of an actor for a given width; it is used by
|
|
|
|
* clutter_actor_get_preferred_height()
|
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,
request and paint area. Now ::request_coords() is called
::allocate(), and ::query_coords() has been split into
::get_preferred_width() and ::get_preferred_height(). See
the documentation and the layout test on how to implement
a container and layout manager with the new API. (#915,
based on a patch by Havoc Pennington, Lucas Rocha and Johan
Bilien)
* clutter/clutter-clone-texture.c: Port CloneTexture to
the new size negotiation API; it just means forwarding
the requests to the parent texture.
* clutter/clutter-deprecated.h: Add deprecated and replaced
API.
* clutter/clutter-entry.c: Port Entry to the new size
negotiation API.
* clutter/clutter-group.c: Port Group to the new size
negotiation API; the semantics of the Group actor do not
change.
* clutter/clutter-label.c: Port Label to the new size
negotiation API, and vastly simplify the code.
* clutter/clutter-main.[ch]: Add API for executing a
relayout when needed.
* clutter/clutter-private.h: Add new Stage private API.
* clutter/clutter-rectangle.c: Update the get_abs_opacity()
call to get_paint_opacity().
* clutter/clutter-stage.c:
(clutter_stage_get_preferred_width),
(clutter_stage_get_preferred_height),
(clutter_stage_allocate),
(clutter_stage_class_init): Port Stage to the new size
negotiation API.
* clutter/clutter-texture.c: Port Texture to the new size
negotiation API.
* clutter/clutter-types.h: Add ClutterRequestMode enumeration.
* clutter/x11/clutter-stage-x11.c: Port the X11 stage
implementation to the new size negotiation API.
* tests/Makefile.am: Add the layout manager test case.
* tests/test-opacity.c: Update.
* tests/test-project.c: Update.
* tests/test-layout.c: Test case for a layout manager implemented
using the new size negotiation API; the layout manager handles
both transformed and untransformed children.
2008-06-10 17:07:52 +00:00
|
|
|
* @allocate: virtual function, used when settings the coordinates of an
|
[actor] Allow changing the transformations matrix
Currently, the transformation matrix for an actor is constructed
from scenegraph-related accessors. An actor, though, can call COGL
API to add new transformations inside the paint() implementation,
for instance:
static void
my_foo_paint (ClutterActor *a)
{
...
cogl_translate (-scroll_x, -scroll_y, 0);
...
}
Unfortunately these transformations will be completely ignored by
the scenegraph machinery; for instance, getting the actor-relative
coordinates from event coordinates is going to break badly because
of this.
In order to make the scenegraph aware of the potential of additional
transformations, we need a ::apply_transform() virtual function. This
vfunc will pass a CoglMatrix which can be used to apply additional
operations:
static void
my_foo_apply_transform (ClutterActor *a, CoglMatrix *m)
{
CLUTTER_ACTOR_CLASS (my_foo_parent_class)->apply_transform (a, m);
...
cogl_matrix_translate (m, -scroll_x, -scroll_y, 0);
...
}
The ::paint() implementation will be called with the actor already
using the newly applied transformation matrix, as expected:
static void
my_foo_paint (ClutterActor *a)
{
...
}
The ::apply_transform() implementations *must* chain up, so that the
various transformations of each class are preserved. The default
implementation inside ClutterActor applies all the transformations
defined by the scenegraph-related accessors.
Actors performing transformations inside the paint() function will
continue to work as previously.
2009-07-01 12:59:13 +00:00
|
|
|
* actor; it is used by clutter_actor_allocate(); it must chain up to
|
|
|
|
* the parent's implementation
|
|
|
|
* @apply_transform: virtual function, used when applying the transformations
|
|
|
|
* to an actor before painting it or when transforming coordinates or
|
|
|
|
* the allocation; it must chain up to the parent's implementation
|
2008-06-12 11:43:25 +00:00
|
|
|
* @parent_set: signal class handler for the #ClutterActor::parent-set
|
|
|
|
* @destroy: signal class handler for #ClutterActor::destroy
|
2008-02-15 14:39:25 +00:00
|
|
|
* @pick: virtual function, used to draw an outline of the actor with
|
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,
request and paint area. Now ::request_coords() is called
::allocate(), and ::query_coords() has been split into
::get_preferred_width() and ::get_preferred_height(). See
the documentation and the layout test on how to implement
a container and layout manager with the new API. (#915,
based on a patch by Havoc Pennington, Lucas Rocha and Johan
Bilien)
* clutter/clutter-clone-texture.c: Port CloneTexture to
the new size negotiation API; it just means forwarding
the requests to the parent texture.
* clutter/clutter-deprecated.h: Add deprecated and replaced
API.
* clutter/clutter-entry.c: Port Entry to the new size
negotiation API.
* clutter/clutter-group.c: Port Group to the new size
negotiation API; the semantics of the Group actor do not
change.
* clutter/clutter-label.c: Port Label to the new size
negotiation API, and vastly simplify the code.
* clutter/clutter-main.[ch]: Add API for executing a
relayout when needed.
* clutter/clutter-private.h: Add new Stage private API.
* clutter/clutter-rectangle.c: Update the get_abs_opacity()
call to get_paint_opacity().
* clutter/clutter-stage.c:
(clutter_stage_get_preferred_width),
(clutter_stage_get_preferred_height),
(clutter_stage_allocate),
(clutter_stage_class_init): Port Stage to the new size
negotiation API.
* clutter/clutter-texture.c: Port Texture to the new size
negotiation API.
* clutter/clutter-types.h: Add ClutterRequestMode enumeration.
* clutter/x11/clutter-stage-x11.c: Port the X11 stage
implementation to the new size negotiation API.
* tests/Makefile.am: Add the layout manager test case.
* tests/test-opacity.c: Update.
* tests/test-project.c: Update.
* tests/test-layout.c: Test case for a layout manager implemented
using the new size negotiation API; the layout manager handles
both transformed and untransformed children.
2008-06-10 17:07:52 +00:00
|
|
|
* the given color
|
2009-03-16 14:01:43 +00:00
|
|
|
* @queue_redraw: class handler for #ClutterActor::queue-redraw
|
2008-06-12 11:43:25 +00:00
|
|
|
* @event: class handler for #ClutterActor::event
|
|
|
|
* @button_press_event: class handler for #ClutterActor::button-press-event
|
|
|
|
* @button_release_event: class handler for
|
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,
request and paint area. Now ::request_coords() is called
::allocate(), and ::query_coords() has been split into
::get_preferred_width() and ::get_preferred_height(). See
the documentation and the layout test on how to implement
a container and layout manager with the new API. (#915,
based on a patch by Havoc Pennington, Lucas Rocha and Johan
Bilien)
* clutter/clutter-clone-texture.c: Port CloneTexture to
the new size negotiation API; it just means forwarding
the requests to the parent texture.
* clutter/clutter-deprecated.h: Add deprecated and replaced
API.
* clutter/clutter-entry.c: Port Entry to the new size
negotiation API.
* clutter/clutter-group.c: Port Group to the new size
negotiation API; the semantics of the Group actor do not
change.
* clutter/clutter-label.c: Port Label to the new size
negotiation API, and vastly simplify the code.
* clutter/clutter-main.[ch]: Add API for executing a
relayout when needed.
* clutter/clutter-private.h: Add new Stage private API.
* clutter/clutter-rectangle.c: Update the get_abs_opacity()
call to get_paint_opacity().
* clutter/clutter-stage.c:
(clutter_stage_get_preferred_width),
(clutter_stage_get_preferred_height),
(clutter_stage_allocate),
(clutter_stage_class_init): Port Stage to the new size
negotiation API.
* clutter/clutter-texture.c: Port Texture to the new size
negotiation API.
* clutter/clutter-types.h: Add ClutterRequestMode enumeration.
* clutter/x11/clutter-stage-x11.c: Port the X11 stage
implementation to the new size negotiation API.
* tests/Makefile.am: Add the layout manager test case.
* tests/test-opacity.c: Update.
* tests/test-project.c: Update.
* tests/test-layout.c: Test case for a layout manager implemented
using the new size negotiation API; the layout manager handles
both transformed and untransformed children.
2008-06-10 17:07:52 +00:00
|
|
|
* #ClutterActor::button-release-event
|
|
|
|
* @scroll_event: signal class closure for #ClutterActor::scroll-event
|
|
|
|
* @key_press_event: signal class closure for #ClutterActor::key-press-event
|
2008-01-18 11:25:47 +00:00
|
|
|
* @key_release_event: signal class closure for
|
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,
request and paint area. Now ::request_coords() is called
::allocate(), and ::query_coords() has been split into
::get_preferred_width() and ::get_preferred_height(). See
the documentation and the layout test on how to implement
a container and layout manager with the new API. (#915,
based on a patch by Havoc Pennington, Lucas Rocha and Johan
Bilien)
* clutter/clutter-clone-texture.c: Port CloneTexture to
the new size negotiation API; it just means forwarding
the requests to the parent texture.
* clutter/clutter-deprecated.h: Add deprecated and replaced
API.
* clutter/clutter-entry.c: Port Entry to the new size
negotiation API.
* clutter/clutter-group.c: Port Group to the new size
negotiation API; the semantics of the Group actor do not
change.
* clutter/clutter-label.c: Port Label to the new size
negotiation API, and vastly simplify the code.
* clutter/clutter-main.[ch]: Add API for executing a
relayout when needed.
* clutter/clutter-private.h: Add new Stage private API.
* clutter/clutter-rectangle.c: Update the get_abs_opacity()
call to get_paint_opacity().
* clutter/clutter-stage.c:
(clutter_stage_get_preferred_width),
(clutter_stage_get_preferred_height),
(clutter_stage_allocate),
(clutter_stage_class_init): Port Stage to the new size
negotiation API.
* clutter/clutter-texture.c: Port Texture to the new size
negotiation API.
* clutter/clutter-types.h: Add ClutterRequestMode enumeration.
* clutter/x11/clutter-stage-x11.c: Port the X11 stage
implementation to the new size negotiation API.
* tests/Makefile.am: Add the layout manager test case.
* tests/test-opacity.c: Update.
* tests/test-project.c: Update.
* tests/test-layout.c: Test case for a layout manager implemented
using the new size negotiation API; the layout manager handles
both transformed and untransformed children.
2008-06-10 17:07:52 +00:00
|
|
|
* #ClutterActor::key-release-event
|
|
|
|
* @motion_event: signal class closure for #ClutterActor::motion-event
|
|
|
|
* @enter_event: signal class closure for #ClutterActor::enter-event
|
|
|
|
* @leave_event: signal class closure for #ClutterActor::leave-event
|
|
|
|
* @captured_event: signal class closure for #ClutterActor::captured-event
|
2010-08-17 13:54:20 +00:00
|
|
|
* @key_focus_in: signal class closure for #ClutterActor::key-focus-in
|
|
|
|
* @key_focus_out: signal class closure for #ClutterActor::key-focus-out
|
2009-08-08 01:16:04 +00:00
|
|
|
* @queue_relayout: class handler for #ClutterActor::queue-relayout
|
2010-10-04 10:26:46 +00:00
|
|
|
* @get_accessible: virtual function, returns the accessible object that
|
|
|
|
* describes the actor to an assistive technology.
|
|
|
|
* @get_paint_volume: virtual function, for sub-classes to define their
|
|
|
|
* #ClutterPaintVolume
|
2011-03-14 16:30:53 +00:00
|
|
|
* @has_overlaps: virtual function for
|
|
|
|
* sub-classes to advertise whether they need an offscreen redirect
|
|
|
|
* to get the correct opacity. See
|
|
|
|
* clutter_actor_set_offscreen_redirect() for details.
|
2007-08-07 14:03:08 +00:00
|
|
|
*
|
|
|
|
* Base class for actors.
|
|
|
|
*/
|
2006-06-13 13:17:45 +00:00
|
|
|
struct _ClutterActorClass
|
|
|
|
{
|
2007-08-07 14:03:08 +00:00
|
|
|
/*< private >*/
|
2007-07-28 17:11:39 +00:00
|
|
|
GInitiallyUnownedClass parent_class;
|
2006-06-13 13:17:45 +00:00
|
|
|
|
2007-08-07 14:03:08 +00:00
|
|
|
/*< public >*/
|
2010-12-09 12:36:50 +00:00
|
|
|
void (* show) (ClutterActor *self);
|
|
|
|
void (* show_all) (ClutterActor *self);
|
|
|
|
void (* hide) (ClutterActor *self);
|
|
|
|
void (* hide_all) (ClutterActor *self);
|
|
|
|
void (* realize) (ClutterActor *self);
|
|
|
|
void (* unrealize) (ClutterActor *self);
|
|
|
|
void (* map) (ClutterActor *self);
|
|
|
|
void (* unmap) (ClutterActor *self);
|
|
|
|
void (* paint) (ClutterActor *self);
|
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,
request and paint area. Now ::request_coords() is called
::allocate(), and ::query_coords() has been split into
::get_preferred_width() and ::get_preferred_height(). See
the documentation and the layout test on how to implement
a container and layout manager with the new API. (#915,
based on a patch by Havoc Pennington, Lucas Rocha and Johan
Bilien)
* clutter/clutter-clone-texture.c: Port CloneTexture to
the new size negotiation API; it just means forwarding
the requests to the parent texture.
* clutter/clutter-deprecated.h: Add deprecated and replaced
API.
* clutter/clutter-entry.c: Port Entry to the new size
negotiation API.
* clutter/clutter-group.c: Port Group to the new size
negotiation API; the semantics of the Group actor do not
change.
* clutter/clutter-label.c: Port Label to the new size
negotiation API, and vastly simplify the code.
* clutter/clutter-main.[ch]: Add API for executing a
relayout when needed.
* clutter/clutter-private.h: Add new Stage private API.
* clutter/clutter-rectangle.c: Update the get_abs_opacity()
call to get_paint_opacity().
* clutter/clutter-stage.c:
(clutter_stage_get_preferred_width),
(clutter_stage_get_preferred_height),
(clutter_stage_allocate),
(clutter_stage_class_init): Port Stage to the new size
negotiation API.
* clutter/clutter-texture.c: Port Texture to the new size
negotiation API.
* clutter/clutter-types.h: Add ClutterRequestMode enumeration.
* clutter/x11/clutter-stage-x11.c: Port the X11 stage
implementation to the new size negotiation API.
* tests/Makefile.am: Add the layout manager test case.
* tests/test-opacity.c: Update.
* tests/test-project.c: Update.
* tests/test-layout.c: Test case for a layout manager implemented
using the new size negotiation API; the layout manager handles
both transformed and untransformed children.
2008-06-10 17:07:52 +00:00
|
|
|
void (* parent_set) (ClutterActor *actor,
|
|
|
|
ClutterActor *old_parent);
|
|
|
|
|
2011-02-08 15:30:48 +00:00
|
|
|
void (* destroy) (ClutterActor *self);
|
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,
request and paint area. Now ::request_coords() is called
::allocate(), and ::query_coords() has been split into
::get_preferred_width() and ::get_preferred_height(). See
the documentation and the layout test on how to implement
a container and layout manager with the new API. (#915,
based on a patch by Havoc Pennington, Lucas Rocha and Johan
Bilien)
* clutter/clutter-clone-texture.c: Port CloneTexture to
the new size negotiation API; it just means forwarding
the requests to the parent texture.
* clutter/clutter-deprecated.h: Add deprecated and replaced
API.
* clutter/clutter-entry.c: Port Entry to the new size
negotiation API.
* clutter/clutter-group.c: Port Group to the new size
negotiation API; the semantics of the Group actor do not
change.
* clutter/clutter-label.c: Port Label to the new size
negotiation API, and vastly simplify the code.
* clutter/clutter-main.[ch]: Add API for executing a
relayout when needed.
* clutter/clutter-private.h: Add new Stage private API.
* clutter/clutter-rectangle.c: Update the get_abs_opacity()
call to get_paint_opacity().
* clutter/clutter-stage.c:
(clutter_stage_get_preferred_width),
(clutter_stage_get_preferred_height),
(clutter_stage_allocate),
(clutter_stage_class_init): Port Stage to the new size
negotiation API.
* clutter/clutter-texture.c: Port Texture to the new size
negotiation API.
* clutter/clutter-types.h: Add ClutterRequestMode enumeration.
* clutter/x11/clutter-stage-x11.c: Port the X11 stage
implementation to the new size negotiation API.
* tests/Makefile.am: Add the layout manager test case.
* tests/test-opacity.c: Update.
* tests/test-project.c: Update.
* tests/test-layout.c: Test case for a layout manager implemented
using the new size negotiation API; the layout manager handles
both transformed and untransformed children.
2008-06-10 17:07:52 +00:00
|
|
|
void (* pick) (ClutterActor *actor,
|
|
|
|
const ClutterColor *color);
|
|
|
|
|
2009-02-17 17:22:02 +00:00
|
|
|
void (* queue_redraw) (ClutterActor *actor,
|
|
|
|
ClutterActor *leaf_that_queued);
|
|
|
|
|
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,
request and paint area. Now ::request_coords() is called
::allocate(), and ::query_coords() has been split into
::get_preferred_width() and ::get_preferred_height(). See
the documentation and the layout test on how to implement
a container and layout manager with the new API. (#915,
based on a patch by Havoc Pennington, Lucas Rocha and Johan
Bilien)
* clutter/clutter-clone-texture.c: Port CloneTexture to
the new size negotiation API; it just means forwarding
the requests to the parent texture.
* clutter/clutter-deprecated.h: Add deprecated and replaced
API.
* clutter/clutter-entry.c: Port Entry to the new size
negotiation API.
* clutter/clutter-group.c: Port Group to the new size
negotiation API; the semantics of the Group actor do not
change.
* clutter/clutter-label.c: Port Label to the new size
negotiation API, and vastly simplify the code.
* clutter/clutter-main.[ch]: Add API for executing a
relayout when needed.
* clutter/clutter-private.h: Add new Stage private API.
* clutter/clutter-rectangle.c: Update the get_abs_opacity()
call to get_paint_opacity().
* clutter/clutter-stage.c:
(clutter_stage_get_preferred_width),
(clutter_stage_get_preferred_height),
(clutter_stage_allocate),
(clutter_stage_class_init): Port Stage to the new size
negotiation API.
* clutter/clutter-texture.c: Port Texture to the new size
negotiation API.
* clutter/clutter-types.h: Add ClutterRequestMode enumeration.
* clutter/x11/clutter-stage-x11.c: Port the X11 stage
implementation to the new size negotiation API.
* tests/Makefile.am: Add the layout manager test case.
* tests/test-opacity.c: Update.
* tests/test-project.c: Update.
* tests/test-layout.c: Test case for a layout manager implemented
using the new size negotiation API; the layout manager handles
both transformed and untransformed children.
2008-06-10 17:07:52 +00:00
|
|
|
/* size negotiation */
|
2010-12-09 12:36:50 +00:00
|
|
|
void (* get_preferred_width) (ClutterActor *self,
|
2009-06-03 13:02:06 +00:00
|
|
|
gfloat for_height,
|
|
|
|
gfloat *min_width_p,
|
|
|
|
gfloat *natural_width_p);
|
2010-12-09 12:36:50 +00:00
|
|
|
void (* get_preferred_height) (ClutterActor *self,
|
2009-06-03 13:02:06 +00:00
|
|
|
gfloat for_width,
|
|
|
|
gfloat *min_height_p,
|
|
|
|
gfloat *natural_height_p);
|
2010-12-09 12:36:50 +00:00
|
|
|
void (* allocate) (ClutterActor *self,
|
2009-06-03 13:02:06 +00:00
|
|
|
const ClutterActorBox *box,
|
|
|
|
ClutterAllocationFlags flags);
|
[actor] Allow changing the transformations matrix
Currently, the transformation matrix for an actor is constructed
from scenegraph-related accessors. An actor, though, can call COGL
API to add new transformations inside the paint() implementation,
for instance:
static void
my_foo_paint (ClutterActor *a)
{
...
cogl_translate (-scroll_x, -scroll_y, 0);
...
}
Unfortunately these transformations will be completely ignored by
the scenegraph machinery; for instance, getting the actor-relative
coordinates from event coordinates is going to break badly because
of this.
In order to make the scenegraph aware of the potential of additional
transformations, we need a ::apply_transform() virtual function. This
vfunc will pass a CoglMatrix which can be used to apply additional
operations:
static void
my_foo_apply_transform (ClutterActor *a, CoglMatrix *m)
{
CLUTTER_ACTOR_CLASS (my_foo_parent_class)->apply_transform (a, m);
...
cogl_matrix_translate (m, -scroll_x, -scroll_y, 0);
...
}
The ::paint() implementation will be called with the actor already
using the newly applied transformation matrix, as expected:
static void
my_foo_paint (ClutterActor *a)
{
...
}
The ::apply_transform() implementations *must* chain up, so that the
various transformations of each class are preserved. The default
implementation inside ClutterActor applies all the transformations
defined by the scenegraph-related accessors.
Actors performing transformations inside the paint() function will
continue to work as previously.
2009-07-01 12:59:13 +00:00
|
|
|
|
|
|
|
/* transformations */
|
|
|
|
void (* apply_transform) (ClutterActor *actor,
|
|
|
|
CoglMatrix *matrix);
|
|
|
|
|
2007-08-13 20:48:01 +00:00
|
|
|
/* event signals */
|
2007-11-07 16:40:30 +00:00
|
|
|
gboolean (* event) (ClutterActor *actor,
|
2008-02-04 11:45:12 +00:00
|
|
|
ClutterEvent *event);
|
2007-11-07 16:40:30 +00:00
|
|
|
gboolean (* button_press_event) (ClutterActor *actor,
|
2008-02-04 11:45:12 +00:00
|
|
|
ClutterButtonEvent *event);
|
2007-11-07 16:40:30 +00:00
|
|
|
gboolean (* button_release_event) (ClutterActor *actor,
|
2008-02-04 11:45:12 +00:00
|
|
|
ClutterButtonEvent *event);
|
2007-11-07 16:40:30 +00:00
|
|
|
gboolean (* scroll_event) (ClutterActor *actor,
|
2008-02-04 11:45:12 +00:00
|
|
|
ClutterScrollEvent *event);
|
2007-11-07 16:40:30 +00:00
|
|
|
gboolean (* key_press_event) (ClutterActor *actor,
|
2008-02-04 11:45:12 +00:00
|
|
|
ClutterKeyEvent *event);
|
2007-11-07 16:40:30 +00:00
|
|
|
gboolean (* key_release_event) (ClutterActor *actor,
|
2008-02-04 11:45:12 +00:00
|
|
|
ClutterKeyEvent *event);
|
2007-11-07 16:40:30 +00:00
|
|
|
gboolean (* motion_event) (ClutterActor *actor,
|
2008-02-04 11:45:12 +00:00
|
|
|
ClutterMotionEvent *event);
|
2007-11-07 16:40:30 +00:00
|
|
|
gboolean (* enter_event) (ClutterActor *actor,
|
2008-02-04 11:45:12 +00:00
|
|
|
ClutterCrossingEvent *event);
|
2007-11-07 16:40:30 +00:00
|
|
|
gboolean (* leave_event) (ClutterActor *actor,
|
2008-02-04 11:45:12 +00:00
|
|
|
ClutterCrossingEvent *event);
|
2007-11-07 16:40:30 +00:00
|
|
|
gboolean (* captured_event) (ClutterActor *actor,
|
2008-02-04 11:45:12 +00:00
|
|
|
ClutterEvent *event);
|
2009-05-06 16:56:40 +00:00
|
|
|
void (* key_focus_in) (ClutterActor *actor);
|
|
|
|
void (* key_focus_out) (ClutterActor *actor);
|
2007-08-13 20:48:01 +00:00
|
|
|
|
2011-02-08 15:30:48 +00:00
|
|
|
void (* queue_relayout) (ClutterActor *self);
|
2009-08-08 01:16:04 +00:00
|
|
|
|
2010-05-25 11:54:59 +00:00
|
|
|
/* accessibility support */
|
2010-12-09 12:36:50 +00:00
|
|
|
AtkObject * (* get_accessible) (ClutterActor *self);
|
2010-05-25 11:54:59 +00:00
|
|
|
|
2010-09-07 17:04:19 +00:00
|
|
|
gboolean (* get_paint_volume) (ClutterActor *actor,
|
2010-08-16 14:53:28 +00:00
|
|
|
ClutterPaintVolume *volume);
|
|
|
|
|
2011-03-14 16:30:53 +00:00
|
|
|
gboolean (* has_overlaps) (ClutterActor *self);
|
|
|
|
|
2007-06-16 21:15:31 +00:00
|
|
|
/*< private >*/
|
2006-06-22 12:05:51 +00:00
|
|
|
/* padding for future expansion */
|
2011-03-14 16:30:53 +00:00
|
|
|
gpointer _padding_dummy[28];
|
2006-06-13 13:17:45 +00:00
|
|
|
};
|
|
|
|
|
2012-01-25 15:27:57 +00:00
|
|
|
/**
|
|
|
|
* ClutterActorIter:
|
|
|
|
*
|
|
|
|
* An iterator structure that allows to efficiently iterate over a
|
|
|
|
* section of the scene graph.
|
|
|
|
*
|
|
|
|
* The contents of the <structname>ClutterActorIter</structname> structure
|
|
|
|
* are private and should only be accessed using the provided API.
|
|
|
|
*
|
|
|
|
* Since: 1.10
|
|
|
|
*/
|
|
|
|
struct _ClutterActorIter
|
|
|
|
{
|
|
|
|
/*< private >*/
|
|
|
|
gpointer CLUTTER_PRIVATE_FIELD (dummy1);
|
|
|
|
gpointer CLUTTER_PRIVATE_FIELD (dummy2);
|
|
|
|
gpointer CLUTTER_PRIVATE_FIELD (dummy3);
|
|
|
|
gint CLUTTER_PRIVATE_FIELD (dummy4);
|
|
|
|
gpointer CLUTTER_PRIVATE_FIELD (dummy5);
|
|
|
|
};
|
|
|
|
|
2011-12-06 16:09:53 +00:00
|
|
|
GType clutter_actor_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2012-02-05 08:47:17 +00:00
|
|
|
ClutterActor * clutter_actor_new (void);
|
|
|
|
|
|
|
|
void clutter_actor_set_flags (ClutterActor *self,
|
|
|
|
ClutterActorFlags flags);
|
|
|
|
void clutter_actor_unset_flags (ClutterActor *self,
|
|
|
|
ClutterActorFlags flags);
|
|
|
|
ClutterActorFlags clutter_actor_get_flags (ClutterActor *self);
|
|
|
|
void clutter_actor_show (ClutterActor *self);
|
|
|
|
void clutter_actor_hide (ClutterActor *self);
|
|
|
|
void clutter_actor_realize (ClutterActor *self);
|
|
|
|
void clutter_actor_unrealize (ClutterActor *self);
|
|
|
|
void clutter_actor_map (ClutterActor *self);
|
|
|
|
void clutter_actor_unmap (ClutterActor *self);
|
|
|
|
void clutter_actor_paint (ClutterActor *self);
|
|
|
|
void clutter_actor_continue_paint (ClutterActor *self);
|
|
|
|
void clutter_actor_queue_redraw (ClutterActor *self);
|
|
|
|
void clutter_actor_queue_redraw_with_clip (ClutterActor *self,
|
|
|
|
const cairo_rectangle_int_t *clip);
|
|
|
|
void clutter_actor_queue_relayout (ClutterActor *self);
|
|
|
|
void clutter_actor_destroy (ClutterActor *self);
|
|
|
|
void clutter_actor_set_name (ClutterActor *self,
|
|
|
|
const gchar *name);
|
|
|
|
const gchar * clutter_actor_get_name (ClutterActor *self);
|
|
|
|
AtkObject * clutter_actor_get_accessible (ClutterActor *self);
|
|
|
|
|
|
|
|
/* Size negotiation */
|
|
|
|
void clutter_actor_set_request_mode (ClutterActor *self,
|
|
|
|
ClutterRequestMode mode);
|
|
|
|
ClutterRequestMode clutter_actor_get_request_mode (ClutterActor *self);
|
|
|
|
void clutter_actor_get_preferred_width (ClutterActor *self,
|
|
|
|
gfloat for_height,
|
|
|
|
gfloat *min_width_p,
|
|
|
|
gfloat *natural_width_p);
|
|
|
|
void clutter_actor_get_preferred_height (ClutterActor *self,
|
|
|
|
gfloat for_width,
|
|
|
|
gfloat *min_height_p,
|
|
|
|
gfloat *natural_height_p);
|
|
|
|
void clutter_actor_get_preferred_size (ClutterActor *self,
|
|
|
|
gfloat *min_width_p,
|
|
|
|
gfloat *min_height_p,
|
|
|
|
gfloat *natural_width_p,
|
|
|
|
gfloat *natural_height_p);
|
|
|
|
void clutter_actor_allocate (ClutterActor *self,
|
|
|
|
const ClutterActorBox *box,
|
|
|
|
ClutterAllocationFlags flags);
|
|
|
|
void clutter_actor_allocate_preferred_size (ClutterActor *self,
|
|
|
|
ClutterAllocationFlags flags);
|
|
|
|
void clutter_actor_allocate_available_size (ClutterActor *self,
|
|
|
|
gfloat x,
|
|
|
|
gfloat y,
|
|
|
|
gfloat available_width,
|
|
|
|
gfloat available_height,
|
|
|
|
ClutterAllocationFlags flags);
|
|
|
|
void clutter_actor_allocate_align_fill (ClutterActor *self,
|
|
|
|
const ClutterActorBox *box,
|
|
|
|
gdouble x_align,
|
|
|
|
gdouble y_align,
|
|
|
|
gboolean x_fill,
|
|
|
|
gboolean y_fill,
|
|
|
|
ClutterAllocationFlags flags);
|
|
|
|
void clutter_actor_set_allocation (ClutterActor *self,
|
|
|
|
const ClutterActorBox *box,
|
|
|
|
ClutterAllocationFlags flags);
|
|
|
|
void clutter_actor_get_allocation_box (ClutterActor *self,
|
|
|
|
ClutterActorBox *box);
|
|
|
|
void clutter_actor_get_allocation_geometry (ClutterActor *self,
|
|
|
|
ClutterGeometry *geom);
|
|
|
|
void clutter_actor_get_allocation_vertices (ClutterActor *self,
|
|
|
|
ClutterActor *ancestor,
|
|
|
|
ClutterVertex verts[]);
|
|
|
|
gboolean clutter_actor_has_allocation (ClutterActor *self);
|
|
|
|
void clutter_actor_set_size (ClutterActor *self,
|
|
|
|
gfloat width,
|
|
|
|
gfloat height);
|
|
|
|
void clutter_actor_get_size (ClutterActor *self,
|
|
|
|
gfloat *width,
|
|
|
|
gfloat *height);
|
|
|
|
void clutter_actor_set_position (ClutterActor *self,
|
|
|
|
gfloat x,
|
|
|
|
gfloat y);
|
|
|
|
void clutter_actor_get_position (ClutterActor *self,
|
|
|
|
gfloat *x,
|
|
|
|
gfloat *y);
|
|
|
|
gboolean clutter_actor_get_fixed_position_set (ClutterActor *self);
|
|
|
|
void clutter_actor_set_fixed_position_set (ClutterActor *self,
|
|
|
|
gboolean is_set);
|
|
|
|
void clutter_actor_move_by (ClutterActor *self,
|
|
|
|
gfloat dx,
|
|
|
|
gfloat dy);
|
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,
request and paint area. Now ::request_coords() is called
::allocate(), and ::query_coords() has been split into
::get_preferred_width() and ::get_preferred_height(). See
the documentation and the layout test on how to implement
a container and layout manager with the new API. (#915,
based on a patch by Havoc Pennington, Lucas Rocha and Johan
Bilien)
* clutter/clutter-clone-texture.c: Port CloneTexture to
the new size negotiation API; it just means forwarding
the requests to the parent texture.
* clutter/clutter-deprecated.h: Add deprecated and replaced
API.
* clutter/clutter-entry.c: Port Entry to the new size
negotiation API.
* clutter/clutter-group.c: Port Group to the new size
negotiation API; the semantics of the Group actor do not
change.
* clutter/clutter-label.c: Port Label to the new size
negotiation API, and vastly simplify the code.
* clutter/clutter-main.[ch]: Add API for executing a
relayout when needed.
* clutter/clutter-private.h: Add new Stage private API.
* clutter/clutter-rectangle.c: Update the get_abs_opacity()
call to get_paint_opacity().
* clutter/clutter-stage.c:
(clutter_stage_get_preferred_width),
(clutter_stage_get_preferred_height),
(clutter_stage_allocate),
(clutter_stage_class_init): Port Stage to the new size
negotiation API.
* clutter/clutter-texture.c: Port Texture to the new size
negotiation API.
* clutter/clutter-types.h: Add ClutterRequestMode enumeration.
* clutter/x11/clutter-stage-x11.c: Port the X11 stage
implementation to the new size negotiation API.
* tests/Makefile.am: Add the layout manager test case.
* tests/test-opacity.c: Update.
* tests/test-project.c: Update.
* tests/test-layout.c: Test case for a layout manager implemented
using the new size negotiation API; the layout manager handles
both transformed and untransformed children.
2008-06-10 17:07:52 +00:00
|
|
|
|
2011-11-29 17:41:33 +00:00
|
|
|
/* Actor geometry */
|
2012-02-05 08:47:17 +00:00
|
|
|
gfloat clutter_actor_get_width (ClutterActor *self);
|
|
|
|
gfloat clutter_actor_get_height (ClutterActor *self);
|
|
|
|
void clutter_actor_set_width (ClutterActor *self,
|
|
|
|
gfloat width);
|
|
|
|
void clutter_actor_set_height (ClutterActor *self,
|
|
|
|
gfloat height);
|
|
|
|
gfloat clutter_actor_get_x (ClutterActor *self);
|
|
|
|
gfloat clutter_actor_get_y (ClutterActor *self);
|
|
|
|
void clutter_actor_set_x (ClutterActor *self,
|
|
|
|
gfloat x);
|
|
|
|
void clutter_actor_set_y (ClutterActor *self,
|
|
|
|
gfloat y);
|
|
|
|
void clutter_actor_set_depth (ClutterActor *self,
|
|
|
|
gfloat depth);
|
|
|
|
gfloat clutter_actor_get_depth (ClutterActor *self);
|
|
|
|
void clutter_actor_set_layout_manager (ClutterActor *self,
|
|
|
|
ClutterLayoutManager *manager);
|
|
|
|
ClutterLayoutManager * clutter_actor_get_layout_manager (ClutterActor *self);
|
|
|
|
void clutter_actor_set_x_align (ClutterActor *self,
|
|
|
|
ClutterActorAlign x_align);
|
|
|
|
ClutterActorAlign clutter_actor_get_x_align (ClutterActor *self);
|
|
|
|
void clutter_actor_set_y_align (ClutterActor *self,
|
|
|
|
ClutterActorAlign y_align);
|
|
|
|
ClutterActorAlign clutter_actor_get_y_align (ClutterActor *self);
|
|
|
|
void clutter_actor_set_margin_top (ClutterActor *self,
|
|
|
|
gfloat margin);
|
|
|
|
gfloat clutter_actor_get_margin_top (ClutterActor *self);
|
|
|
|
void clutter_actor_set_margin_bottom (ClutterActor *self,
|
|
|
|
gfloat margin);
|
|
|
|
gfloat clutter_actor_get_margin_bottom (ClutterActor *self);
|
|
|
|
void clutter_actor_set_margin_left (ClutterActor *self,
|
|
|
|
gfloat margin);
|
|
|
|
gfloat clutter_actor_get_margin_left (ClutterActor *self);
|
|
|
|
void clutter_actor_set_margin_right (ClutterActor *self,
|
|
|
|
gfloat margin);
|
|
|
|
gfloat clutter_actor_get_margin_right (ClutterActor *self);
|
|
|
|
void clutter_actor_set_margin (ClutterActor *self,
|
|
|
|
const ClutterMargin *margin);
|
|
|
|
void clutter_actor_get_margin (ClutterActor *self,
|
|
|
|
ClutterMargin *margin);
|
|
|
|
|
|
|
|
/* Paint */
|
|
|
|
void clutter_actor_set_clip (ClutterActor *self,
|
|
|
|
gfloat xoff,
|
|
|
|
gfloat yoff,
|
|
|
|
gfloat width,
|
|
|
|
gfloat height);
|
|
|
|
void clutter_actor_remove_clip (ClutterActor *self);
|
|
|
|
gboolean clutter_actor_has_clip (ClutterActor *self);
|
|
|
|
void clutter_actor_get_clip (ClutterActor *self,
|
|
|
|
gfloat *xoff,
|
|
|
|
gfloat *yoff,
|
|
|
|
gfloat *width,
|
|
|
|
gfloat *height);
|
|
|
|
void clutter_actor_set_clip_to_allocation (ClutterActor *self,
|
|
|
|
gboolean clip_set);
|
|
|
|
gboolean clutter_actor_get_clip_to_allocation (ClutterActor *self);
|
|
|
|
void clutter_actor_set_opacity (ClutterActor *self,
|
|
|
|
guint8 opacity);
|
|
|
|
guint8 clutter_actor_get_opacity (ClutterActor *self);
|
|
|
|
guint8 clutter_actor_get_paint_opacity (ClutterActor *self);
|
|
|
|
gboolean clutter_actor_get_paint_visibility (ClutterActor *self);
|
|
|
|
void clutter_actor_set_offscreen_redirect (ClutterActor *self,
|
|
|
|
ClutterOffscreenRedirect redirect);
|
|
|
|
ClutterOffscreenRedirect clutter_actor_get_offscreen_redirect (ClutterActor *self);
|
|
|
|
gboolean clutter_actor_should_pick_paint (ClutterActor *self);
|
|
|
|
gboolean clutter_actor_is_in_clone_paint (ClutterActor *self);
|
|
|
|
gboolean clutter_actor_get_paint_box (ClutterActor *self,
|
|
|
|
ClutterActorBox *box);
|
|
|
|
gboolean clutter_actor_has_overlaps (ClutterActor *self);
|
|
|
|
void clutter_actor_set_background_color (ClutterActor *self,
|
|
|
|
const ClutterColor *color);
|
|
|
|
void clutter_actor_get_background_color (ClutterActor *self,
|
|
|
|
ClutterColor *color);
|
|
|
|
const ClutterPaintVolume * clutter_actor_get_paint_volume (ClutterActor *self);
|
|
|
|
const ClutterPaintVolume * clutter_actor_get_transformed_paint_volume (ClutterActor *self,
|
|
|
|
ClutterActor *relative_to_ancestor);
|
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,
request and paint area. Now ::request_coords() is called
::allocate(), and ::query_coords() has been split into
::get_preferred_width() and ::get_preferred_height(). See
the documentation and the layout test on how to implement
a container and layout manager with the new API. (#915,
based on a patch by Havoc Pennington, Lucas Rocha and Johan
Bilien)
* clutter/clutter-clone-texture.c: Port CloneTexture to
the new size negotiation API; it just means forwarding
the requests to the parent texture.
* clutter/clutter-deprecated.h: Add deprecated and replaced
API.
* clutter/clutter-entry.c: Port Entry to the new size
negotiation API.
* clutter/clutter-group.c: Port Group to the new size
negotiation API; the semantics of the Group actor do not
change.
* clutter/clutter-label.c: Port Label to the new size
negotiation API, and vastly simplify the code.
* clutter/clutter-main.[ch]: Add API for executing a
relayout when needed.
* clutter/clutter-private.h: Add new Stage private API.
* clutter/clutter-rectangle.c: Update the get_abs_opacity()
call to get_paint_opacity().
* clutter/clutter-stage.c:
(clutter_stage_get_preferred_width),
(clutter_stage_get_preferred_height),
(clutter_stage_allocate),
(clutter_stage_class_init): Port Stage to the new size
negotiation API.
* clutter/clutter-texture.c: Port Texture to the new size
negotiation API.
* clutter/clutter-types.h: Add ClutterRequestMode enumeration.
* clutter/x11/clutter-stage-x11.c: Port the X11 stage
implementation to the new size negotiation API.
* tests/Makefile.am: Add the layout manager test case.
* tests/test-opacity.c: Update.
* tests/test-project.c: Update.
* tests/test-layout.c: Test case for a layout manager implemented
using the new size negotiation API; the layout manager handles
both transformed and untransformed children.
2008-06-10 17:07:52 +00:00
|
|
|
|
2011-12-02 14:41:55 +00:00
|
|
|
/* Events */
|
2012-02-05 08:47:17 +00:00
|
|
|
void clutter_actor_set_reactive (ClutterActor *actor,
|
|
|
|
gboolean reactive);
|
|
|
|
gboolean clutter_actor_get_reactive (ClutterActor *actor);
|
|
|
|
gboolean clutter_actor_has_key_focus (ClutterActor *self);
|
|
|
|
void clutter_actor_grab_key_focus (ClutterActor *self);
|
|
|
|
gboolean clutter_actor_event (ClutterActor *actor,
|
|
|
|
ClutterEvent *event,
|
|
|
|
gboolean capture);
|
|
|
|
gboolean clutter_actor_has_pointer (ClutterActor *self);
|
|
|
|
|
|
|
|
/* Text */
|
|
|
|
PangoContext * clutter_actor_get_pango_context (ClutterActor *self);
|
|
|
|
PangoContext * clutter_actor_create_pango_context (ClutterActor *self);
|
|
|
|
PangoLayout * clutter_actor_create_pango_layout (ClutterActor *self,
|
|
|
|
const gchar *text);
|
|
|
|
void clutter_actor_set_text_direction (ClutterActor *self,
|
|
|
|
ClutterTextDirection text_dir);
|
|
|
|
ClutterTextDirection clutter_actor_get_text_direction (ClutterActor *self);
|
2011-12-02 14:41:55 +00:00
|
|
|
|
2011-11-29 17:41:33 +00:00
|
|
|
/* Actor hierarchy */
|
2012-02-05 08:47:17 +00:00
|
|
|
void clutter_actor_add_child (ClutterActor *self,
|
|
|
|
ClutterActor *child);
|
|
|
|
void clutter_actor_insert_child_at_index (ClutterActor *self,
|
|
|
|
ClutterActor *child,
|
|
|
|
gint index_);
|
|
|
|
void clutter_actor_insert_child_above (ClutterActor *self,
|
|
|
|
ClutterActor *child,
|
|
|
|
ClutterActor *sibling);
|
|
|
|
void clutter_actor_insert_child_below (ClutterActor *self,
|
|
|
|
ClutterActor *child,
|
|
|
|
ClutterActor *sibling);
|
|
|
|
void clutter_actor_replace_child (ClutterActor *self,
|
|
|
|
ClutterActor *old_child,
|
|
|
|
ClutterActor *new_child);
|
|
|
|
void clutter_actor_remove_child (ClutterActor *self,
|
|
|
|
ClutterActor *child);
|
|
|
|
void clutter_actor_remove_all_children (ClutterActor *self);
|
2012-02-13 17:26:37 +00:00
|
|
|
void clutter_actor_destroy_all_children (ClutterActor *self);
|
2012-02-05 08:47:17 +00:00
|
|
|
GList * clutter_actor_get_children (ClutterActor *self);
|
|
|
|
gint clutter_actor_get_n_children (ClutterActor *self);
|
|
|
|
ClutterActor * clutter_actor_get_child_at_index (ClutterActor *self,
|
|
|
|
gint index_);
|
|
|
|
ClutterActor * clutter_actor_get_previous_sibling (ClutterActor *self);
|
|
|
|
ClutterActor * clutter_actor_get_next_sibling (ClutterActor *self);
|
|
|
|
ClutterActor * clutter_actor_get_first_child (ClutterActor *self);
|
|
|
|
ClutterActor * clutter_actor_get_last_child (ClutterActor *self);
|
|
|
|
ClutterActor * clutter_actor_get_parent (ClutterActor *self);
|
|
|
|
gboolean clutter_actor_contains (ClutterActor *self,
|
|
|
|
ClutterActor *descendant);
|
|
|
|
ClutterActor* clutter_actor_get_stage (ClutterActor *actor);
|
|
|
|
void clutter_actor_set_child_below_sibling (ClutterActor *self,
|
|
|
|
ClutterActor *child,
|
|
|
|
ClutterActor *sibling);
|
|
|
|
void clutter_actor_set_child_above_sibling (ClutterActor *self,
|
|
|
|
ClutterActor *child,
|
|
|
|
ClutterActor *sibling);
|
|
|
|
void clutter_actor_set_child_at_index (ClutterActor *self,
|
|
|
|
ClutterActor *child,
|
|
|
|
gint index_);
|
|
|
|
void clutter_actor_iter_init (ClutterActorIter *iter,
|
|
|
|
ClutterActor *root);
|
|
|
|
gboolean clutter_actor_iter_next (ClutterActorIter *iter,
|
|
|
|
ClutterActor **child);
|
|
|
|
gboolean clutter_actor_iter_prev (ClutterActorIter *iter,
|
|
|
|
ClutterActor **child);
|
|
|
|
void clutter_actor_iter_remove (ClutterActorIter *iter);
|
2012-02-09 15:49:30 +00:00
|
|
|
void clutter_actor_iter_destroy (ClutterActorIter *iter);
|
2012-01-25 15:27:57 +00:00
|
|
|
|
2011-12-02 14:41:55 +00:00
|
|
|
/* Transformations */
|
2012-02-05 08:47:17 +00:00
|
|
|
gboolean clutter_actor_is_rotated (ClutterActor *self);
|
|
|
|
gboolean clutter_actor_is_scaled (ClutterActor *self);
|
|
|
|
void clutter_actor_set_rotation (ClutterActor *self,
|
|
|
|
ClutterRotateAxis axis,
|
|
|
|
gdouble angle,
|
|
|
|
gfloat x,
|
|
|
|
gfloat y,
|
|
|
|
gfloat z);
|
|
|
|
void clutter_actor_set_z_rotation_from_gravity (ClutterActor *self,
|
|
|
|
gdouble angle,
|
|
|
|
ClutterGravity gravity);
|
|
|
|
gdouble clutter_actor_get_rotation (ClutterActor *self,
|
|
|
|
ClutterRotateAxis axis,
|
|
|
|
gfloat *x,
|
|
|
|
gfloat *y,
|
|
|
|
gfloat *z);
|
|
|
|
ClutterGravity clutter_actor_get_z_rotation_gravity (ClutterActor *self);
|
|
|
|
void clutter_actor_set_scale (ClutterActor *self,
|
|
|
|
gdouble scale_x,
|
|
|
|
gdouble scale_y);
|
|
|
|
void clutter_actor_set_scale_full (ClutterActor *self,
|
|
|
|
gdouble scale_x,
|
|
|
|
gdouble scale_y,
|
|
|
|
gfloat center_x,
|
|
|
|
gfloat center_y);
|
|
|
|
void clutter_actor_set_scale_with_gravity (ClutterActor *self,
|
|
|
|
gdouble scale_x,
|
|
|
|
gdouble scale_y,
|
|
|
|
ClutterGravity gravity);
|
|
|
|
void clutter_actor_get_scale (ClutterActor *self,
|
|
|
|
gdouble *scale_x,
|
|
|
|
gdouble *scale_y);
|
|
|
|
void clutter_actor_get_scale_center (ClutterActor *self,
|
|
|
|
gfloat *center_x,
|
|
|
|
gfloat *center_y);
|
|
|
|
ClutterGravity clutter_actor_get_scale_gravity (ClutterActor *self);
|
|
|
|
void clutter_actor_set_anchor_point (ClutterActor *self,
|
|
|
|
gfloat anchor_x,
|
|
|
|
gfloat anchor_y);
|
|
|
|
void clutter_actor_move_anchor_point (ClutterActor *self,
|
|
|
|
gfloat anchor_x,
|
|
|
|
gfloat anchor_y);
|
|
|
|
void clutter_actor_get_anchor_point (ClutterActor *self,
|
|
|
|
gfloat *anchor_x,
|
|
|
|
gfloat *anchor_y);
|
|
|
|
ClutterGravity clutter_actor_get_anchor_point_gravity (ClutterActor *self);
|
|
|
|
void clutter_actor_set_anchor_point_from_gravity (ClutterActor *self,
|
|
|
|
ClutterGravity gravity);
|
|
|
|
void clutter_actor_move_anchor_point_from_gravity (ClutterActor *self,
|
|
|
|
ClutterGravity gravity);
|
|
|
|
void clutter_actor_get_transformed_position (ClutterActor *self,
|
|
|
|
gfloat *x,
|
|
|
|
gfloat *y);
|
|
|
|
void clutter_actor_get_transformed_size (ClutterActor *self,
|
|
|
|
gfloat *width,
|
|
|
|
gfloat *height);
|
|
|
|
gboolean clutter_actor_transform_stage_point (ClutterActor *self,
|
|
|
|
gfloat x,
|
|
|
|
gfloat y,
|
|
|
|
gfloat *x_out,
|
|
|
|
gfloat *y_out);
|
|
|
|
void clutter_actor_get_abs_allocation_vertices (ClutterActor *self,
|
|
|
|
ClutterVertex verts[]);
|
|
|
|
void clutter_actor_apply_transform_to_point (ClutterActor *self,
|
|
|
|
const ClutterVertex *point,
|
|
|
|
ClutterVertex *vertex);
|
|
|
|
void clutter_actor_apply_relative_transform_to_point (ClutterActor *self,
|
|
|
|
ClutterActor *ancestor,
|
|
|
|
const ClutterVertex *point,
|
|
|
|
ClutterVertex *vertex);
|
|
|
|
void clutter_actor_get_transformation_matrix (ClutterActor *self,
|
|
|
|
CoglMatrix *matrix);
|
2011-12-05 08:41:51 +00:00
|
|
|
|
2006-06-13 13:17:45 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
2009-06-25 13:59:11 +00:00
|
|
|
#endif /* __CLUTTER_ACTOR_H__ */
|