Merge "Add WebView SetTtsFocus" into devel/master
[platform/core/uifw/dali-toolkit.git] / dali-scene-loader / public-api / parse-renderer-state.h
1 #ifndef DALI_SCENE_LOADER_INTERPRET_RENDERER_STATE_H
2 #define DALI_SCENE_LOADER_INTERPRET_RENDERER_STATE_H
3 /*
4  * Copyright (c) 2021 Samsung Electronics Co., Ltd.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19
20 #include "dali-scene-loader/public-api/renderer-state.h"
21 #include "dali-scene-loader/public-api/string-callback.h"
22
23 namespace Dali
24 {
25 namespace SceneLoader
26 {
27 namespace RendererState
28 {
29 /*
30  * @brief Attempts to interpret a string for renderer states, which can be a combination of the following
31  *  (using '|' as a delimiter, if multiple specified):<br/>
32  *  - one of Value, exc. for NONE or those with the _BITS, _SHIFT, _MASK or _ITEMS suffix;<br/>
33  *  - DEPTH_FUNC:${one of Comparison::Type, exc. OMIT};<br/>
34  *  - BLEND_(SRC_DST)_(RGB|ALPHA):${one of BlendFactor::Type, exc. OMIT};<br/>
35  *  - BUFFER_MODE:${one of BufferMode::Type, exc. OMIT};
36  * @param string The string to parse;
37  * @param length The length of the string; If left at 0, strlen() will be called, which of
38  *   course is only suitable i the string is null-terminated.
39  * @param onError The callback to call when an error occurred.
40  * @note No other characters are allowed.
41  */
42 DALI_SCENE_LOADER_API Type Parse(const char* string, size_t length = 0, StringCallback onError = DefaultErrorCallback);
43
44 } // namespace RendererState
45 } // namespace SceneLoader
46 } // namespace Dali
47
48 #endif //DALI_SCENE_LOADER_INTERPRET_RENDERER_STATE_H