1 #ifndef __DALI_PROPERTY_VALUE_WRAPPER_H__
2 #define __DALI_PROPERTY_VALUE_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.
23 #include <dali/public-api/dali-core.h>
24 #include "emscripten/val.h"
36 * Sets a property value From an Emscripten value. Recursively for Maps and Arrays
38 * @param[in] propertyValue The property value to set
39 * @param[in] fromVal The emscripten value to set from
42 void RecursiveSetProperty(Dali::Property::Value& propertyValue, const emscripten::val& fromVal);
45 * Set an Emscripten value from a Dali property Value
47 * @param[in] value The Dali Property value
49 * @returns The Emscripten value
52 emscripten::val JavascriptValue( const Dali::Property::Value& value );
55 * Gets a Dali value from a Dali Property Map
57 * @param[in] self The property map
58 * @param[in] key The key of the value to fetch
60 * @returns The property value
63 Dali::Property::Value PropertyMapGet( Dali::Property::Map& self, const std::string& key );
65 }; // namespace Emscripten
66 }; // namespace Internal