1 #ifndef __DALI_JAVASCRIPT_APPLICATION_OPTIONS_H__
2 #define __DALI_JAVASCRIPT_APPLICATION_OPTIONS_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.
21 #include <public-api/dali-core.h>
22 #include <public-api/adaptor-framework/window.h>
25 namespace DaliNodeAddon
31 : positionSize(0,0,0,0)
36 Dali::PositionSize positionSize;
40 struct StereoScopicOptions
43 : viewMode(Dali::MONO),
48 Dali::ViewMode viewMode;
52 struct ApplicationOptions
55 StereoScopicOptions stereo;
56 std::string stylesheet;
60 * @brief parse the dali JavaScript application options
61 * The options are passed to dali when require is called.
62 * E.g. var dali.require('dali.js)( {options object} )
64 * @param[in] args JavaScript arguments
65 * @param[out] options assigned Dali options
66 * @return true on success, false on failure
69 bool GetApplicationOptions( const v8::FunctionCallbackInfo<v8::Value>& args, ApplicationOptions& options );
72 } // namespace DaliNodeAddon
76 #endif // __DALI_JAVASCRIPT_APPLICATION_OPTIONS_H__