Merge "Updated patch coverage script." 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) 2020 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 /*
31  * @brief Attempts to interpret a string for renderer states, which can be a combination of the following
32  *  (using '|' as a delimiter, if multiple specified):<br/>
33  *  - one of Value, exc. for NONE or those with the _BITS, _SHIFT, _MASK or _ITEMS suffix;<br/>
34  *  - DEPTH_FUNC:${one of Comparison::Type, exc. OMIT};<br/>
35  *  - BLEND_(SRC_DST)_(RGB|ALPHA):${one of BlendFactor::Type, exc. OMIT};<br/>
36  *  - BUFFER_MODE:${one of BufferMode::Type, exc. OMIT};
37  * @param string The string to parse;
38  * @param length The length of the string; If left at 0, strlen() will be called, which of
39  *   course is only suitable i the string is null-terminated.
40  * @param onError The callback to call when an error occurred.
41  * @note No other characters are allowed.
42  */
43 DALI_SCENE_LOADER_API Type Parse(const char* string, size_t length = 0, StringCallback onError = DefaultErrorCallback);
44
45 }
46 }
47 }
48
49 #endif //DALI_SCENE_LOADER_INTERPRET_RENDERER_STATE_H