#define DALI_VECTOR_ANIMATION_RENDERER_H
/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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.
{
public:
+ /// @brief UploadCompleted signal type.
+ using UploadCompletedSignalType = Signal< void () >;
+
/**
* @brief Creates an initialized handle to a new VectorAnimationRenderer.
*
void SetSize( uint32_t width, uint32_t height );
/**
- * @brief Starts the rendering.
- *
- * @return True if the renderer is successfully started, false otherwise.
- */
- bool StartRender();
-
- /**
- * @brief Stops the rendering.
- */
- void StopRender();
-
- /**
* @brief Renders the content to the target buffer synchronously.
*
* @param[in] frameNumber The frame number to be rendered
+ * @return True if the rendering success, false otherwise.
*/
- void Render( uint32_t frameNumber );
+ bool Render( uint32_t frameNumber );
/**
* @brief Gets the total number of frames of the file
*/
float GetFrameRate() const;
+ /**
+ * @brief Gets the default size of the file,.
+ *
+ * @return The default size of the file
+ */
+ void GetDefaultSize( uint32_t& width, uint32_t& height ) const;
+
public: // Signals
+ /**
+ * @brief Connect to this signal to be notified when the texture upload is completed.
+ *
+ * @return The signal to connect to.
+ */
+ UploadCompletedSignalType& UploadCompletedSignal();
+
public: // Not intended for application developers
/// @cond internal