summaryrefslogtreecommitdiff
path: root/clutter/clutter-content-private.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2012-02-01 18:33:55 +0000
committerEmmanuele Bassi <ebassi@linux.intel.com>2012-03-16 12:33:36 +0000
commitbe4746b15f339c7959ff5a3df94b8f289c274ab3 (patch)
tree1c4326af86015a80478b171ebabf23badde8c4bf /clutter/clutter-content-private.h
parent6f0782e0a41deb34e8eeedd492d33f1efa8b3a90 (diff)
downloadclutter-be4746b15f339c7959ff5a3df94b8f289c274ab3.tar.gz
Add ClutterContent
ClutterContent is an interface for creating delegate objects that handle what an actor is going to paint. Since they are a newly added type, they only hook into the new PaintNode based API. The position and size of the content is controlled in part by the content's own preferred size, and by the ClutterContentGravity enumeration.
Diffstat (limited to 'clutter/clutter-content-private.h')
-rw-r--r--clutter/clutter-content-private.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/clutter/clutter-content-private.h b/clutter/clutter-content-private.h
new file mode 100644
index 000000000..56c3f78c0
--- /dev/null
+++ b/clutter/clutter-content-private.h
@@ -0,0 +1,47 @@
+/*
+ * Clutter.
+ *
+ * An OpenGL based 'interactive canvas' library.
+ *
+ * Copyright (C) 2011 Intel Corporation.
+ *
+ * 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
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Author:
+ * Emmanuele Bassi <ebassi@linux.intel.com>
+ */
+
+#ifndef __CLUTTER_CONTENT_PRIVATE_H__
+#define __CLUTTER_CONTENT_PRIVATE_H__
+
+#include <clutter/clutter-content.h>
+
+G_BEGIN_DECLS
+
+gboolean _clutter_content_get_preferred_size (ClutterContent *content,
+ gfloat *width,
+ gfloat *height);
+
+void _clutter_content_attached (ClutterContent *content,
+ ClutterActor *actor);
+void _clutter_content_detached (ClutterContent *content,
+ ClutterActor *actor);
+
+void _clutter_content_paint_content (ClutterContent *content,
+ ClutterActor *actor,
+ ClutterPaintNode *node);
+
+G_END_DECLS
+
+#endif /* __CLUTTER_CONTENT_PRIVATE_H__ */