--- a/graphicscomposition/openwfcompositionengine/composition/src/wfcscene.c Tue Jul 06 15:45:57 2010 +0300
+++ b/graphicscomposition/openwfcompositionengine/composition/src/wfcscene.c Wed Aug 18 11:05:09 2010 +0300
@@ -1,4 +1,5 @@
/* Copyright (c) 2009-2010 The Khronos Group Inc.
+ * Portions copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies)
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and/or associated documentation files (the
@@ -450,3 +451,17 @@
}
return element;
}
+
+/*----------------------------------------------------------------------------*/
+OWF_API_CALL WFC_ELEMENT*
+WFC_Scene_TopMostElement(WFC_SCENE* scene)
+{
+ OWF_NODE* node = NULL;
+
+ for (node = scene->elements; node && node->next; node = node->next)
+ {
+ /* All work done in the for statement, so no body */
+ }
+
+ return node ? ELEMENT(node->data) : NULL;
+}