BackgroundColorSpan::~BackgroundColorSpan() = default;
//Methods
-const Vector4 BackgroundColorSpan::GetBackgroundColor() const
+Vector4 BackgroundColorSpan::GetBackgroundColor() const
{
return GetImplementation(*this).GetBackgroundColor();
}
*
* @return A background-color value.
*/
- const Vector4 GetBackgroundColor() const;
+ Vector4 GetBackgroundColor() const;
/**
* @brief Retrieve whether the background-color is defined.
return BaseSpan(dynamic_cast<Dali::Toolkit::Text::Internal::BaseSpan*>(handle.GetObjectPtr()));
}
-const Dali::Toolkit::Text::SpanType::Value BaseSpan::GetSpanType() const
+Dali::Toolkit::Text::SpanType::Value BaseSpan::GetSpanType() const
{
return GetImplementation(*this).GetSpanType();
}
*
* @return A span type value.
*/
- const Dali::Toolkit::Text::SpanType::Value GetSpanType() const;
+ Dali::Toolkit::Text::SpanType::Value GetSpanType() const;
/**
* @brief Downcasts to a BaseSpan handle.
CharacterSpacingSpan::~CharacterSpacingSpan() = default;
//Methods
-const float CharacterSpacingSpan::GetCharacterSpacing() const
+float CharacterSpacingSpan::GetCharacterSpacing() const
{
return GetImplementation(*this).GetCharacterSpacing();
}
*
* @return A CharacterSpacing value.
*/
- const float GetCharacterSpacing() const;
+ float GetCharacterSpacing() const;
/**
* @brief Retrieve whether the CharacterSpacing is defined.
return GetImplementation(*this).IsFamilyNameDefined();
}
-const Dali::TextAbstraction::FontWeight::Type FontSpan::GetWeight() const
+Dali::TextAbstraction::FontWeight::Type FontSpan::GetWeight() const
{
return GetImplementation(*this).GetWeight();
}
return GetImplementation(*this).IsWeightDefined();
}
-const Dali::TextAbstraction::FontWidth::Type FontSpan::GetWidth() const
+Dali::TextAbstraction::FontWidth::Type FontSpan::GetWidth() const
{
return GetImplementation(*this).GetWidth();
}
return GetImplementation(*this).IsWidthDefined();
}
-const Dali::TextAbstraction::FontSlant::Type FontSpan::GetSlant() const
+Dali::TextAbstraction::FontSlant::Type FontSpan::GetSlant() const
{
return GetImplementation(*this).GetSlant();
}
return GetImplementation(*this).IsSlantDefined();
}
-const float FontSpan::GetSize() const
+float FontSpan::GetSize() const
{
return GetImplementation(*this).GetSize();
}
*
* @return A font weight value.
*/
- const Dali::TextAbstraction::FontWeight::Type GetWeight() const;
+ Dali::TextAbstraction::FontWeight::Type GetWeight() const;
/**
* @brief Retrive the font width.
*
* @return A font width value.
*/
- const Dali::TextAbstraction::FontWidth::Type GetWidth() const;
+ Dali::TextAbstraction::FontWidth::Type GetWidth() const;
/**
* @brief Retrive the font slant.
*
* @return A font slant value.
*/
- const Dali::TextAbstraction::FontSlant::Type GetSlant() const;
+ Dali::TextAbstraction::FontSlant::Type GetSlant() const;
/**
* @brief Retrive the font size.
*
* @return A font size value.
*/
- const float GetSize() const;
+ float GetSize() const;
/**
* @brief Retrieve whether the font family name is defined.
ForegroundColorSpan::~ForegroundColorSpan() = default;
//Methods
-const Vector4 ForegroundColorSpan::GetForegroundColor() const
+Vector4 ForegroundColorSpan::GetForegroundColor() const
{
return GetImplementation(*this).GetForegroundColor();
}
*
* @return A foreground-color value.
*/
- const Vector4 GetForegroundColor() const;
+ Vector4 GetForegroundColor() const;
/**
* @brief Retrieve whether the foreground-color is defined.
/**
* @brief Enumeration for type of the span.
*/
-enum class Value : uint8_t
+enum Value : uint8_t
{
BASE = 0,
FOREGROUND_COLOR,
UNDERLINE,
STRIKETHROUGH,
CHARACTER_SPACING
-
};
} // namespace SpanType
StrikethroughSpan::~StrikethroughSpan() = default;
//Methods
-const Vector4 StrikethroughSpan::GetColor() const
+Vector4 StrikethroughSpan::GetColor() const
{
return GetImplementation(*this).GetColor();
}
return GetImplementation(*this).IsColorDefined();
}
-const float StrikethroughSpan::GetHeight() const
+float StrikethroughSpan::GetHeight() const
{
return GetImplementation(*this).GetHeight();
}
*
* @return A color value.
*/
- const Vector4 GetColor() const;
+ Vector4 GetColor() const;
/**
* @brief Retrieve whether the color is defined.
*
* @return A height value.
*/
- const float GetHeight() const;
+ float GetHeight() const;
/**
* @brief Retrieve whether the height is defined.
//Methods
-const Text::Underline::Type UnderlineSpan::GetType() const
+Text::Underline::Type UnderlineSpan::GetType() const
{
return GetImplementation(*this).GetType();
}
return GetImplementation(*this).IsTypeDefined();
}
-const Vector4 UnderlineSpan::GetColor() const
+Vector4 UnderlineSpan::GetColor() const
{
return GetImplementation(*this).GetColor();
}
return GetImplementation(*this).IsColorDefined();
}
-const float UnderlineSpan::GetHeight() const
+float UnderlineSpan::GetHeight() const
{
return GetImplementation(*this).GetHeight();
}
return GetImplementation(*this).IsHeightDefined();
}
-const float UnderlineSpan::GetDashGap() const
+float UnderlineSpan::GetDashGap() const
{
return GetImplementation(*this).GetDashGap();
}
return GetImplementation(*this).IsDashGapDefined();
}
-const float UnderlineSpan::GetDashWidth() const
+float UnderlineSpan::GetDashWidth() const
{
return GetImplementation(*this).GetDashWidth();
}
*
* @return A type value.
*/
- const Text::Underline::Type GetType() const;
+ Text::Underline::Type GetType() const;
/**
* @brief Retrieve whether the type is defined.
*
* @return A color value.
*/
- const Vector4 GetColor() const;
+ Vector4 GetColor() const;
/**
* @brief Retrieve whether the color is defined.
*
* @return A height value.
*/
- const float GetHeight() const;
+ float GetHeight() const;
/**
* @brief Retrieve whether the height is defined.
*
* @return A dash-gap value.
*/
- const float GetDashGap() const;
+ float GetDashGap() const;
/**
* @brief Retrieve whether the dash-gap is defined.
*
* @return A dash-width value.
*/
- const float GetDashWidth() const;
+ float GetDashWidth() const;
/**
* @brief Retrieve whether the dash-width is defined.
struct TextUpdater;
struct SpannableHandler;
- std::unique_ptr<Impl> mImpl;
+ std::unique_ptr<Impl> mImpl{nullptr};
};
} // namespace Dali::Toolkit::Text
}
//Methods
-const Vector4 BackgroundColorSpan::GetBackgroundColor() const
+Vector4 BackgroundColorSpan::GetBackgroundColor() const
{
return mImpl->mBackgroundColor;
}
/**
* @copydoc Dali::Toolkit::Text::BackgroundColorSpan::GetBackgroundColor()
*/
- const Vector4 GetBackgroundColor() const;
+ Vector4 GetBackgroundColor() const;
/**
* @copydoc Dali::Toolkit::Text::BackgroundColorSpan::IsBackgroundColorDefined()
{
}
-const Dali::Toolkit::Text::SpanType::Value BaseSpan::GetSpanType() const
+Dali::Toolkit::Text::SpanType::Value BaseSpan::GetSpanType() const
{
return mImpl->mSpanTypeValue;
}
* @copydoc Dali::Toolkit::Text::SpanType::Value GetSpanType
*/
- const Dali::Toolkit::Text::SpanType::Value GetSpanType() const;
+ Dali::Toolkit::Text::SpanType::Value GetSpanType() const;
public: //Methods for internal only
/**
}
//Methods
-const float CharacterSpacingSpan::GetCharacterSpacing() const
+float CharacterSpacingSpan::GetCharacterSpacing() const
{
return mImpl->mCharacterSpacing;
}
/**
* @copydoc Dali::Toolkit::Text::CharacterSpacingSpan::GetCharacterSpacing()
*/
- const float GetCharacterSpacing() const;
+ float GetCharacterSpacing() const;
/**
* @copydoc Dali::Toolkit::Text::CharacterSpacingSpan::IsCharacterSpacingDefined()
mImpl->mFamilyNameDefined = true;
}
-const Dali::TextAbstraction::FontWeight::Type FontSpan::GetWeight() const
+Dali::TextAbstraction::FontWeight::Type FontSpan::GetWeight() const
{
return mImpl->mWeight;
}
mImpl->mWeightDefined = true;
}
-const Dali::TextAbstraction::FontWidth::Type FontSpan::GetWidth() const
+Dali::TextAbstraction::FontWidth::Type FontSpan::GetWidth() const
{
return mImpl->mWidth;
}
mImpl->mWidthDefined = true;
}
-const Dali::TextAbstraction::FontSlant::Type FontSpan::GetSlant() const
+Dali::TextAbstraction::FontSlant::Type FontSpan::GetSlant() const
{
return mImpl->mSlant;
}
mImpl->mSlantDefined = true;
}
-const float FontSpan::GetSize() const
+float FontSpan::GetSize() const
{
return mImpl->mSize;
}
/**
* @copydoc Dali::Toolkit::Text::FontSpan::GetWeight()
*/
- const Dali::TextAbstraction::FontWeight::Type GetWeight() const;
+ Dali::TextAbstraction::FontWeight::Type GetWeight() const;
/**
* @copydoc Dali::Toolkit::Text::FontSpan::IsWeightDefined()
/**
* @copydoc Dali::Toolkit::Text::FontSpan::GetWidth()
*/
- const Dali::TextAbstraction::FontWidth::Type GetWidth() const;
+ Dali::TextAbstraction::FontWidth::Type GetWidth() const;
/**
* @copydoc Dali::Toolkit::Text::FontSpan::IsWidthDefined()
/**
* @copydoc Dali::Toolkit::Text::FontSpan::GetSlant()
*/
- const Dali::TextAbstraction::FontSlant::Type GetSlant() const;
+ Dali::TextAbstraction::FontSlant::Type GetSlant() const;
/**
* @copydoc Dali::Toolkit::Text::FontSpan::IsSlantDefined()
/**
* @copydoc Dali::Toolkit::Text::FontSpan::GetSize()
*/
- const float GetSize() const;
+ float GetSize() const;
/**
* @copydoc Dali::Toolkit::Text::FontSpan::IsSizeDefined()
}
//Methods
-const Vector4 ForegroundColorSpan::GetForegroundColor() const
+Vector4 ForegroundColorSpan::GetForegroundColor() const
{
return mImpl->mForegroundColor;
}
/**
* @copydoc Dali::Toolkit::Text::ForegroundColorSpan::GetForegroundColor()
*/
- const Vector4 GetForegroundColor() const;
+ Vector4 GetForegroundColor() const;
/**
* @copydoc Dali::Toolkit::Text::ForegroundColorSpan::IsForegroundColorDefined()
}
//Methods
-const Vector4 StrikethroughSpan::GetColor() const
+Vector4 StrikethroughSpan::GetColor() const
{
return mImpl->mStrikethroughProperties.color;
}
mImpl->mStrikethroughProperties.colorDefined = true;
}
-const float StrikethroughSpan::GetHeight() const
+float StrikethroughSpan::GetHeight() const
{
return mImpl->mStrikethroughProperties.height;
}
/**
* @copydoc Dali::Toolkit::Text::StrikethroughSpan::GetColor()
*/
- const Vector4 GetColor() const;
+ Vector4 GetColor() const;
/**
* @copydoc Dali::Toolkit::Text::StrikethroughSpan::IsColorDefined()
/**
* @copydoc Dali::Toolkit::Text::StrikethroughSpan::GetHeight()
*/
- const float GetHeight() const;
+ float GetHeight() const;
/**
* @copydoc Dali::Toolkit::Text::StrikethroughSpan::IsHeightDefined()
//Methods
-const Text::Underline::Type UnderlineSpan::GetType() const
+Text::Underline::Type UnderlineSpan::GetType() const
{
return mImpl->mUnderlineProperties.type;
}
mImpl->mUnderlineProperties.typeDefined = true;
}
-const Vector4 UnderlineSpan::GetColor() const
+Vector4 UnderlineSpan::GetColor() const
{
return mImpl->mUnderlineProperties.color;
}
mImpl->mUnderlineProperties.colorDefined = true;
}
-const float UnderlineSpan::GetHeight() const
+float UnderlineSpan::GetHeight() const
{
return mImpl->mUnderlineProperties.height;
}
mImpl->mUnderlineProperties.heightDefined = true;
}
-const float UnderlineSpan::GetDashGap() const
+float UnderlineSpan::GetDashGap() const
{
return mImpl->mUnderlineProperties.dashGap;
}
mImpl->mUnderlineProperties.dashGapDefined = true;
}
-const float UnderlineSpan::GetDashWidth() const
+float UnderlineSpan::GetDashWidth() const
{
return mImpl->mUnderlineProperties.dashWidth;
}
/**
* @copydoc Dali::Toolkit::Text::UnderlineSpan::GetType()
*/
- const Text::Underline::Type GetType() const;
+ Text::Underline::Type GetType() const;
/**
* @copydoc Dali::Toolkit::Text::UnderlineSpan::IsTypeDefined()
/**
* @copydoc Dali::Toolkit::Text::UnderlineSpan::GetColor()
*/
- const Vector4 GetColor() const;
+ Vector4 GetColor() const;
/**
* @copydoc Dali::Toolkit::Text::UnderlineSpan::IsColorDefined()
/**
* @copydoc Dali::Toolkit::Text::UnderlineSpan::GetHeight()
*/
- const float GetHeight() const;
+ float GetHeight() const;
/**
* @copydoc Dali::Toolkit::Text::UnderlineSpan::IsHeightDefined()
/**
* @copydoc Dali::Toolkit::Text::UnderlineSpan::GetDashGap()
*/
- const float GetDashGap() const;
+ float GetDashGap() const;
/**
* @copydoc Dali::Toolkit::Text::UnderlineSpan::IsDashGapDefined()
/**
* @copydoc Dali::Toolkit::Text::UnderlineSpan::GetDashWidth()
*/
- const float GetDashWidth() const;
+ float GetDashWidth() const;
/**
* @copydoc Dali::Toolkit::Text::UnderlineSpan::IsDashWidthDefined()