#endif
#include "FUiAnim_EflNode.h"
+#include "FUiAnim_EflLayer.h"
#include "FUiAnim_AnimationManager.h"
#include "FUiAnim_DisplayManager.h"
evas_object_geometry_get(pEvasObject, &absolute.x, &absolute.y, &absolute.width, &absolute.height);
FloatRectangle realBounds = pElement->__bounds;
+ _RootVisualElement* pRoot = dynamic_cast<_RootVisualElement*>(pElement->__pPublicInstance);
+ if (pRoot)
+ {
+ _NativeLayer* pLayer = pRoot->GetNativeLayer();
+ FloatRectangle rect = pLayer->GetBounds();
+ realBounds.x += rect.x;
+ realBounds.y += rect.y;
+ }
_VisualElementCoordinateSystem::ConvertDimensionToPhysical(realBounds.width, realBounds.height);
_VisualElementCoordinateSystem::MakeIntegralPoint(realBounds.width, realBounds.height, relative.width, relative.height);
_VisualElementCoordinateSystem::ConvertPointToPhysical(realBounds.x, realBounds.y);
_VisualElementCoordinateSystem::MakeIntegralPoint(realBounds.x, realBounds.y, relative.x, relative.y);
+
bool showState = pElement->GetShowState();
bool visible = pElement->IsVisible();
bool evasVisible = evas_object_visible_get(pEvasObject);
}
// save the image file
- strncpy(savePath, "/tmp/", 5);
+ strncpy(savePath, "/tmp/layout/", 12);
strncat(savePath, filename, strlen(filename));
evas_object_image_save(pEvasObjectImage, savePath, NULL, "quality=100 compress=9");
{
Tizen::Ui::Animations::_DisplayManager* pDisplayManager = Tizen::Ui::Animations::_DisplayManager::GetInstance();
- FILE* pFile = fopen("/tmp/layout.html", "w");
+ system("rm -rf /tmp/layout");
+ system("mkdir /tmp/layout");
+ FILE* pFile = fopen("/tmp/layout/layout.html", "w");
fprintf(pFile, "<body>\n");
fprintf(pFile, "<div style='position:absolute; left:0px; top:0px;'>Model</div>\n");
fprintf(pFile, "<div style='position:absolute; left:0px; top:30px;'>\n");
int y = 0;
int w = 0;
int h = 0;
- evas_object_geometry_get(_pWindow, &x, &y, &w, &h);
+
+ evas_object_geometry_get(_pWindow, null, null, &w, &h);
+ elm_win_screen_position_get(_pWindow, &x, &y);
return FloatRectangle(x, y, w, h);
}