platform/core/uifw/dali-toolkit.git
19 months agoMerge "Change RegisterGlCallback function name of GlView" into devel/master
Adeel Kazmi [Wed, 20 Oct 2021 08:03:19 +0000 (08:03 +0000)]
Merge "Change RegisterGlCallback function name of GlView" into devel/master

19 months agoMerge "Refactoring VisualActions" into devel/master
Seungho BAEK [Wed, 20 Oct 2021 05:56:02 +0000 (05:56 +0000)]
Merge "Refactoring VisualActions" into devel/master

19 months agoChange RegisterGlCallback function name of GlView 26/265426/1
Daekwang Ryu [Tue, 19 Oct 2021 05:54:59 +0000 (14:54 +0900)]
Change RegisterGlCallback function name of GlView

It is changed to RegisterGlCallbacks because the function registers 3
callbacks.

Change-Id: If326d9f325a5a861db2efd3a1f3d50262d678eae

19 months agoMerge "Sync test-application" into devel/master
Heeyong Song [Tue, 19 Oct 2021 00:50:50 +0000 (00:50 +0000)]
Merge "Sync test-application" into devel/master

19 months agoMerge "Fix ZWJ, ZWNJ issues" into devel/master
joogab yun [Tue, 19 Oct 2021 00:46:29 +0000 (00:46 +0000)]
Merge "Fix ZWJ, ZWNJ issues" into devel/master

19 months agoRefactoring VisualActions 88/265388/2
seungho [Mon, 18 Oct 2021 04:56:26 +0000 (13:56 +0900)]
Refactoring VisualActions

Change-Id: Id56e3a5e5910b2fbbb8428abd96897d7bcd10ae1
Signed-off-by: seungho <sbsh.baek@samsung.com>
19 months agoSync test-application 68/265268/2
Heeyong Song [Wed, 13 Oct 2021 10:28:08 +0000 (19:28 +0900)]
Sync test-application

Change-Id: If0e522e99b8d2050c2a526756793f893dc3d085c

19 months agoDALi Version 2.0.48 52/265352/1 dali_2.0.48
Richard Huang [Fri, 15 Oct 2021 09:44:01 +0000 (10:44 +0100)]
DALi Version 2.0.48

Change-Id: I31df501854f9ec2f2d8e74cb0febcc73f480d6c4

19 months agoSupport to use NPatchImage in brokenImage 72/260572/28
Sunghyun Kim [Tue, 29 Jun 2021 07:38:09 +0000 (16:38 +0900)]
Support to use NPatchImage in brokenImage

Support to use NpatchImage in broken Image.
Application can use custom broken image from this patch.
when they set 3 type of broken image(small,normal,large),
dali show the proper broken image considering size.

Change-Id: I7e2be85d4715d07356fd2782be2d011931fde5c2

19 months agoFix ZWJ, ZWNJ issues 45/264845/10
Bowon Ryu [Fri, 1 Oct 2021 04:20:55 +0000 (13:20 +0900)]
Fix ZWJ, ZWNJ issues

Current font load logic classifies ZWJ, ZWNJ as COMMON script.
This interrupts them from being combined into one emoji in the EMOJI + ZWJ + EMOJI case.

This patch treats ZWJ, ZWNJ as EMOJI script in this case,
so that they can be loaded with the same color emoji font.

Please refer the example below.
The expected result is to be combined into one emoji character due to ZWJ.
But the actual result is 3 characters rendered.

// example
TextLabel label = TextLabel::New("&#x1f469;&#x200d;&#x1f52c;");

Change-Id: Ic8e921ffcb63c27638afe781527b5c6b90aa92b1
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
19 months agoMerge "Syncing test files for photoshop blend modes" into devel/master
Adeel Kazmi [Fri, 8 Oct 2021 17:46:07 +0000 (17:46 +0000)]
Merge "Syncing test files for photoshop blend modes" into devel/master

19 months agoDALi Version 2.0.47 96/265096/1 dali_2.0.47
David Steele [Fri, 8 Oct 2021 13:54:32 +0000 (14:54 +0100)]
DALi Version 2.0.47

Change-Id: I33082c990826297bcc59106599f64598c17fc2a1

19 months agoSyncing test files for photoshop blend modes 48/265048/1
David Steele [Thu, 7 Oct 2021 17:18:04 +0000 (18:18 +0100)]
Syncing test files for photoshop blend modes

Change-Id: Ia05a321d1a1938c395895e61b201b6a034706f61

19 months agoResolve visual defect when BorderlineWidth=0.0f 38/265038/1
Eunki, Hong [Thu, 7 Oct 2021 10:16:37 +0000 (19:16 +0900)]
Resolve visual defect when BorderlineWidth=0.0f

