#include "FUiAnim_GlDisplayManager.h"
#include "FUiAnim_GlNode.h"
#include "FUiAnim_ControlVisualElement.h"
-#if defined(MULTI_WINDOW)
+
#include "FUiAnim_RootVisualElement.h"
#include "FUiAnim_GlLayer.h"
-#endif
+
using namespace std;
using namespace Tizen::Ui;
{
_Window* pWindow = null;
-#if !defined(MULTI_WINDOW)
- pWindow = pControlManager->GetCurrentFrame();
-#else
pWindow = pControlManager->GetTopVisibleWindowAt(Point(x, y));
-#endif
+
SysTryReturn(NID_UI, pWindow, null, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
Tizen::Graphics::Rectangle winBounds = pWindow->GetBounds();
ptf.x = static_cast<float>(x - winBounds.x);
ptf.y = static_cast<float>(y - winBounds.y);
-#if !defined(MULTI_WINDOW)
- //pRootControlElement = dynamic_cast <_ControlVisualElement*>(pControlManager->GetRoot().GetVisualElement());
-#else
_Window* pTouchedWindow = pControlManager->GetTopVisibleWindowAt(Point(x, y));
SysTryReturn(NID_UI, pTouchedWindow, null, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
pRootControlElement = dynamic_cast <_ControlVisualElement*>(pTouchedWindow->GetVisualElement());
-#endif
}
SysTryReturn(NID_UI, pRootControlElement, null, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
_ControlManager* pControlManager = _ControlManager::GetInstance();
SysTryReturn(NID_UI, pControlManager, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
-#if !defined(MULTI_WINDOW)
-// _EcoreEvasMgr* pEcoreEvasMgr = GetEcoreEvasMgr();
-// SysTryReturn(NID_UI, pEcoreEvasMgr, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
-
-// _EcoreEvas* pEcoreEvas = pEcoreEvasMgr->GetEcoreEvas();
-// SysTryReturn(NID_UI, pEcoreEvas, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
-
-// Ecore_Evas* pEE = pEcoreEvas->GetEcoreEvas();
-// SysTryReturn(NID_UI, pEE, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
-#else
// _Window* pTouchedWindow = pControlManager->GetTopWindowAt(_CoordinateSystemUtils::InverseTransform(Point(x, y)), false);
// SysTryReturn(NID_UI, pTouchedWindow, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
// _EflLayer* pLayer = static_cast<_EflLayer*>(pRootVE->GetNativeLayer());
// Ecore_Evas* pEE = pLayer->GetEcoreEvas();
-#endif
const int PORTRAIT = 0;
const int LANDSCAPE = 270;
if (IsSupportedBGRA())
{
#if defined(_OSP_EMUL_)
- glTexImage2D(GL_TEXTURE_2D, 0, GL_BGRA, pTextureInfo->width, pTextureInfo->height, 0, GL_BGRA, GL_UNSIGNED_BYTE, pTextureInfo->pPixels);
+ //glTexImage2D(GL_TEXTURE_2D, 0, GL_BGRA, pTextureInfo->width, pTextureInfo->height, 0, GL_BGRA, GL_UNSIGNED_BYTE, pTextureInfo->pPixels);
+ glTexImage2D(GL_TEXTURE_2D, 0, GL_BGRA_EXT, pTextureInfo->width, pTextureInfo->height, 0, GL_BGRA_EXT, GL_UNSIGNED_BYTE, pTextureInfo->pPixels);
#else
glTexImage2D(GL_TEXTURE_2D, 0, GL_BGRA_EXT, pTextureInfo->width, pTextureInfo->height, 0, GL_BGRA_EXT, GL_UNSIGNED_BYTE, pTextureInfo->pPixels);
#endif
if (IsSupportedBGRA())
{
#if defined(_OSP_EMUL_)
- glTexSubImage2D(GL_TEXTURE_2D, 0, pSurfaceInfo->x, pSurfaceInfo->y, pSurfaceInfo->width, pSurfaceInfo->height, GL_BGRA, GL_UNSIGNED_BYTE, pSurfaceInfo->pPixels);
+ //glTexSubImage2D(GL_TEXTURE_2D, 0, pSurfaceInfo->x, pSurfaceInfo->y, pSurfaceInfo->width, pSurfaceInfo->height, GL_BGRA, GL_UNSIGNED_BYTE, pSurfaceInfo->pPixels);
+ glTexSubImage2D(GL_TEXTURE_2D, 0, pSurfaceInfo->x, pSurfaceInfo->y, pSurfaceInfo->width, pSurfaceInfo->height, GL_BGRA_EXT, GL_UNSIGNED_BYTE, pSurfaceInfo->pPixels);
#else
glTexSubImage2D(GL_TEXTURE_2D, 0, pSurfaceInfo->x, pSurfaceInfo->y, pSurfaceInfo->width, pSurfaceInfo->height, GL_BGRA_EXT, GL_UNSIGNED_BYTE, pSurfaceInfo->pPixels);
#endif
#define PRINT printf
+
//#define ELAPSE(_STR) unique_ptr<_ElapsedTime> ptr(new _ElapsedTime(_STR));
#ifdef VE_USE_GL_MULTI_CONTEXT
result
_GlVisualElementSurfaceImpl::SetImage(const String& fileName)
{
- SysAssertf(false, "SetImage() : NOT IMPLEMENTED YET!!!");
+// SysAssertf(false, "SetImage() : NOT IMPLEMENTED YET!!!");
return E_SYSTEM;
}
if (pFrame && IsAttachedToMainTree())
{
- visible = __pIndicator->GetIndicatorShowState();
- SysTryReturn(NID_UI_CTRL, GetLastResult() == E_SUCCESS, false, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
+ if(__pIndicator)
+ {
+ visible = __pIndicator->GetIndicatorShowState();
+ SysTryReturn(NID_UI_CTRL, GetLastResult() == E_SUCCESS, false, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
+ }
+ else
+ {
+ return false;
+ }
}
else
{
FrameShowMode mode = pFrame->GetShowMode();
if (mode == FRAME_SHOW_MODE_FULL_SCREEN)
{
- opacity = __pIndicator->GetIndicatorOpacity();
- SysTryReturn(NID_UI_CTRL, GetLastResult() == E_SUCCESS, false, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
-
- if (opacity == _INDICATOR_OPACITY_TRANSLUCENT)
+ if(__pIndicator)
{
- transparent = true;
- }
- else if (opacity == _INDICATOR_OPACITY_OPAQUE)
- {
- transparent = false;
- }
- else
- {
- transparent = true;
+ opacity = __pIndicator->GetIndicatorOpacity();
+ SysTryReturn(NID_UI_CTRL, GetLastResult() == E_SUCCESS, false, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
+
+ if (opacity == _INDICATOR_OPACITY_TRANSLUCENT)
+ {
+ transparent = true;
+ }
+ else if (opacity == _INDICATOR_OPACITY_OPAQUE)
+ {
+ transparent = false;
+ }
+ else
+ {
+ transparent = true;
+ }
}
}
}
SysTryReturn(NID_UI_CTRL, pIndicator, null, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
return pIndicator;
+#else
+ return null;
#endif
}
SysTryReturn(NID_UI_CTRL, pEcoreEvas, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] Unable to get evas");
#endif
+ if(!__pIndicator)
+ return r;
+
_Control* pParent = GetParent();
if (!pParent)
{
{
result r = E_SUCCESS;
+ if(!__pIndicator)
+ return ;
+
_Control* pParent = GetParent();
_Frame* pFrame = dynamic_cast<_Frame*>(pParent);
_Control* pParent = GetParent();
_Frame* pFrame = dynamic_cast<_Frame*>(pParent);
+ if(!__pIndicator)
+ return r;
+
if (pFrame && IsAttachedToMainTree())
{
FrameShowMode mode = pFrame->GetShowMode();
if (FORM_STYLE_INDICATOR & GetFormStyle())
{
- __pIndicator->OnAttachedToMainTree();
- AddIndicatorObject();
+ if(__pIndicator)
+ {
+ __pIndicator->OnAttachedToMainTree();
+ AddIndicatorObject();
+ }
if (__transparentIndicator != IsIndicatorTranslucent())
{
if (__pIndicator)
{
- __pIndicator->SetBounds(FloatRectangle(0.0f, 0.0f, GetClientBoundsF().width, indicatorheight));
+ __pIndicator->SetBounds(FloatRectangle(0.0f, 0.0f, GetClientBoundsF().width, indicatorheight));
}
AdjustClientBounds();
return E_SUCCESS;
#endif
+ return E_SUCCESS;
}
bool
{
return false;
}
+#else
+ return true;
#endif
}
#ifdef BUILD_BREAK