1 #ifndef DALI_COLOR_CONTROLLER_PLUGIN_H
2 #define DALI_COLOR_CONTROLLER_PLUGIN_H
5 * Copyright (c) 2020 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.
27 * @brief ColorControllerPlugin is an abstract interface, used by dali-adaptor to access Color Controller plugin.
28 * A concrete implementation must be created for each platform and provided as dynamic library.
30 class ColorControllerPlugin
36 ColorControllerPlugin()
43 virtual ~ColorControllerPlugin()
48 * @brief Retrieve the RGBA value by given the color code.
50 * @param[in] colorCode The color code string.
51 * @param[out] colorValue The RGBA color
52 * @return true if the color code exists, otherwise false
54 virtual bool RetrieveColor(const std::string& colorCode, Vector4& colorValue) const = 0;
57 * @brief Retrieve the RGBA value by given the color code.
59 * @param[in] colorCode The color code string.
60 * @param[out] textColor The text color.
61 * @param[out] textOutlineColor The text outline color.
62 * @param[out] textShadowColor The text shadow color.
63 * @return true if the color code exists, otherwise false
65 virtual bool RetrieveColor(const std::string& colorCode, Vector4& textColor, Vector4& textOutlineColor, Vector4& textShadowColor) const = 0;
70 #endif // DALI_COLOR_CONTROLLER_PLUGIN_H