Normally, Set borderlineWidth=0.0f directly doesn't make visual defect.
But when we animate the borderlineWidth,
we can se borderlineColor near 0.5pixel!

This visual defect occured cause we did hand-made anti-alias.
Now, we just multiply the borderline's with into the borderline's opacity.

This mechanisme is comes from what we draw borderline
when borderlineWidth is less then 1 pixel.

Change-Id: Ic8ef7b451d66ef0a625ad9c8392824d1f6cc6d9a
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
20 months agoExact calculation when borderline is trasluency 05/264705/5
Eunki, Hong [Tue, 28 Sep 2021 10:24:11 +0000 (19:24 +0900)]
Exact calculation when borderline is trasluency

Update exact formula when borderline is transluency.
This patch will fix so many visual defects

TODO : If there is a good way to calculate result without division, change it.
TODO : Visual defect occur when BorderlineWidth is 0.0f.
       Not related with this patch but anyway we need to fix some other patch.

Change-Id: Ic14f18eb508dc488a95cdb8f0eff4f615a78629b
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
20 months agoDALi Version 2.0.46 82/264882/1 dali_2.0.46
Adeel Kazmi [Fri, 1 Oct 2021 17:23:08 +0000 (18:23 +0100)]
DALi Version 2.0.46

Change-Id: I791fc9d01fab03c0d7fb74475a054f314af76fba

20 months agoFix fread order in EncodedImageBuffer UTC util 33/262433/2
Eunki Hong [Tue, 10 Aug 2021 11:33:53 +0000 (04:33 -0700)]
Fix fread order in EncodedImageBuffer UTC util

Change-Id: Ic441bc8c2e83a713e7a727b39a1c78e8407cfa1c
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
20 months agoMerge "WebEngine::GetNativeImageSource return NativeImageSourcePtr" into devel/master
Eunki Hong [Thu, 30 Sep 2021 02:07:14 +0000 (02:07 +0000)]
Merge "WebEngine::GetNativeImageSource return NativeImageSourcePtr" into devel/master

20 months agoMerge "BlendMode::ON_WITHOUT_CULL bug fix" into devel/master
Eunki Hong [Thu, 30 Sep 2021 02:06:48 +0000 (02:06 +0000)]
Merge "BlendMode::ON_WITHOUT_CULL bug fix" into devel/master

20 months agoBlendMode::ON_WITHOUT_CULL bug fix 04/264704/4
Eunki, Hong [Tue, 28 Sep 2021 10:14:42 +0000 (19:14 +0900)]
BlendMode::ON_WITHOUT_CULL bug fix

When we set BORDERLINE_WIDTH property on initialize time, mNeedBorderline still false.
So after animate CORER_RADIUS, BlendMode become ON so it will culled when MIX_COLOR.a is zero.
This patch fix that case bug

Change-Id: I3570d17273e6924f934dfc7e8b8fe6910ac18c0b
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
20 months agoWebEngine::GetNativeImageSource return NativeImageSourcePtr 60/264760/2
Eunki, Hong [Wed, 29 Sep 2021 08:14:12 +0000 (17:14 +0900)]
WebEngine::GetNativeImageSource return NativeImageSourcePtr

NativeImageSource --> NativeImageInterface is simple valid job.
NativeImageInterface --> NativeImageSource is not simple and expensive job.

WebEngine / WebPlugin defined at dali-adaptor/devel-api and
NativeImageSource defined at dali-adaptor/public-api.
So there is no reason to convert NativeImageSource to NativeImageInterface.

Change-Id: I55e9c6824188b1df8b53ea50b4f638f9309cfd84
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
20 months ago(Vector) Fix frame drop bug 54/264754/1
Heeyong Song [Wed, 29 Sep 2021 07:36:07 +0000 (16:36 +0900)]
(Vector) Fix frame drop bug

Reset mDroppedFrames every frame

Change-Id: I366317fb732f37735245189f3297a61f769340f9

20 months agoMerge "image-view: Add tvg image format" into devel/master
junsu choi [Mon, 27 Sep 2021 08:27:57 +0000 (08:27 +0000)]
Merge "image-view: Add tvg image format" into devel/master

20 months agoimage-view: Add tvg image format 26/263426/7
JunsuChoi [Thu, 2 Sep 2021 06:22:54 +0000 (15:22 +0900)]
image-view: Add tvg image format

Change-Id: I17c2968badef555ffe9562cba928b379668e6894

20 months agoIf DISPATCH_KEY_EVENTS property is false, the KeyEvent is not received. 69/263769/9
joogab.yun [Fri, 10 Sep 2021 00:57:46 +0000 (09:57 +0900)]
If DISPATCH_KEY_EVENTS property is false, the KeyEvent is not received.

