#include <dali-toolkit/public-api/dali-toolkit-common.h>
#include <dali/devel-api/adaptor-framework/pixel-buffer.h>
#include <dali/devel-api/text-abstraction/text-abstraction-definitions.h>
#include <dali-toolkit/public-api/dali-toolkit-common.h>
#include <dali/devel-api/adaptor-framework/pixel-buffer.h>
#include <dali/devel-api/text-abstraction/text-abstraction-definitions.h>
- horizontalAlignment{ "begin" },
- verticalAlignment{ "top" },
+ horizontalAlignment{"begin"},
+ verticalAlignment{"top"},
- layout{ "singleLine" },
- circularAlignment{ "begin" },
- textColor{ Color::WHITE },
- fontSize{ 0.f },
- textWidth{ 0u },
- textHeight{ 0u },
- radius{ 0u },
- beginAngle{ 0.f },
- incrementAngle{ 0.f },
- ellipsisEnabled{ true },
- markupEnabled{ false },
- isTextColorSet{ false }
- {}
+ layout{"singleLine"},
+ circularAlignment{"begin"},
+ textColor{Color::WHITE},
+ fontSize{0.f},
+ textWidth{0u},
+ textHeight{0u},
+ radius{0u},
+ beginAngle{0.f},
+ incrementAngle{0.f},
+ ellipsisEnabled{true},
+ markupEnabled{false},
+ isTextColorSet{false},
+ minLineSize{0.f},
+ padding{0u, 0u, 0u, 0u}
+ {
+ }
std::string horizontalAlignment; ///< The horizontal alignment: one of {"begin", "center", "end"}.
std::string verticalAlignment; ///< The vertical alignment: one of {"top", "center", "bottom"}.
std::string horizontalAlignment; ///< The horizontal alignment: one of {"begin", "center", "end"}.
std::string verticalAlignment; ///< The vertical alignment: one of {"top", "center", "bottom"}.
std::string fontFamily; ///< The font's family.
std::string fontWeight; ///< The font's weight: one of {"thin", "ultraLight", "extraLight", "light", "demiLight", "semiLight", "book", "normal", "regular", "medium", "demiBold", "semiBold", "bold", "ultraBold", "extraBold", "black", "heavy", "extraBlack"}.
std::string fontWidth; ///< The font's width: one of {"ultraCondensed", "extraCondensed", "condensed", "semiCondensed", "normal", "semiExpanded", "expanded", "extraExpanded", "ultraExpanded"}.
std::string fontSlant; ///< The font's slant. one of {"normal", "roman", "italic", "oblique"}
std::string layout; ///< The type of layout: one of {"singleLine", "multiLine", "circular"}
std::string circularAlignment; ///< The text alignment within the arc: one of {"begin", "center", "end"}. The @p horizontalAlignment and @p verticalAlignment can be used to align the text within the text area.
std::string fontFamily; ///< The font's family.
std::string fontWeight; ///< The font's weight: one of {"thin", "ultraLight", "extraLight", "light", "demiLight", "semiLight", "book", "normal", "regular", "medium", "demiBold", "semiBold", "bold", "ultraBold", "extraBold", "black", "heavy", "extraBlack"}.
std::string fontWidth; ///< The font's width: one of {"ultraCondensed", "extraCondensed", "condensed", "semiCondensed", "normal", "semiExpanded", "expanded", "extraExpanded", "ultraExpanded"}.
std::string fontSlant; ///< The font's slant. one of {"normal", "roman", "italic", "oblique"}
std::string layout; ///< The type of layout: one of {"singleLine", "multiLine", "circular"}
std::string circularAlignment; ///< The text alignment within the arc: one of {"begin", "center", "end"}. The @p horizontalAlignment and @p verticalAlignment can be used to align the text within the text area.
- float beginAngle; ///< The begin angle in degrees of the text area on the circle. The top of the circle is 0°, the right side 90°, the bottom 180° and the left 270°.
- float incrementAngle; ///< The increment angle in degrees of the text area on the circle. The @p incrementAngle defines a direction. If positive, the text will be laid out clockwise.
-
- bool ellipsisEnabled:1; ///< Whether the ellipsis layout option is enabled.
- bool markupEnabled:1; ///< Whether the mark-up processor is enabled.
- bool isTextColorSet:1; ///< Whether a default color has been set.
+ float beginAngle; ///< The begin angle in degrees of the text area on the circle. The top of the circle is 0°, the right side 90°, the bottom 180° and the left 270°.
+ float incrementAngle; ///< The increment angle in degrees of the text area on the circle. The @p incrementAngle defines a direction. If positive, the text will be laid out clockwise.
+ //
+ bool ellipsisEnabled : 1; ///< Whether the ellipsis layout option is enabled.
+ bool markupEnabled : 1; ///< Whether the mark-up processor is enabled.
+ bool isTextColorSet : 1; ///< Whether a default color has been set.
+ //
+ float minLineSize; ///< The line's minimum size (in points).
+
+ Extents padding; ///< The padding of the boundaries where the text is going to be laid-out.
- TextAbstraction::CharacterIndex characterIndex; ///< Index to the character within the string.
- TextAbstraction::GlyphIndex glyphIndex; ///< Index to the glyph
- Vector2 position; ///< The layout position within the buffer (top, left corner).
- Size size; ///< The size within the buffer of the embedded item.
- Size rotatedSize; ///< The rotated size within the buffer of the embedded item.
- Degree angle; ///< Rotation angle of the pixel buffer in degrees.
+ TextAbstraction::CharacterIndex characterIndex; ///< Index to the character within the string.
+ TextAbstraction::GlyphIndex glyphIndex; ///< Index to the glyph
+ Vector2 position; ///< The layout position within the buffer (top, left corner).
+ Size size; ///< The size within the buffer of the embedded item.
+ Size rotatedSize; ///< The rotated size within the buffer of the embedded item.
+ Degree angle; ///< Rotation angle of the pixel buffer in degrees.
- Devel::PixelBuffer input; ///< The input pixel buffer used to create the shadow.
- Vector4 textColor; ///< The color of the text.
- Vector4 color; ///< The color of the shadow.
- Vector2 offset; ///< The offset of the shadow.
- bool blendShadow; ///< Whether to blend the shadow.
+ Devel::PixelBuffer input; ///< The input pixel buffer used to create the shadow.
+ Vector4 textColor; ///< The color of the text.
+ Vector4 color; ///< The color of the shadow.
+ Vector2 offset; ///< The offset of the shadow.
+ bool blendShadow; ///< Whether to blend the shadow.
-DALI_TOOLKIT_API void UpdateBuffer( Devel::PixelBuffer src, Devel::PixelBuffer dst, unsigned int x, unsigned int y, bool blend);
+DALI_TOOLKIT_API void UpdateBuffer(Devel::PixelBuffer src, Devel::PixelBuffer dst, unsigned int x, unsigned int y, bool blend);