/*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
// pre-initialized application
internal->SetCommandLineOptions(argc, argv);
- if(argc && (*argc > 0))
- {
- internal->GetWindow().SetClass((*argv)[0], "");
- }
internal->SetStyleSheet(stylesheet);
- internal->GetWindow().SetTransparency((windowMode == Application::OPAQUE ? false : true));
+ internal->GetWindow().SetTransparency((windowMode == Application::TRANSPARENT));
- //Store only the value before adaptor is created
+ // Store only the value before adaptor is created
internal->StoreWindowPositionSize(positionSize);
- } else
+ }
+ else
{
- internal = Internal::Adaptor::Application::New(argc, argv, stylesheet, windowMode, positionSize, Internal::Adaptor::Framework::NORMAL, type, false);
+ WindowData windowData;
+ windowData.SetPositionSize(positionSize);
+ windowData.SetTransparency(windowMode == Application::TRANSPARENT);
+ windowData.SetWindowType(type);
+
+ internal = Internal::Adaptor::Application::New(argc, argv, stylesheet, Internal::Adaptor::Framework::NORMAL, false, windowData);
}
return Application(internal.Get());
}
return networkService->CustomCommandReceivedSignal();
}
+int32_t GetRenderThreadId(Application application)
+{
+ return Internal::Adaptor::GetImplementation(application).GetRenderThreadId();
+}
+
} // namespace DevelApplication
} // namespace Dali