Change-Id: I62bc51eac1af88596635ef27a021c6bf10edc7d8

20 months agoLet borderline color doesn't affect to mixcolor alpha by uActorColor 68/263568/13
Eunki, Hong [Mon, 6 Sep 2021 11:18:16 +0000 (20:18 +0900)]
Let borderline color doesn't affect to mixcolor alpha by uActorColor

Previously, DevelRenderer always merged into uColor.a value.
This situation usally have no problem.

But when we want to use both MIX_COLOR and BORDERLINE_COLOR
there was no way to split Actor's opacity and MIX_COLOR's opacity.
So BORDERLINE_COLOR.a is always pre-multiplired by MIX_COLOR.a.
And also, when MIX_COLOR.a is zero, There is no way to render BORDERLINE only.

This patch try to fix this issue.

First, Add logic to keep-rendering logic. (BlendMode::ON_WITHOUT_CULL)
Second, Turn on that flag only if borderline required.
Third, Modify shader s.t. use default uniform : uActorColor.

Change-Id: I033fa6accebe5ae59aedc1e0b68ee4b8d0df7098
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
20 months agoMerge "Sync bytesPerPixel when pixelFormat contain float at text-utils-devel" into...
Eunki Hong [Fri, 24 Sep 2021 11:20:47 +0000 (11:20 +0000)]
Merge "Sync bytesPerPixel when pixelFormat contain float at text-utils-devel" into devel/master

20 months agoSync bytesPerPixel when pixelFormat contain float at text-utils-devel 64/264564/1
Eunki, Hong [Fri, 24 Sep 2021 10:09:46 +0000 (19:09 +0900)]
Sync bytesPerPixel when pixelFormat contain float at text-utils-devel

We chance bytesPerPixel as half near 2021-05.
But text-utils-devel.cpp doesn't sync with it.

Change-Id: I06201b4ae67b990127bf18ececd88d9b8bf3abd6
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
20 months agoDALi Version 2.0.45 50/264550/1 dali_2.0.45
Adam Bialogonski [Fri, 24 Sep 2021 08:47:54 +0000 (09:47 +0100)]
DALi Version 2.0.45

Change-Id: Ibb8a96b0b40e6f816d63ae894d72817a221ebea0

20 months agoMerge "Add GlView" into devel/master
Daekwang Ryu [Thu, 23 Sep 2021 00:42:47 +0000 (00:42 +0000)]
Merge "Add GlView" into devel/master

20 months agoDALi Version 2.0.44 34/264434/1 dali_2.0.44
Richard Huang [Fri, 17 Sep 2021 10:42:23 +0000 (11:42 +0100)]
DALi Version 2.0.44

Change-Id: I0b24f749fbf2e68dbff0593eb0e6b432e1e39513

20 months agoAdd GlView 55/254755/43
Daekwang Ryu [Fri, 17 Sep 2021 09:01:42 +0000 (18:01 +0900)]
Add GlView

GlView allows drawing with OpenGL.
It creates a context, a surface and a render thread.
The render thread invokes user's callbacks.

Change-Id: I936313d32f1ce6653e1b1ce0a45f16f216c3f665

20 months agoFix PlaceholderTextColor update issue 01/264201/2
Bowon Ryu [Tue, 14 Sep 2021 09:51:34 +0000 (18:51 +0900)]
Fix PlaceholderTextColor update issue

There is a problem that the color does not change when
PLACEHOLDER_TEXT_COLOR is dynamically set.
This patch updates the text color in SetPlaceholderTextColor().

Change-Id: Id4b5afafdab28756018394ea6c655cfa1cd10a42
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
20 months agoCanvasView: Change to follow buffer's format 71/264171/2
JunsuChoi [Tue, 14 Sep 2021 04:26:04 +0000 (13:26 +0900)]
CanvasView: Change to follow buffer's format

Change-Id: I6c2e34351f9e693e8f58a6689678f4b749de5ff7

20 months agoSwitch SetProperty order of Model3dView 74/263874/1
Seungho Baek [Mon, 13 Sep 2021 06:21:12 +0000 (15:21 +0900)]
Switch SetProperty order of Model3dView

 - To set .mat url before to set imageUrl invokes unnecessary texture loading fail.

Change-Id: I6b9062a9532905fe2a7674df62f6f88e706586cb
Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
20 months agoMerge "DALi Version 2.0.43" into devel/master
Adeel Kazmi [Fri, 10 Sep 2021 15:24:26 +0000 (15:24 +0000)]
Merge "DALi Version 2.0.43" into devel/master

20 months agoDALi Version 2.0.43 42/263842/1 dali_2.0.43
David Steele [Fri, 10 Sep 2021 15:20:44 +0000 (16:20 +0100)]
DALi Version 2.0.43

