/*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <dali/public-api/object/base-object.h>
#define DALI_WINDOW_H
-#include <dali/integration-api/adaptors/adaptor.h>
+#include <dali/integration-api/adaptor-framework/adaptor.h>
#include <toolkit-adaptor-impl.h>
-// INTERNAL INCLUDES
-#include "test-render-surface.h"
-
using AdaptorImpl = Dali::Internal::Adaptor::Adaptor;
namespace Dali
{
Window::Window( const PositionSize& positionSize )
-: SceneHolder( positionSize )
+: SceneHolder( positionSize ),
+ mFocusChangeSignal(),
+ mVisibilityChangedSignal()
{
}
return GetImplementation( *this ).GetScene();
}
-Integration::RenderSurface& Window::GetRenderSurface()
+Dali::RenderSurfaceInterface& Window::GetRenderSurface()
{
return GetImplementation( *this ).GetRenderSurface();
}
GetImplementation( *this ).mFocusChangeSignal.Emit(*this, true);
}
+void Window::Hide()
+{
+ GetImplementation( *this ).mVisibilityChangedSignal.Emit( *this, false );
+}
+
FocusChangeSignalType& Window::FocusChangeSignal()
{
return GetImplementation( *this ).mFocusChangeSignal;
return GetImplementation( window ).WheelEventSignal();
}
+VisibilityChangedSignalType& VisibilityChangedSignal( Window window )
+{
+ return GetImplementation( window ).mVisibilityChangedSignal;
+}
+
} // namespace DevelWindow
} // Dali