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