Change-Id: I6533d88044a276ca94f01fdad0c74b169d94c9b6

20 months agoMerge "fix selection issue in OnCursorKeyEvent" into devel/master
Bowon Ryu [Fri, 10 Sep 2021 08:49:58 +0000 (08:49 +0000)]
Merge "fix selection issue in OnCursorKeyEvent" into devel/master

20 months agoAdd exception handling in text-controller 90/263790/1
Bowon Ryu [Fri, 10 Sep 2021 05:22:20 +0000 (14:22 +0900)]
Add exception handling in text-controller

There is a case where mGlyphPositions is cleared in Controller::Relayouter::Relayout.
At this time, if try to partially erase mGlyphPositions in ClearGlyphModelData, Assert occurs.
Because the count of mGlyphPositions is already 0.

This patch prevents this issue though a count check.

Change-Id: I00c919c75acd1d389877c55acfcd75878b28bc91
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
20 months agoMerge "Fix gradient shader + Remove comment about BorderlineColor" into devel/master
Eunki Hong [Fri, 10 Sep 2021 04:01:49 +0000 (04:01 +0000)]
Merge "Fix gradient shader + Remove comment about BorderlineColor" into devel/master

20 months agoApply to update shaders when CornerRadius/Borderline Animate 54/263654/3
Eunki, Hong [Tue, 7 Sep 2021 12:04:29 +0000 (21:04 +0900)]
Apply to update shaders when CornerRadius/Borderline Animate

When CornerRadius / Borderline features created by animation,
VisualBase Do somethings at "GetPropertyObject" functions
and call UpdateShader.

Color / Image / Gradient visuals were works well.
But some case, like SVG, AnimatedImage, AnimagedVector
did not change the shader.
So the animations are not worked.

This patch update shaders so animation allow to change shader,
so it works well

Furthermore, We make a base virtual functions s.t.
GenerateShader, so reduce code line.

Change-Id: I7423bbe9dd639d22d0f5f5ab66df0d8eab000bec
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
20 months agoMerge "Add Scale transition for Page transition" into devel/master
Seungho BAEK [Wed, 8 Sep 2021 11:01:18 +0000 (11:01 +0000)]
Merge "Add Scale transition for Page transition" into devel/master

20 months agoFix gradient shader + Remove comment about BorderlineColor 02/263702/1
Eunki, Hong [Wed, 8 Sep 2021 09:02:41 +0000 (18:02 +0900)]
Fix gradient shader + Remove comment about BorderlineColor

gradient visual enable preMultipliedAlpha option in default.
Previous version of shader doesn't apply this information
so we fix it.

+

Remove some comments about relationship
between MixColor.alpha and BorderlineColor
ready for ACR

Change-Id: I175e70f670df0aefae0de7906bc0c6c0ad7a2c32
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
20 months agoFix SetPrimaryCursorPosition issue 41/263641/1
Bowon Ryu [Tue, 7 Sep 2021 07:57:32 +0000 (16:57 +0900)]
Fix SetPrimaryCursorPosition issue

In SetPrimaryCursorPosition(),
case of (mPrimaryCursorPosition == index), nothing happens.
But if selection is activated, this should be cancelled.

This patch adds a condition to ensure behaviour in selection case.

Change-Id: I5a6b2d44948f42850ee001432c6fc85fb8eab274
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
20 months agoAdd Scale transition for Page transition 19/262519/12
seungho [Thu, 12 Aug 2021 12:44:31 +0000 (21:44 +0900)]
Add Scale transition for Page transition

Change-Id: Ib105de44c78aa8b9d4ab05541d98c303672d22a7
Signed-off-by: seungho <sbsh.baek@samsung.com>
20 months agoMerge "(Automated Tests) Passing on Ubuntu 20.04" into devel/master
Adeel Kazmi [Mon, 6 Sep 2021 15:49:24 +0000 (15:49 +0000)]
Merge "(Automated Tests) Passing on Ubuntu 20.04" into devel/master

20 months ago(Vector) Check an error in SetPlayRange 46/263246/3
Heeyong Song [Mon, 30 Aug 2021 06:44:12 +0000 (15:44 +0900)]
(Vector) Check an error in SetPlayRange

Change-Id: I26e2dd7d50392c911b148995cfcd81c561fea050

20 months agoMerge "Slide transition for Page transition" into devel/master
Seungho BAEK [Mon, 6 Sep 2021 05:44:51 +0000 (05:44 +0000)]
Merge "Slide transition for Page transition" into devel/master

21 months agoDALi Version 2.0.42 97/263497/1 dali_2.0.42
Adeel Kazmi [Fri, 3 Sep 2021 15:04:25 +0000 (16:04 +0100)]
DALi Version 2.0.42

