#define DALI_TOOLKIT_INTERNAL_VISUAL_H
/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
*
* @param[in] preMultiplied whether alpha is pre-multiplied.
*/
- void EnablePreMultipliedAlpha(bool preMultiplied);
+ virtual void EnablePreMultipliedAlpha(bool preMultiplied);
/**
* @brief Query whether alpha is pre-multiplied.
Renderer GetRenderer();
/**
+ * Convert all string keys to int keys
+ * @param[in] key The key to convert
+ * @return the index key supplied or matching, or INVALID_INDEX if no match
+ */
+ static Property::Index GetIntKey(Property::Key key);
+
+ /**
* Sets the mix color ( including opacity ) of the visual.
* @param[in] mixColor The new mix color
*/
void ResourceReady(Toolkit::Visual::ResourceStatus resourceStatus);
/**
- * @brief Called when the visuals resources are loaded / ready
- * @return true if ready, false otherwise
+ * @brief Called when the visuals resources are loaded / ready or failed (mean, broken image ready)
+ * @return true if ready or failed (mean, broken image ready), false otherwise
*/
virtual bool IsResourceReady() const;
void RegisterMixColor();
/**
+ * Register the uniform on the DecoratedVisualRenderer and store the property index if necessary.
+ */
+ void RegisterDecoration();
+
+ /**
* Find the matching property on the renderer or shader. If it's a shader
* property, register it on the renderer in order to animate it for this
* visual independently.