// INTERNAL HEADERS
#include <dali/devel-api/adaptor-framework/keyboard.h>
+#include <dali/integration-api/adaptor-framework/adaptor.h>
+#include <dali/integration-api/adaptor-framework/scene-holder.h>
+#include <dali/integration-api/debug.h>
#include <dali/internal/system/common/file-descriptor-monitor.h>
#include <dali/internal/system/common/system-factory.h>
#include <dali/internal/window-system/common/window-system.h>
namespace WindowSystem
{
static WindowSystemX* gWindowSystem{nullptr};
+static bool gGeometryHittest = false;
/**
* Initialize the window system (currently run from the first window that gets created)
void WindowSystemX::Hide(::Window window)
{
- Window rootWindow = window;
+ ::Window rootWindow = window;
int x, y;
unsigned int width, height, border, depth;
if(ScreenCount(mImpl->mDisplay) == 1)
return false;
}
+void SetGeometryHittestEnabled(bool enable)
+{
+ DALI_LOG_RELEASE_INFO("GeometryHittest : %d \n", enable);
+ gGeometryHittest = enable;
+ if(gGeometryHittest)
+ {
+ Dali::SceneHolderList sceneHolders = Dali::Adaptor::Get().GetSceneHolders();
+ for(auto iter = sceneHolders.begin(); iter != sceneHolders.end(); ++iter)
+ {
+ if(*iter)
+ {
+ (*iter).SetGeometryHittestEnabled(enable);
+ }
+ }
+ }
+}
+
+bool IsGeometryHittestEnabled()
+{
+ return gGeometryHittest;
+}
+
} // namespace WindowSystem
} // namespace Adaptor