Change-Id: Ibd306fe4dfa2e32609d96144668138689245973c

21 months agofix selection issue in OnCursorKeyEvent 33/263333/2
Bowon Ryu [Tue, 31 Aug 2021 12:08:52 +0000 (21:08 +0900)]
fix selection issue in OnCursorKeyEvent

Solved the problem when selecting with Shift + Left, Right.

1. Deselect the left == right case.
Previously, the selection handle was drawn even though nothing was selected, which looked weird.

2. For SelectWholeText and SelectText, set PrimaryCursorPosition to RightSelectionPosition.
Selection processing in OnCursorKeyEvent is implemented assuming that the cursor position is RightSelectionPosition.

mPrimaryCursorPosition = mRightSelectionPosition;
This ensures the above behavior.

Change-Id: I1208e37c93e9941319bc1b88502632800129e4d8
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
21 months agoSlide transition for Page transition 13/261813/27
seungho [Tue, 27 Jul 2021 04:02:45 +0000 (13:02 +0900)]
Slide transition for Page transition

Change-Id: I527778eafc9b9de64ed0cf7cd008dca81343d522
Signed-off-by: seungho <sbsh.baek@samsung.com>
21 months ago(Automated Tests) Passing on Ubuntu 20.04 24/258024/10
Adeel Kazmi [Fri, 7 May 2021 16:32:27 +0000 (17:32 +0100)]
(Automated Tests) Passing on Ubuntu 20.04

Change-Id: If9881757da2feef4fb2965cca76075ca490aee2b

21 months agoFix svace issue in TextField, TextEditor 21/263421/1
Bowon Ryu [Thu, 2 Sep 2021 04:04:53 +0000 (13:04 +0900)]
Fix svace issue in TextField, TextEditor

Change-Id: Id8764781b287bb166d445fe4374d27242606e531
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
21 months agoMerge "Add KEYBOARD_FOCUSABLE_CHILDREN property. Whether the children of this actor...
joogab yun [Mon, 30 Aug 2021 05:07:26 +0000 (05:07 +0000)]
Merge "Add KEYBOARD_FOCUSABLE_CHILDREN property. Whether the children of this actor can be focusable by keyboard navigation." into devel/master

21 months agoMerge "Fix VD svace problem." into devel/master
Seungho BAEK [Mon, 30 Aug 2021 02:44:21 +0000 (02:44 +0000)]
Merge "Fix VD svace problem." into devel/master

21 months agoMerge "The field and editor receive all tap events" into devel/master
joogab yun [Mon, 30 Aug 2021 01:59:08 +0000 (01:59 +0000)]
Merge "The field and editor receive all tap events" into devel/master

21 months agoThe field and editor receive all tap events 22/263222/1
joogab.yun [Mon, 30 Aug 2021 01:01:49 +0000 (10:01 +0900)]
The field and editor receive all tap events

Change-Id: I5ae41eeb8f6b6840fb8570ac4b5ac3f9f81e3ef2

21 months agoMerge "Refactoring transition and fadeTransition" into devel/master
Seungho BAEK [Mon, 30 Aug 2021 00:59:48 +0000 (00:59 +0000)]
Merge "Refactoring transition and fadeTransition" into devel/master

21 months agoFix SVACE errors in Graphics Backend 05/263205/1
Adeel Kazmi [Fri, 27 Aug 2021 12:26:55 +0000 (13:26 +0100)]
Fix SVACE errors in Graphics Backend

Change-Id: I919ed0f473697c8f14c1feb2d66981f052f942f5

21 months agoMerge "DALi Version 2.0.41" into devel/master
David Steele [Fri, 27 Aug 2021 11:43:07 +0000 (11:43 +0000)]
Merge "DALi Version 2.0.41" into devel/master

21 months agoDALi Version 2.0.41 87/263187/1 dali_2.0.41
Adam Bialogonski [Fri, 27 Aug 2021 09:49:34 +0000 (10:49 +0100)]
DALi Version 2.0.41

Change-Id: Id7887461b0d94e6aee80bef9e4dca39884f1776c

21 months agoRefactoring transition and fadeTransition 47/262647/17
seungho [Tue, 17 Aug 2021 07:02:30 +0000 (16:02 +0900)]
Refactoring transition and fadeTransition

 - changes fade to fadeTransition
 - changes to use world transition and color for the all transition
   to make it indepenent of the parent Control and its transitions

Change-Id: I022cc7911445036e28e9c7e250caf021844d4166
Signed-off-by: seungho <sbsh.baek@samsung.com>
21 months agoFix VD svace problem. 64/262964/8
seungho [Tue, 24 Aug 2021 05:08:30 +0000 (14:08 +0900)]
Fix VD svace problem.

 - The return type of fread is size_t has been converted to ssize_t.
 - At the previous implementation, because fread always returns positive value,
   the case ssize_t can be negative exists only when the fseek returns non-zero value.
 - This patch changes ReadBinFile to return false if it read nothing from binary.

