X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-enumerations-impl.h;h=af71f7de6791a8b43789dc5d94ba2e4d83ee472f;hp=61428fad6aa901adc3ab10590928498a41b7da20;hb=00758f1301dd0bfbf6dc87659a6db9d0ba2c6816;hpb=9637b6f3d8d77b6ccb1cff1e0ec5a0d37e82b2ea diff --git a/dali-toolkit/internal/text/text-enumerations-impl.h b/dali-toolkit/internal/text/text-enumerations-impl.h index 61428fa..af71f7d 100644 --- a/dali-toolkit/internal/text/text-enumerations-impl.h +++ b/dali-toolkit/internal/text/text-enumerations-impl.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_TEXT_ENUMERATION_IMPL_H /* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 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. @@ -24,22 +24,21 @@ // INTERNAL INCLUDES #include +// DEVEL INCLUDES +#include namespace Dali { - namespace Toolkit { - namespace Text { - /** * @brief Get the alignment from the provided property value. * @param[in] propertyValue The source value (which can be a Property::INTEGER or Property::STRING type) * @param[out] alignment The resulting alignment from the given source * @return true if the resulting alignment has been updated */ -bool GetHorizontalAlignmentEnumeration( const Property::Value& propertyValue, Toolkit::Text::HorizontalAlignment::Type& alignment ); +bool GetHorizontalAlignmentEnumeration(const Property::Value& propertyValue, Toolkit::Text::HorizontalAlignment::Type& alignment); /** * @brief Get the alignment from the provided property value. @@ -47,7 +46,7 @@ bool GetHorizontalAlignmentEnumeration( const Property::Value& propertyValue, To * @param[out] alignment The resulting alignment from the given source * @return true if the resulting alignment has been updated */ -bool GetVerticalAlignmentEnumeration( const Property::Value& propertyValue, Toolkit::Text::VerticalAlignment::Type& alignment ); +bool GetVerticalAlignmentEnumeration(const Property::Value& propertyValue, Toolkit::Text::VerticalAlignment::Type& alignment); /** * @brief Get the line-wrap-mode from the provided property value. @@ -55,21 +54,29 @@ bool GetVerticalAlignmentEnumeration( const Property::Value& propertyValue, Tool * @param[out] alignment The resulting lineWrapMode from the given source * @return true if the resulting lineWrapMode has been updated */ -bool GetLineWrapModeEnumeration( const Property::Value& propertyValue, Toolkit::Text::LineWrap::Mode& lineWrapMode ); +bool GetLineWrapModeEnumeration(const Property::Value& propertyValue, Toolkit::Text::LineWrap::Mode& lineWrapMode); /** * @brief Get the alignment string from the provided alignment string. * @param[in] alignment the Text::HORIZONTAL enum source * @return the string equivalent */ -const char* GetHorizontalAlignmentString( const Toolkit::Text::HorizontalAlignment::Type& alignment ); +const char* GetHorizontalAlignmentString(const Toolkit::Text::HorizontalAlignment::Type& alignment); /** * @brief Get the alignment string from the provided alignment string. * @param[in] alignment the Text::VerticalAlignment enum source * @return the string equivalent */ -const char* GetVerticalAlignmentString( const Toolkit::Text::VerticalAlignment::Type& alignment ); +const char* GetVerticalAlignmentString(const Toolkit::Text::VerticalAlignment::Type& alignment); + +/** + * @brief Get the ellipsis-location-type from the provided property value. + * @param[in] propertyValue The source value (which can be a Property::INTEGER or Property::STRING type) + * @param[out] ellipsisPositionType The resulting ellipsisPositionType from the given source + * @return true if the resulting ellipsisPositionType has been updated + */ +bool GetEllipsisPositionTypeEnumeration(const Property::Value& propertyValue, Toolkit::DevelText::EllipsisPosition::Type& ellipsisPositionType); } // namespace Text