#include <FBaseSysLog.h>
#include <FBaseRtThread.h>
#include <FApp_IActiveWindowEventListener.h>
+#include <FBase_StringConverter.h>
#include <FGrp_CanvasImpl.h>
#include "FUi_CoordinateSystemUtils.h"
#include "FUi_EcoreEvas.h"
}
void
+_EcoreEvas::SetWindowName(const _Window& window, const Tizen::Base::String& name)
+{
+ _EflLayer* pLayer = GetEflLayer(window);
+ SysTryReturnVoidResult(NID_UI, pLayer, E_INVALID_ARG, "[E_INVALID_ARG] The window doesn't have a elf layer.");
+
+ Evas_Object* pWinObj = pLayer->GetElmWin();
+ SysTryReturnVoidResult(NID_UI, pWinObj, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+
+ const char* windowName = _StringConverter::CopyToCharArrayN(name);
+ if (windowName)
+ {
+ elm_win_title_set(pWinObj, windowName);
+
+ delete[] windowName;
+ }
+}
+
+void
_EcoreEvas::SetWindowType(const _Window& window, int winType)
{
_EflLayer* pLayer = GetEflLayer(window);
#include <FUiWindow.h>
#include <FBase_Log.h>
#include <FBaseColArrayListT.h>
+#include <FApp_AppInfo.h>
#include "FUi_Window.h"
#include "FUi_ControlManager.h"
#include "FUi_TouchManager.h"
#include "FUiCtrl_FormImpl.h"
#include "FUiCtrl_FrameImpl.h"
+using namespace Tizen::App;
using namespace Tizen::Base;
using namespace Tizen::Base::Collection;
using namespace Tizen::Graphics;
__pRootVisualElement->SetName(L"Root");
+ _EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
+ if (pEcoreEvas)
+ {
+ String osp(L"OSP_");
+ String appName = _AppInfo::GetAppName();
+ osp.Append(appName);
+
+ pEcoreEvas->SetWindowName(*this, osp);
+ }
+
return E_SUCCESS;
}
void SetWindowRotationBounds(const _Window& window, int rotation, const Tizen::Graphics::Rectangle& bounds);
void SetWindowRotationBounds(const _Window& window, int rotation, const Tizen::Graphics::FloatRectangle& bounds);
+ void SetWindowName(const _Window& window, const Tizen::Base::String& name);
void SetWindowType(const _Window& window, int winType);
result SetFloatingMode(const _Window& window, bool enable);
bool GetFloatingMode(const _Window& window) const;