Change-Id: I0de843de4a1b87593b0fc1653a92d2a0d11360f7
Signed-off-by: seungho <sbsh.baek@samsung.com>
21 months agoAdd KEYBOARD_FOCUSABLE_CHILDREN property. 71/262771/8
joogab.yun [Thu, 19 Aug 2021 08:20:24 +0000 (17:20 +0900)]
Add KEYBOARD_FOCUSABLE_CHILDREN property.
Whether the children of this actor can be focusable by keyboard navigation.

Change-Id: I2b650cc485ead5805a019763d0897094c5bd2f9a

21 months agoMerge "(Vector) Replace std::chrono::system_clock with chrono::steady_clock" into...
Heeyong Song [Fri, 27 Aug 2021 02:35:14 +0000 (02:35 +0000)]
Merge "(Vector) Replace std::chrono::system_clock with chrono::steady_clock" into devel/master

21 months agoMerge "fix wrong behaviour of SelectNone()" into devel/master
Bowon Ryu [Fri, 27 Aug 2021 02:01:37 +0000 (02:01 +0000)]
Merge "fix wrong behaviour of SelectNone()" into devel/master

21 months agoMerge "Add SelectionCleared signal" into devel/master
Bowon Ryu [Fri, 27 Aug 2021 01:56:48 +0000 (01:56 +0000)]
Merge "Add SelectionCleared signal" into devel/master

21 months agoRevert "Add RelayoutRequest on Control"
EverLEEst(SangHyeon Lee) [Thu, 26 Aug 2021 10:39:59 +0000 (19:39 +0900)]
Revert "Add RelayoutRequest on Control"

This reverts commit 71c03dad71835226d820f790dbc53f5c538ec65c.

21 months agoAdd RelayoutRequest on Control
EverLEEst(SangHyeon Lee) [Thu, 26 Aug 2021 10:31:54 +0000 (19:31 +0900)]
Add RelayoutRequest on Control

currently RelayoutRequest is on ControlWrapper,
but Control should request relayout by itself.

Change-Id: I2f40c54998d8b78c4a7b746a5fb9e68d8341d291

21 months ago(Vector) Replace std::chrono::system_clock with chrono::steady_clock 24/263124/1
Heeyong Song [Thu, 26 Aug 2021 09:48:37 +0000 (18:48 +0900)]
(Vector) Replace std::chrono::system_clock with chrono::steady_clock

Change-Id: If2cfb975c8796963d38141ae3c1868ee385b40c1

21 months agofix wrong behaviour of SelectNone() 82/263082/1
Bowon Ryu [Wed, 25 Aug 2021 11:12:04 +0000 (20:12 +0900)]
fix wrong behaviour of SelectNone()

1. It is wrong behaviour for the cursor position to be 0 when selection is canceled.
Keeping the previous cursor position is the proper behavior.

2. SelectNone() only works if selection is enabled.
In this case, if selection is canceled, EDITING state is more appropriate than INACTIVE.
In INACTIVE, it is difficult to continue editing work, such as the cursor being deactivated.

Change-Id: I0f5f678b3ea205bc334ca9d5cd6e7626f37d8d87
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
21 months agoMerge "Implement more request interceptor APIs." into devel/master
JIYUN YANG [Wed, 25 Aug 2021 07:08:47 +0000 (07:08 +0000)]
Merge "Implement more request interceptor APIs." into devel/master

21 months agoMerge "Remove unused custom shader prefix method" into devel/master
Adeel Kazmi [Tue, 24 Aug 2021 18:01:28 +0000 (18:01 +0000)]
Merge "Remove unused custom shader prefix method" into devel/master

21 months agoMerge "(TextController) Fixed SVACE errors in EventHandler" into devel/master
Adeel Kazmi [Tue, 24 Aug 2021 13:30:33 +0000 (13:30 +0000)]
Merge "(TextController) Fixed SVACE errors in EventHandler" into devel/master

21 months ago(TextController) Fixed SVACE errors in EventHandler 92/262992/2
Adeel Kazmi [Tue, 24 Aug 2021 09:12:06 +0000 (10:12 +0100)]
(TextController) Fixed SVACE errors in EventHandler

Change-Id: I71b617bca81576d478f2eaae794d45ca9fd3f1b8

21 months agoSupport Public APIs - CopyText, CutText & PasteText 80/262080/16
Sara Samara [Mon, 2 Aug 2021 12:41:26 +0000 (15:41 +0300)]
Support Public APIs - CopyText, CutText & PasteText

