, __pixmap(-1)
, __pAppWidgetViewEventListenerList(new (std::nothrow) LinkedListT<_IAppWidgetViewEventListener*>)
, __destroyed(false)
+ , __initialized(false)
{
__pAppWidgetViewManager = _AppWidgetViewManager::GetInstance();
SysTryReturnVoidResult(NID_SHELL, __pAppWidgetViewManager, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
SysLog(NID_SHELL, "[%f %f %f %f]", rect.x, rect.y, rect.width, rect.height);
SysLog(NID_SHELL, "userInfo [%ls]", userInfo.GetPointer());
+ __initialized = true;
result r = SetBounds(rect);
SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ __initialized = false;
r = __pAppWidgetViewPresenter->Initialize(appId, providerName);
SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return false;
}
+result
+_AppWidgetView::OnBoundsChanging(const Tizen::Graphics::FloatRectangle& bounds)
+{
+ if (__initialized == false)
+ {
+ return E_INVALID_OPERATION;
+ }
+
+ return E_SUCCESS;
+}
+
void
_AppWidgetView::OnBoundsChanged(void)
{
void
_AppWidgetView::OnAppWidgetUpdated(const Bitmap& bitmap, const FloatDimension& size)
{
+ __initialized = true;
__resizeFromRemote = true;
SetSize(size);
__resizeFromRemote = false;
int width = 0;
int height = 0;
+ __initialized = true;
+
ecore_x_pixmap_geometry_get(pixmap, &x, &y, &width, &height);
SysTryReturnVoidResult(NID_SHELL, (width > 0) && (height > 0), E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid [0x%x %d %d].", pixmap, width , height);
virtual void OnVisualElementAnimationRepeated(const Tizen::Ui::Animations::VisualElementAnimation& animation, const Tizen::Base::String& keyName, Tizen::Ui::Animations::VisualElement& target, long currentRepeatCount);
virtual bool OnFlickGestureDetected(Tizen::Ui::_TouchFlickGestureDetector& gesture);
virtual bool OnFlickGestureCanceled(Tizen::Ui::_TouchFlickGestureDetector& gesture);
+ virtual result OnBoundsChanging(const Tizen::Graphics::FloatRectangle& bounds);
virtual void OnBoundsChanged(void);
virtual bool OnTouchPressed(const Tizen::Ui::_Control& source, const Tizen::Ui::_TouchInfo& touchInfo);
virtual bool OnTouchReleased(const Tizen::Ui::_Control& source, const Tizen::Ui::_TouchInfo& touchInfo);
std::unique_ptr<Tizen::Ui::Animations::VisualElement, _VisualElementDeleter> __pPixmapVisualElement;
std::unique_ptr<Tizen::Ui::Animations::VisualElementSurface> __pVisualElementSurface;
bool __destroyed;
+ bool __initialized;
}; // _AppWidgetView
}} // Tizen::Shell