/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
namespace Dali
{
-
namespace Internal
{
-
namespace Adaptor
{
-
namespace WindowSystem
{
-
void Initialize()
{
- ecore_wl_init( NULL );
+ ecore_wl_init(NULL);
}
void Shutdown()
ecore_wl_shutdown();
}
-void GetScreenSize( int& width, int& height )
+void GetScreenSize(int32_t& width, int32_t& height)
+{
+ ecore_wl_screen_size_get(&width, &height);
+}
+
+void UpdateScreenSize()
{
- ecore_wl_screen_size_get( &width, &height );
}
-bool SetKeyboardRepeatInfo( float rate, float delay )
+bool SetKeyboardRepeatInfo(float rate, float delay)
{
- return ecore_wl_keyboard_repeat_info_set( static_cast<double>( rate ), static_cast<double>( delay ) );
+ return ecore_wl_keyboard_repeat_info_set(static_cast<double>(rate), static_cast<double>(delay));
}
-bool GetKeyboardRepeatInfo( float& rate, float& delay )
+bool GetKeyboardRepeatInfo(float& rate, float& delay)
{
double rateVal, delayVal;
- bool ret = ecore_wl_keyboard_repeat_info_get( &rateVal, &delayVal );
- rate = static_cast<float>( rateVal );
- delay = static_cast<float>( delayVal );
+ bool ret = ecore_wl_keyboard_repeat_info_get(&rateVal, &delayVal);
+ rate = static_cast<float>(rateVal);
+ delay = static_cast<float>(delayVal);
return ret;
}