with the following prototypes and descriptions:

string CopyText(TextEditor textEditor) or string CopyText(TextField textField)

This function will copy the previously selected string into the clipboard and will return it.

string CutText(TextEditor textEditor) or string CutText(TextField textField)

This function will cut the previously selected string into the clipboard and will return it.

void PasteText(TextEditor textEditor) or void PasteText(TextField textField

This function will paste the most recent string in the clipboard stack into the text control.

Change-Id: I7dc8156e636f95b8acf8c350bfc7827419e239ca

21 months agoImplement more request interceptor APIs. 48/262948/3
huayong.xu [Tue, 24 Aug 2021 01:45:39 +0000 (09:45 +0800)]
Implement more request interceptor APIs.

Change-Id: Ie8b2d5247431d428c28d17153e98fa6812c2f93b

21 months agoRemove unused custom shader prefix method 82/262882/3
seungho [Mon, 23 Aug 2021 05:15:42 +0000 (14:15 +0900)]
Remove unused custom shader prefix method

Change-Id: Icbcd2f33938db5256a3993f6d5854c20c2307675
Signed-off-by: seungho <sbsh.baek@samsung.com>
21 months agoAdd SelectionCleared signal 60/262860/5
abdullah [Sun, 22 Aug 2021 14:46:28 +0000 (17:46 +0300)]
Add SelectionCleared signal

added signal which will be called when selection has been cleared

void OnSelectionCleared(TextEditor textEditor)

Change-Id: Icce352f1709549b86e9697d28588c32ba89affc4

21 months agoMerge "Add SelectionChanged signal" into devel/master
Bowon Ryu [Mon, 23 Aug 2021 08:33:54 +0000 (08:33 +0000)]
Merge "Add SelectionChanged signal" into devel/master

21 months agoAdd SelectionChanged signal 91/262091/13
abdullah [Mon, 2 Aug 2021 15:48:39 +0000 (18:48 +0300)]
Add SelectionChanged signal

added signal which will be called when selection has been changed

void OnSelectionChanged(TextEditor textEditor, uint32_t oldStart, uint32_t oldEnd)

Change-Id: I2f769fe11f487462309d8a474fd8ac5aa5c1f2d8

21 months agoMerge "CanvasView: Change Process to be called as PostProcessor" into devel/master
junsu choi [Mon, 23 Aug 2021 01:22:58 +0000 (01:22 +0000)]
Merge "CanvasView: Change Process to be called as PostProcessor" into devel/master

21 months agoMerge "DALi Version 2.0.40" into devel/master
Adeel Kazmi [Fri, 20 Aug 2021 11:20:40 +0000 (11:20 +0000)]
Merge "DALi Version 2.0.40" into devel/master

21 months agoDALi Version 2.0.40 43/262843/1 dali_2.0.40
David Steele [Fri, 20 Aug 2021 11:18:46 +0000 (12:18 +0100)]
DALi Version 2.0.40

Change-Id: I5898f5f1e8cfb8ffaf5ca4e9ed405552184b2727

21 months agoCanvasView: Change Process to be called as PostProcessor 27/262827/3
JunsuChoi [Fri, 20 Aug 2021 07:49:35 +0000 (16:49 +0900)]
CanvasView: Change Process to be called as PostProcessor

Size is set first and then Process Rasterizes.

Change-Id: I11f8806d63acd55dc611114fdfbacee0dc72aa1f

21 months agoMerge "Add CursorPositionChanged Signal" into devel/master
Bowon Ryu [Fri, 20 Aug 2021 06:32:43 +0000 (06:32 +0000)]
Merge "Add CursorPositionChanged Signal" into devel/master

21 months ago(Vector) Reduce unnecessray loop 14/262714/2
Heeyong Song [Wed, 18 Aug 2021 08:28:55 +0000 (17:28 +0900)]
(Vector) Reduce unnecessray loop

Change-Id: I8b39d4d21e8a397bed8f06dbf03fd85ac2cec6fd

21 months agoAdd CursorPositionChanged Signal 62/262362/10
abdullah [Sun, 8 Aug 2021 08:42:39 +0000 (11:42 +0300)]
Add CursorPositionChanged Signal

added signal which will be called when cursor(caret) position has been changed.

void OnCursorPositionChanged(TextEditor textEditor, uint32_t oldPosition)

Change-Id: I5cb768e1a7ae55840fed1d5c320b48ad8731f30d

21 months agoMerge "Support line spacing & min line size in texteditor" into devel/master
Bowon Ryu [Fri, 20 Aug 2021 02:21:37 +0000 (02:21 +0000)]
Merge "Support line spacing & min line size in texteditor" into devel/master

21 months agoIf parent is hidden, the child cannot be focused. 53/262753/2
joogab.yun [Thu, 19 Aug 2021 06:41:48 +0000 (15:41 +0900)]
If parent is hidden, the child cannot be focused.

Change-Id: I4b8fc1d81099583805c3bfc7ab4fd33231bc9f16

21 months agoDisconnect relationship with VisualUrl and VisualFactory 55/262455/11
Eunki Hong [Wed, 11 Aug 2021 06:42:00 +0000 (23:42 -0700)]
Disconnect relationship with VisualUrl and VisualFactory

When VisualFactory destory,
VisualFactoryCache also destroy, and TextureManager also destory.
At this time, mTextureInfoContainer clear, and TextureInfo's VisualUrl destroy.

When VisualUrl destuctor called, we call VisaulFactory::Get() and try to get TextureManager.
But We are now on VisualFactory's destroy called...

This is why image-view-encoded-image-buffer.example make Segfault.

This patch move previous VisualUrl's job
to TextureManager and ImageVisual.

Change-Id: Iefc6fe7f8bda6cee08fdaafded4979935cbc87a2
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
21 months agoMerge "Fixed IsCandidate bug" into devel/master
joogab yun [Tue, 17 Aug 2021 01:03:37 +0000 (01:03 +0000)]
Merge "Fixed IsCandidate bug" into devel/master

21 months agoMerge "Change raw pointer to unique_ptr" into devel/master
Bowon Ryu [Tue, 17 Aug 2021 01:03:23 +0000 (01:03 +0000)]
Merge "Change raw pointer to unique_ptr" into devel/master

21 months agoMerge "DALi Version 2.0.39" into devel/master
David Steele [Fri, 13 Aug 2021 13:03:57 +0000 (13:03 +0000)]
Merge "DALi Version 2.0.39" into devel/master

21 months agoDALi Version 2.0.39 91/262591/1 dali_2.0.39
Adeel Kazmi [Fri, 13 Aug 2021 12:46:37 +0000 (13:46 +0100)]
DALi Version 2.0.39

Change-Id: Ia024d79423aef61658cba1f8d9cb1162f472c2e4

21 months agoChange raw pointer to unique_ptr 83/262583/5
Bowon Ryu [Fri, 13 Aug 2021 09:20:00 +0000 (18:20 +0900)]
Change raw pointer to unique_ptr

The mPlaceholderFont pointer is allocated memory once only
when the text-controller uses a placeholder.
This will persist until mEventData is destroyed.
Changed to a smart pointer suitable for maintenance.

Additionally,
In SetPlaceholderTextFontWidth() and SetPlaceholderTextFontSlant(), mPlaceholderFont can not be NULL.

Even if there is no value in SetFontStyleProperty, it is always set to None,
This is because an instance of mPlaceholderFont is created through SetPlaceholderTextFontWeight(), which is called first.

So this causes coverage issues.
Replace the duplicate code with CreatePlaceholderFont() solves this problem.

Change-Id: Ibd11b02f22e505be8643c9360b5d5e5e2de1b318
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
21 months agoMerge "CanvasView: Change CanvasRenderer::GetSize() method to const" into devel/master
junsu choi [Fri, 13 Aug 2021 00:14:52 +0000 (00:14 +0000)]
Merge "CanvasView: Change CanvasRenderer::GetSize() method to const" into devel/master

21 months agoMerge "Fix comments about CornerRadiusPolicy and BorderlineColor" into devel/master
Eunki Hong [Tue, 10 Aug 2021 04:41:58 +0000 (04:41 +0000)]
Merge "Fix comments about CornerRadiusPolicy and BorderlineColor" into devel/master

21 months agoSupport line spacing & min line size in texteditor 00/261800/7
abdullah [Mon, 26 Jul 2021 06:42:30 +0000 (09:42 +0300)]
Support line spacing & min line size in texteditor

support texteditor to have properties like textlabel.

line spacing set the space between lines.
min line size set the total line size (we internally take the max between line size vs font line size)

Change-Id: I2cccc910406db181561ff5e7274b997b60b44737

21 months agoFix comments about CornerRadiusPolicy and BorderlineColor 60/262360/1
Eunki, Hong [Mon, 9 Aug 2021 05:26:55 +0000 (14:26 +0900)]
Fix comments about CornerRadiusPolicy and BorderlineColor

When CornerRadiusPolicy is Relative, the maximum value is 0.5f.
If value is bigger than 0.5f, it will be clampled internally.
But we cannot notificate that informations only by documents.
Now fix it.
+
We add some more informations about borderline color;
It will be affected by visual opacity

Change-Id: Ic8afc5de3fd92b9cefcb1378959cb9ff4ab8102d
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>