X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Frendering%2Ftext-backend.h;h=926ecd3eef486de8551c0e3cd3fe2215dc4a99d4;hp=62b9f86ce9db589e9445240a03c6f7e94dde9f6a;hb=HEAD;hpb=eea53605c5acb244aebb72d75bdd9b3a68a9678a diff --git a/dali-toolkit/internal/text/rendering/text-backend.h b/dali-toolkit/internal/text/rendering/text-backend.h index 62b9f86..733e688 100644 --- a/dali-toolkit/internal/text/rendering/text-backend.h +++ b/dali-toolkit/internal/text/rendering/text-backend.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_TEXT_BACKEND_H__ -#define __DALI_TOOLKIT_TEXT_BACKEND_H__ +#ifndef DALI_TOOLKIT_TEXT_BACKEND_H +#define DALI_TOOLKIT_TEXT_BACKEND_H /* - * Copyright (c) 2015 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. @@ -26,32 +26,21 @@ namespace Dali { - namespace Toolkit { - namespace Text { - namespace Internal DALI_INTERNAL { class Backend; } -// The type of text renderer required -enum RenderingType -{ - RENDERING_BASIC, ///< A bitmap-based reference implementation - RENDERING_SHARED_ATLAS ///< A bitmap-based solution where renderers can share a texture atlas -}; - /** * @brief Provides access to different text rendering backends. */ -class DALI_IMPORT_API Backend : public BaseHandle +class Backend : public BaseHandle { public: - /** * @brief Retrieve a handle to the Backend instance. * @@ -65,7 +54,7 @@ public: * @param[in] renderingType The type of rendering required. * @return A handle to the newly created renderer. */ - RendererPtr NewRenderer( unsigned int renderingType ); + RendererPtr NewRenderer(unsigned int renderingType); /** * @brief Create an uninitialized TextAbstraction handle. @@ -84,7 +73,7 @@ public: * * @param[in] handle A reference to the copied handle. */ - Backend( const Backend& handle ); + Backend(const Backend& handle); /** * @brief This assignment operator is required for (smart) pointer semantics. @@ -92,16 +81,30 @@ public: * @param [in] handle A reference to the copied handle. * @return A reference to this. */ - Backend& operator=( const Backend& handle ); + Backend& operator=(const Backend& handle); -public: // Not intended for application developers + /** + * @brief This move constructor is required for (smart) pointer semantics. + * + * @param[in] handle A reference to the moved handle. + */ + Backend(Backend&& handle); + + /** + * @brief This move assignment operator is required for (smart) pointer semantics. + * + * @param [in] handle A reference to the moved handle. + * @return A reference to this. + */ + Backend& operator=(Backend&& handle); +public: // Not intended for application developers /** * @brief This constructor is used by Backend::Get(). * * @param[in] backend A pointer to the internal backend object. */ - explicit DALI_INTERNAL Backend( Internal::Backend* backend ); + explicit DALI_INTERNAL Backend(Internal::Backend* backend); }; } // namespace Text @@ -110,4 +113,4 @@ public: // Not intended for application developers } // namespace Dali -#endif // __DALI_TOOLKIT_TEXT_BACKEND_H__ +#endif // DALI_TOOLKIT_TEXT_BACKEND_H