_Control::~_Control(void)
{
- __destroying = true;
+ if (!__destroying)
+ {
+ __destroying = true;
+ }
DoBacktrace(__pDeleteBacktrace.get());
}
}
+void
+_Control::SetDestroying(bool destroying)
+{
+ __destroying = destroying;
+}
+
+bool
+_Control::IsDestroying(void) const
+{
+ return __destroying;
+}
+
Tizen::Base::String
_Control::GetDescription(void) const
{
_Window::~_Window(void)
{
- __destroying = true;
+ SetDestroying(true);
Close();
SetOwner(null);
_IWindowDelegate&
_Window::GetWindowDelegate(void) const
{
- if (__destroying)
+ if (_Control::IsDestroying())
{
return const_cast<_Window&>(*this);
}
String descriptionTemp(L"");
descriptionTemp.Format(LOG_LEN_MAX, L"_Window: xid(0x%x) owner(0x%x) delegate(0x%x) activated(%d) destroying(%d) displayContext(0x%x)",
- GetNativeHandle(), __pOwner, __pWindowDelegate, __activated, __destroying, __pDisplayContext);
+ GetNativeHandle(), __pOwner, __pWindowDelegate, __activated, _Control::IsDestroying(), __pDisplayContext);
description.Append(descriptionTemp);
, __pOwner(null)
, __pWindowDelegate(null)
, __activated(false)
- , __destroying(false)
, __pRootVisualElement(null)
, __pLayer(null)
, __pDimmingLayer(null)
{
__activated = false;
- if (__destroying == false)
+ if (_Control::IsDestroying() == false)
{
GetWindowDelegate().OnDeactivated();
}
void AcquireHandle(void);
void SetDataBindingContext(_DataBindingContext* pDataBindingContext);
void DoBacktrace(Tizen::Base::Collection::ArrayListT<void*>* pBacktraceList);
+ void SetDestroying(bool destroying);
+ bool IsDestroying(void) const;
private:
_Control(const _Control& rhs);
_Control* __pOwner;
_IWindowDelegate* __pWindowDelegate;
bool __activated;
- bool __destroying;
Tizen::Ui::Animations::_RootVisualElement* __pRootVisualElement;
Tizen::Ui::Animations::_NativeLayer* __pLayer;