Add GetSpanType API Add GetSpanType and SpanType enum This API help casting from BaseSpan to one of sub classes Change-Id: I75399a5dfba6d74148951fdd14b57889b86c738f
Spannable: Add StrikethroughSpan StrikethroughSpan: Span to change the strikethrough properties (Color,Heighth) of characters This patch should be preceded by the patch below: https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/285217 Change-Id: Id7823ea49b19fed3ae1a0a9a73e55538ccd2ad2e
Spannable: Add BackgroundSpan BackgroundSpan: Span to change the back groundSpan of characters. Example: =========================================================================================== Dali::Toolkit::Text::SpannableString ss = Dali::Toolkit::Text::SpannableString::New("Testing"); auto greenSpan = Dali::Toolkit::Text::BackgroundColorSpan::New(Color::GREEN); ss.AttachSpan( greenSpan, Dali::Toolkit::Text::Range::New(0u, 3u)); Dali::Toolkit::Text::SetSpannedText(textLabel,ss); ========================================================================================== Change-Id: I3f5414ee5268799ad8e174db4b693c70f4b9b1b3
Spannable: Add ItalicSpan ItalicSpan: Span to change the font slant of characters. Example: =========================================================================================== Dali::Toolkit::Text::SpannableString ss = Dali::Toolkit::Text::SpannableString::New("Testing italic span"); auto italicSpan =Dali::Toolkit::Text::ItalicSpan::New(); ss.AttachSpan(italicSpan,Dali::Toolkit::Text::Range::New(0u, 8u)); Dali::Toolkit::Text::SetSpannedText(textLabel,ss); ========================================================================================== Change-Id: I9832203ed07433be292ca2dc66d82899ced288ce
Spannable: Add BoldSpan BoldSpan: Span to change the font weight of characters. Example: =========================================================================================== Dali::Toolkit::Text::SpannableString ss =Dali::Toolkit::Text::SpannableString::New("Testing"); auto boldspan =Dali::Toolkit::Text::BoldSpan::New(); ss.AttachSpan(boldspan,Dali::Toolkit::Text::Range::New(0u, 3u)); Dali::Toolkit::Text::SetSpannedText(textLabel,ss); =========================================================================================== Change-Id: I583648a7bb850ec36b3dd4ade3d84995113d192f
Spannable: Add CharacterSpacing span Change-Id: Ie9a6245719c5dced94d4e43599cfc54588126a0d
Spannable: Add UnderlineSpan UnderlineSpan: Span to change the underline properties (Type, Color,Height, DashGap and DashWidth) of characters This patch should be preceded by the patch below: https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/285217 Change-Id: Ia557197b60031a559021b72372ef304195505537
Spannable: Add FontSpan FontSpan: Span to change the font properties (FamilyName, Size, Weight, Slant and Width) of characters This patch should be preceded by the patch below: https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/285133 Change-Id: I1b85d77ba214b1c37737a435b021f37bb095fd8b
Spannable-Core: Add SetSpannedText API Copy text from Spanned-Text into TextController and apply styles on it. void SetSpannedText(TextController textController, const Spanned& spannedText); TextController: TextLabel, TextEditor or TextField This patch should be preceded by the patch below: https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/282806 //Example: Dali::Toolkit::Text::SpannableString ss = Dali::Toolkit::Text::SpannableString::New("Hello مرحبا"); auto isAddedBlue = ss.AttachSpan( Dali::Toolkit::Text::ForegroundColorSpan::New(Color::BLUE), Dali::Toolkit::Text::Range::New(2u, 4u)); Dali::Toolkit::Text::SetSpannedText(textLabel, ss); Change-Id: I03202eb27376d78403050a284a1448f01c4ac120
Spannable-Core: Add SpannableString and ForegroundColorSpan Create core module for Spannable - Interfaces: CharacterSequence, Spanned, Spannable, BaseSpan - Classes: SpannableString, ForegroundColorSpan, Range - APIs: - Vector<uint32_t> GetCharacters() const; - uint32_t GetNumberOfCharacters() const; - std::string ToString() const; - bool AttachSpan(const Dali::Toolkit::Text::BaseSpan& styleSpan, const Dali::Toolkit::Text::Range& range); - bool DetachSpan(const Dali::Toolkit::Text::BaseSpan& styleSpan); - std::vector<Dali::Toolkit::Text::BaseSpan> GetAllSpans() const; - void RetrieveAllSpansAndRanges(std::vector<Dali::Toolkit::Text::BaseSpan>& spans, std::vector<Dali::Toolkit::Text::Range>& ranges) const; //Example: Dali::Toolkit::Text::SpannableString ss = Dali::Toolkit::Text::SpannableString::New("Hello مرحبا"); auto chars = ss.GetCharacters(); auto num = ss.GetNumberOfCharacters(); auto str = ss.ToString(); auto greenSpan = Dali::Toolkit::Text::ForegroundColorSpan::New(Color::GREEN); auto isAddedGreen = ss.AttachSpan( greenSpan, Dali::Toolkit::Text::Range::New(5u, 7u)); auto isAddedBlue = ss.AttachSpan( Dali::Toolkit::Text::ForegroundColorSpan::New(Color::BLUE), Dali::Toolkit::Text::Range::New(4u, 2u)); auto isAddedRed = ss.AttachSpan( Dali::Toolkit::Text::ForegroundColorSpan::New(Color::RED), Dali::Toolkit::Text::Range::New(15u, 2u)); ss.DetachSpan(greenSpan); auto spans = ss.GetAllSpans(); ss.DetachSpan(spans[0]); spans = ss.GetAllSpans(); Change-Id: I5e0df43d1a2e2afc8b11aa61d50e28b7e35036a4
Add GetLineBoundingRectangle API. Calculate the line size and position: - X, the left starting point of the line. - Y, the left top point of the line. - Width. - Height. Function prototype: GetLineBoundingRectangle(ModelPtr model, uint32_t lineIndex); Add new API to TextGeometry. Reference patches: https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/266891 Change-Id: I742a44bd406bc13d1c3ec35bce3049b467d21962
Make web engine context be a singleton. Change-Id: I602af540c5d8f475ebd18c3ba3e8ff5460dfc45d
Refactorying code related to broken image - Use default broken image when the url of custom broken is invalid - Create a npatch-helper for merging npatch code Change-Id: I21f33392f864996e8419715b40e66a5d16eccb6a
[AT-SPI] Synchronize with AT-SPI cleanup in dali-adaptor A related dali-adaptor change adds const-correctness and introduces a new, more coherent naming convention for Accessible objects. The name ControlAccessible now matches ApplicationAccessible, ProxyAccessible etc. and the upcoming ActorAccessible. Change-Id: I63a6887e1c291fbfb475fd8c2384126a31981d6b
[ATSPI] Implementation of Hypertext and Hyperlink in text controls This patch exposes on dbus ATSPI Hypertext interface for the following text controls: TextEditor, TextField and TextLabel. Also it brings new class TextAnchor inheriting from Control which marks the geometry of an anchor inside the text controls mentioned above and which exposes on dbus ATSPI Hyperlink interface. Change-Id: Ic46bcf7a3ddfe49b1723ebf8025fba6779fda05d
Refactoring VisualActions Change-Id: Id56e3a5e5910b2fbbb8428abd96897d7bcd10ae1 Signed-off-by: seungho <sbsh.baek@samsung.com>
Implement FocusFinder The class used for finding the next focusable actor in a given direction from a actor that currently has focus. Change-Id: If5d5eed2599f3d95a0757b855e420e4edd186756
Add APIs for hit test in web view. This patch is to add some APIs for hit test into web view. Meanwhile WebFormRepostDecision is removed. Change-Id: I54fbb798f36ea6eaab197d993b2691ddfdc20a32
Merge "Add APIs of webview back forward list" into devel/master
Support anchor to TextLabel, TextField, TextEditor example: <a href='https://wwww.tizen.org'>TIZEN</a> using AnchorClickedSignal(), users can get the anchor's href when clicking on the anchor. Change-Id: I1c61c285c95295aea3c27de2bedd586211a0f036 Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>