X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fstyling%2Fstyle-manager-devel.h;h=f1e05d7fc04da2016ce9f41a958ab24113df8aa9;hb=refs%2Fchanges%2F72%2F260572%2F28;hp=ab00ee390aeb8f83bbe77ab4644c10fbaa1af7b4;hpb=e40f95b837ab8e9f1ce9094ebf4e6ac781e7bf6f;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/styling/style-manager-devel.h b/dali-toolkit/devel-api/styling/style-manager-devel.h index ab00ee3..f1e05d7 100644 --- a/dali-toolkit/devel-api/styling/style-manager-devel.h +++ b/dali-toolkit/devel-api/styling/style-manager-devel.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_STYLE_MANAGER_DEVEL_H /* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,13 +23,21 @@ namespace Dali { - namespace Toolkit { - namespace DevelStyleManager { +/** + * @brief The Type of BrokenImage + */ +enum class BrokenImageType +{ + SMALL, + NORMAL, + LARGE +}; +using BrokenImageChangedSignalType = Signal; /** * @brief Gets all currently defined configurations. @@ -38,7 +46,44 @@ namespace DevelStyleManager * @param[in] styleManager The instance of StyleManager * @return A property map to the currently defined configurations **/ -DALI_TOOLKIT_API const Property::Map GetConfigurations( StyleManager styleManager ); +DALI_TOOLKIT_API const Property::Map GetConfigurations(StyleManager styleManager); + +/** + * @brief Sets an image to be used when a visual has failed to correctly render + * @param[in] styleManager The instance of StyleManager + * @param[in] brokenImageType The type of broken image + * @param[in] brokenImageUrl The broken image url + */ +DALI_TOOLKIT_API void SetBrokenImageUrl(StyleManager styleManager, DevelStyleManager::BrokenImageType brokenImageType, const std::string& brokenImageUrl); + +/** + * @brief Gets an image to be used when a visual has failed to correctly render + * @param[in] styleManager The instance of StyleManager + * @param[in] brokenImageType BrokenImage type + */ +DALI_TOOLKIT_API std::string GetBrokenImageUrl(StyleManager styleManager, DevelStyleManager::BrokenImageType brokenImageType); + +/** + * @brief Get the Broken Image Url List + * + * This list is broken images stored in order of SMALL, NORMAL, and LARGE values except if the value is empty. + * This API just makes the list without comparing size, so the application must set a value that matches the size. + * @param styleManager The instance of StyleManager + * @return A List of Broken Image Url + */ +DALI_TOOLKIT_API std::vector GetBrokenImageUrlList(StyleManager styleManager); + +/** + * @brief This signal is emitted when the URL of the broken image is set + * + * A callback of the following type may be connected: + * @code + * void YourCallbackName(StyleManager styleManager) + * @endcode + * @param styleManager The instance of StyleManager + * @return The signal to connect to + */ +DALI_TOOLKIT_API BrokenImageChangedSignalType& BrokenImageChangedSignal(StyleManager styleManager); } // namespace DevelStyleManager