result
_EflNode::SetFlushNeeded(void)
{
-#if 0
- evas_damage_rectangle_add(
- __pEvas,
- static_cast< int >(floorf(dirtyRectangle.x)),
- static_cast< int >(floorf(dirtyRectangle.y)),
- static_cast< int >(ceilf(dirtyRectangle.width)),
- static_cast< int >(ceilf(dirtyRectangle.height))
- );
-#endif
-
if (!__pSurface || !_VisualElementSurfaceImpl::GetInstance(*__pSurface))
{
return E_INVALID_STATE;
}
-#if 0
- evas_object_image_pixels_dirty_set(reinterpret_cast< Evas_Object* >(_VisualElementSurfaceImpl::GetInstance(*__pSurface)->GetNativeHandle()), true);
-#else
Evas_Object* pImageObject = reinterpret_cast< Evas_Object* >(_VisualElementSurfaceImpl::GetInstance(*__pSharedSurface)->GetNativeHandle());
int imageWidth = 0;
int imageHeight = 0;
- evas_object_image_data_set(pImageObject, evas_object_image_data_get(pImageObject, 1));
-
evas_object_image_size_get(pImageObject, &imageWidth, &imageHeight);
evas_object_image_data_update_add(pImageObject, 0, 0, imageWidth, imageHeight);
}
-#endif
-
if(__pLayer)
{
__pLayer->SetFlushNeeded();
}
-#if 0
- //contentChanged = false;
- bool contentChanged = false;
-
- if (contentChanged)
- {
- evas_object_image_pixels_dirty_set((Evas_Object*) _VisualElementSurfaceImpl::GetInstance(*__pSurface)->GetNativeHandle(), true);
- }
- else
- {
- evas_object_image_data_update_add(
- (Evas_Object*) _VisualElementSurfaceImpl::GetInstance(*__pSurface)->GetNativeHandle(),
- dirtyRectangle.x,
- dirtyRectangle.y,
- dirtyRectangle.width,
- dirtyRectangle.height
- );
-
-#if 1
- evas_object_image_data_update_add(
- (Evas_Object*) _VisualElementSurfaceImpl::GetInstance(*__pSharedSurface)->GetNativeHandle(),
- dirtyRectangle.x,
- dirtyRectangle.y,
- dirtyRectangle.width,
- dirtyRectangle.height
- );
-#endif
- }
-
-#endif
-
return E_SUCCESS;
}
_Colorf
_EflNode::GetBackgroundColor(void) const
{
-// if (!__pRectangleObject)
-// return _Colorf(); // CHECKME: Default background color ?
-
return __backgroundColor;
}
result
_EflNode::SetBackgroundColor(const _Colorf& backgroundColor)
{
-// if (!__pRectangleObject)
-// return E_INVALID_STATE;
-
__backgroundColor = backgroundColor;
return E_SUCCESS;
if (pEflVisualElementSurfaceImpl && pEflVisualElementSurfaceImpl->__pBuffer != null)
{
evas_object_image_source_set(pImageObject, pImageObjectNew);
-#if 0
+#if 0 // needed if evas_object_show() has not been called in ctor of _EflVisualElementSurfaceImpl
evas_object_show(pImageObjectNew);
evas_object_image_source_visible_set(pImageObject, EINA_FALSE);
#endif
__realBounds.x += clipX;
__realBounds.y += clipY;
_VisualElementCoordinateSystem::MakeIntegralPoint(__realBounds.x, __realBounds.y, newX, newY);
-
-#if 0
- int evasOutputW, evasOutputH;
- evas_output_size_get(__pEvas, &evasOutputW, &evasOutputH);
-
-// if (newX >= 480 || newY >= 800 || newX + newW < 0 || newY + newH < 0)
-// if ((newX >= SCREEN_WIDTH || newY >= SCREEN_HEIGHT || newX + newW < 0 || newY + newH < 0) ||
- if ((newX >= evasOutputW || newY >= evasOutputH || newX + newW < 0 || newY + newH < 0) ||
- (likely(pParentClipper) && (newX >= clipX + clipW || newY >= clipY + clipH || newX + newW < clipX || newY + newH < clipY)))
- {
- if (isEvasVisible)
- evas_object_hide(__pSmartObject);
-
- element.__pSharedData->invalidatedNativeProps = 0;
-
- goto finished;
- }
-#endif
-
-#if 0
- if (likely(pParentClipper))
- {
- if (likely(newX >= clipX) && likely(newY >= clipY) && likely(newX + newW <= clipX + clipW) && likely(newY + newH <= clipY + clipH))
- pParentClipper = null;
- }
-#endif
}
else
{
{
evas_object_render_op_set(pImageObjectNew, GetRenderOperation(element.__renderOperation));
}
-//
-// if (unlikely(__renderOperation == VisualElement::RENDER_OPERATION_COPY))
-// {
-// evas_object_color_set(pImageObjectNew, 255, 255, 255, 255);
-// }
-// else
-// {
- int premultipliedColor = static_cast< int >(255.0f * alpha); // white color
- evas_object_color_set(pImageObjectNew, premultipliedColor, premultipliedColor, premultipliedColor, premultipliedColor);
-// }
+
+ int premultipliedColor = static_cast< int >(255.0f * alpha); // white color
+ evas_object_color_set(pImageObjectNew, premultipliedColor, premultipliedColor, premultipliedColor, premultipliedColor);
}
#endif
}
+_EflVisualElementSurfaceImpl::~_EflVisualElementSurfaceImpl(void)
+{
+ if (__pEvasImage != null)
+ {
+ evas_object_hide(__pEvasImage);
+
+ // * DO NOT delete object which has been created from other modules.
+ if (!__fromOutside)
+ {
+ evas_object_del(__pEvasImage);
+ }
+ evas_object_smart_member_del(__pEvasImage);
+ }
+
+ if (__pBuffer != null)
+ {
+ delete []__pBuffer;
+ }
+
+ __pBuffer = null;
+ __pEvasImage = null;
+}
+
result
_EflVisualElementSurfaceImpl::SetImage(const String& fileName)
{
return E_SUCCESS;
}
-_EflVisualElementSurfaceImpl::~_EflVisualElementSurfaceImpl(void)
-{
- if (__pEvasImage != null)
- {
- evas_object_hide(__pEvasImage);
-
- // * DO NOT delete object which has been created from other modules.
- if (!__fromOutside)
- {
- evas_object_image_data_set(__pEvasImage, null);
- evas_object_del(__pEvasImage);
- }
- evas_object_smart_member_del(__pEvasImage);
- }
-
- if (__pBuffer != null)
- {
- delete []__pBuffer;
- }
-
- __pBuffer = null;
- __pEvasImage = null;
-}
-
Handle
_EflVisualElementSurfaceImpl::GetNativeHandle(void) const
{
evas_object_image_size_get(pSource, &w, &h);
-#if 0
- _CoordinateSystem* pCoordSystem = _CoordinateSystem::GetInstance();
- _ICoordinateTransformer* pXformer = pCoordSystem->GetInverseTransformer();
- SysTryReturn(NID_UI_ANIM, pXformer, Dimension(-1, -1), E_SYSTEM, "[E_SYSTEM] A system error has been occurred. Failed to load coordinate transformer.");
-
- w = pXformer->Transform(w);
- h = pXformer->Transform(h);
-#endif
-
return Tizen::Graphics::Dimension(w, h);
}