The canvas view defaults to SYNCHRONOUS_LOADING. A crash occurs when multiple CanvasViews are operated async. So, we change it to operate synchronously by default. The problem of async operation when using a multi-canvas view should be resolved later. Change-Id: I9bb4c8165b69ebdd93753211214fcadf06a3f456
Introduce REMOVE_FRONT_INSET, REMOVE_BACK_INSET Property Added new property to TextLabel Example: textLabel.SetProperty(DevelTextLabel::Property::REMOVE_FRONT_INSET, false); textLabel.SetProperty(DevelTextLabel::Property::REMOVE_BACK_INSET, false); When REMOVE_FRONT_INSET is set to false, the xBearing of first glyph won't be trimmed. When REMOVE_BACK_INSET is set to false, the advance of last glyph won't be trimmed. Change-Id: I169d87b9f83d3b204ea51601188982cda54cb9d0
Add AnchorColor Property AnchorColor(or AnchorClickedColor) property is used as the default color of the markup anchor tag. If there is a color attribute in the markup anchor tag, the markup attribute takes precedence. Change-Id: Idc938495036319f74764b9ddadc2441d46eed159 Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
(A11y) Connect PropertySet signal only if highlighed Notify when ACCESSIBILITY_NAME or ACCESSIBILITY_DESCRIPTION changed cases are only need for highlighted control. So let we ensure to connect property set signal only if control has ben grabed at least one time. It will be useful when never be highlighted Actor's Accessible creation / destruct time. Change-Id: I0c719a4576d02db9914a0e7b53a266ba4845cee2 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Allow bitmap 6byte utf8 glyph + Ignore build warning The new warning option -Wstringop-overflow occured when we convert from std::string to utf8 buffer. Also, current dali support maximum 6 bytes utf8 glyph. Let we also support them for BitmapFont case. Change-Id: I3cc1f20145fa7be9071de3048d7d242cb6273bd8 Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
(A11y) Let we make some way to do not create new Accessible Add some API that we will not create new Accessible() object anymore. It will be useful when we ignore some Disposed view's accessible action. Change-Id: I6186f95eacf3c7d3cdb9c4ff9543edc019096552 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
(AnimatedVector) Get marker informations Let we make API to get marker informations from json file. Marker information contains name, and pair of frame, start and end. Change-Id: I21b91368addff66d41a66c14fc8e86076470ddc7 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Destroy removal visuals after idler There was some bug when visual destructor called during it's emit ResourceReady. To avoid this case, Let we keep visuals more long term, and Discard + Destroy after some idler called. To avoid multiple Idler callback register, let we make that idler callback in VisualFactory. Change-Id: Id47083b158f91bb81666d6f2100811dedb0d70f1 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Keep reference when member callback excute + Make NPatchData as RefObject Some CallbackBase didn't hold the reference of itself. So it was possible to call destructor of itself during it's API was running. It might makes some unknown issues. So let we keep reference for some issue-comes known APIs : SvgVisual, NPatchData, and lottie It future, we should discard visuals rather than delate it directly. Change-Id: Ibeab31bc309869aa7c2ee65cbff8789e7bb2a721 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Add TextFitArray to text label Add a new function to satisfy the UX that operates TextFit by considering the PointSize and MinLineSize of the text. For example, TextFit should be able to find the one that fits among [PointSize 24 + MinLineSize 40] or [PointSize 28 + MinLineSize 44]. But the previous TextFit only considers PointSize. TextFitArray can solve this problem, and this implemented it to respond to additional requirements without modifying the API. Simple usage: std::vector<DevelTextLabel::FitOption> fitOptions; fitOptions.push_back(DevelTextLabel::FitOption(24, 40)); fitOptions.push_back(DevelTextLabel::FitOption(28, 44)); DevelTextLabel::SetTextFitArray(textLabel, true, fitOptions); Change-Id: Ib608465c8f4c96c56e471f14064e4e2d24377a8f Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
Make NPatchData always use shared pointer Let we keep NPatchData user always use shared_ptr instead of raw pointer. In this case, NPatchData itself will be safe enought even if NPatchData removed from NPatchLoader cache. Change-Id: I27db855888bc21c7a7282a9e1114945f3f0e758d Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>