mTapGestureDetector.DetectedSignal().Connect(this, &MotionBlurExampleApp::OnTap);
Dali::Window winHandle = app.GetWindow();
- winHandle.AddAvailableOrientation(Dali::Window::PORTRAIT);
- winHandle.AddAvailableOrientation(Dali::Window::LANDSCAPE);
- winHandle.AddAvailableOrientation(Dali::Window::PORTRAIT_INVERSE);
- winHandle.AddAvailableOrientation(Dali::Window::LANDSCAPE_INVERSE);
+ winHandle.AddAvailableOrientation(Dali::WindowOrientation::PORTRAIT);
+ winHandle.AddAvailableOrientation(Dali::WindowOrientation::LANDSCAPE);
+ winHandle.AddAvailableOrientation(Dali::WindowOrientation::PORTRAIT_INVERSE);
+ winHandle.AddAvailableOrientation(Dali::WindowOrientation::LANDSCAPE_INVERSE);
winHandle.ResizeSignal().Connect(this, &MotionBlurExampleApp::OnWindowResized);
// set initial orientation
// set initial orientation
Dali::Window winHandle = app.GetWindow();
- winHandle.AddAvailableOrientation(Dali::Window::PORTRAIT);
- winHandle.AddAvailableOrientation(Dali::Window::LANDSCAPE);
- winHandle.AddAvailableOrientation(Dali::Window::PORTRAIT_INVERSE);
- winHandle.AddAvailableOrientation(Dali::Window::LANDSCAPE_INVERSE);
+ winHandle.AddAvailableOrientation(Dali::WindowOrientation::PORTRAIT);
+ winHandle.AddAvailableOrientation(Dali::WindowOrientation::LANDSCAPE);
+ winHandle.AddAvailableOrientation(Dali::WindowOrientation::PORTRAIT_INVERSE);
+ winHandle.AddAvailableOrientation(Dali::WindowOrientation::LANDSCAPE_INVERSE);
winHandle.ResizeSignal().Connect(this, &MotionStretchExampleApp::OnWindowResized);
// set initial orientation
Window window = app.GetWindow();
window.KeyEventSignal().Connect(this, &PageTurnExample::OnKeyEvent);
- window.AddAvailableOrientation(Window::PORTRAIT);
- window.AddAvailableOrientation(Window::LANDSCAPE);
- window.AddAvailableOrientation(Window::PORTRAIT_INVERSE);
- window.AddAvailableOrientation(Window::LANDSCAPE_INVERSE);
+ window.AddAvailableOrientation(WindowOrientation::PORTRAIT);
+ window.AddAvailableOrientation(WindowOrientation::LANDSCAPE);
+ window.AddAvailableOrientation(WindowOrientation::PORTRAIT_INVERSE);
+ window.AddAvailableOrientation(WindowOrientation::LANDSCAPE_INVERSE);
window.ResizeSignal().Connect(this, &PageTurnExample::OnWindowResized);
Window::WindowSize size = window.GetSize();
if(windowSize.GetWidth() <= windowSize.GetHeight())
{
- winHandle.AddAvailableOrientation(Dali::Window::PORTRAIT);
- winHandle.RemoveAvailableOrientation(Dali::Window::LANDSCAPE);
- winHandle.AddAvailableOrientation(Dali::Window::PORTRAIT_INVERSE);
- winHandle.RemoveAvailableOrientation(Dali::Window::LANDSCAPE_INVERSE);
+ winHandle.AddAvailableOrientation(Dali::WindowOrientation::PORTRAIT);
+ winHandle.RemoveAvailableOrientation(Dali::WindowOrientation::LANDSCAPE);
+ winHandle.AddAvailableOrientation(Dali::WindowOrientation::PORTRAIT_INVERSE);
+ winHandle.RemoveAvailableOrientation(Dali::WindowOrientation::LANDSCAPE_INVERSE);
}
else
{
- winHandle.AddAvailableOrientation(Dali::Window::LANDSCAPE);
- winHandle.RemoveAvailableOrientation(Dali::Window::PORTRAIT);
- winHandle.AddAvailableOrientation(Dali::Window::LANDSCAPE_INVERSE);
- winHandle.RemoveAvailableOrientation(Dali::Window::PORTRAIT_INVERSE);
+ winHandle.AddAvailableOrientation(Dali::WindowOrientation::LANDSCAPE);
+ winHandle.RemoveAvailableOrientation(Dali::WindowOrientation::PORTRAIT);
+ winHandle.AddAvailableOrientation(Dali::WindowOrientation::LANDSCAPE_INVERSE);
+ winHandle.RemoveAvailableOrientation(Dali::WindowOrientation::PORTRAIT_INVERSE);
}
// Set initial orientation