#include <dali/devel-api/events/key-event-devel.h>
#include <dali/integration-api/core.h>
#include <dali/integration-api/events/touch-event-integ.h>
-#include <dali/integration-api/events/touch-integ.h>
#include <dali/public-api/actors/actor.h>
#include <dali/public-api/actors/camera-actor.h>
#include <dali/public-api/actors/layer.h>
{
Window* window = new Window();
window->mIsTransparent = windowData.GetTransparency();
+ window->mIsFrontBufferRendering = windowData.GetFrontBufferRendering();
window->Initialize(surface, windowData.GetPositionSize(), name, className, windowData.GetWindowType());
return window;
}
mInsetsChangedSignal(),
mPointerConstraintsSignal(),
mLastKeyEvent(),
- mLastTouchEvent(),
mIsTransparent(false),
mIsFocusAcceptable(true),
mIconified(false),
mFocused(false),
mIsWindowRotating(false),
mIsEnabledUserGeometry(false),
- mIsEmittedWindowCreatedEvent(false)
+ mIsEmittedWindowCreatedEvent(false),
+ mIsFrontBufferRendering(false)
{
}
// For Debugging
mNativeWindowId = mWindowBase->GetNativeWindowId();
+
+ if(mIsFrontBufferRendering)
+ {
+ SetFrontBufferRendering(mIsFrontBufferRendering);
+ }
}
void Window::SetRenderNotification(TriggerEventInterface* renderNotification)
mEventHandler = EventHandlerPtr(new EventHandler(mWindowSurface->GetWindowBase(), *mAdaptor));
mEventHandler->AddObserver(*this);
+ if(mWindowBase->GetType() == WindowType::IME)
+ {
+ mWindowBase->InitializeIme();
+ mWindowSurface->InitializeImeSurface();
+ }
+
// Add Window to bridge for ATSPI
auto bridge = Accessibility::Bridge::GetCurrentBridge();
void Window::OnTouchPoint(Dali::Integration::Point& point, int timeStamp)
{
- mLastTouchEvent = Dali::Integration::NewTouchEvent(timeStamp, point);
FeedTouchPoint(point, timeStamp);
}
return mLastKeyEvent;
}
-const Dali::TouchEvent& Window::GetLastTouchEvent() const
-{
- return mLastTouchEvent;
-}
-
void Window::SetUserGeometryPolicy()
{
if(mIsEnabledUserGeometry == true)
return mWindowBase->KeyboardUnGrab();
}
+void Window::SetFullScreen(bool fullscreen)
+{
+ mWindowBase->SetFullScreen(fullscreen);
+}
+
+bool Window::GetFullScreen()
+{
+ return mWindowBase->GetFullScreen();
+}
+
+void Window::SetFrontBufferRendering(bool enable)
+{
+ mWindowBase->SetFrontBufferRendering(enable);
+ mWindowSurface->SetFrontBufferRendering(enable);
+}
+
+bool Window::GetFrontBufferRendering()
+{
+ return mWindowBase->GetFrontBufferRendering();
+}
+
} // namespace Adaptor
} // namespace Internal