1 #ifndef __DALI_RENDER_TASK_WRAPPER_H__
2 #define __DALI_RENDER_TASK_WRAPPER_H__
5 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/public-api/dali-core.h>
23 #include "emscripten/emscripten.h"
24 #include "emscripten/bind.h"
27 #include "actor-wrapper.h"
37 * Gets the local coordinates from the screen coordinates
39 * @param[in] self The render task
40 * @param[in] actor The Dali actor
41 * @param[in] screenX The screen X position
42 * @param[in] screenY The screen Y position
44 * @returns The Local coordinates
47 Dali::Vector2 ScreenToLocal(Dali::RenderTask self, Dali::Actor actor, float screenX, float screenY);
50 * Gets the screen coordinates from a position
52 * @param[in] self The RenderTask
53 * @param[in] position The position
55 * @returns The screen coordinates of the actor
58 Dali::Vector2 WorldToScreen(Dali::RenderTask self, const Dali::Vector3 &position);
60 }; // namespace Emscripten
61 }; // namespace Internal