platform/core/csapi/tizenfx.git
2 years ago[NUI] Add SetUnderline, GetUnderline to Text Components
Bowon Ryu [Mon, 9 Aug 2021 12:26:37 +0000 (21:26 +0900)]
[NUI] Add SetUnderline, GetUnderline to Text Components

Add a Underline struct to pass data of DALi Underline PropertyMap.
The Underline struct can be used as an argument to
SetUnderline and GetUnderline methods.

// example
var underline = new Tizen.NUI.Text.Underline();
underline.Enable = true;
underline.Color = new Color("#3498DB");
underline.Height = 2.0f;
label.SetUnderline(underline);

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years ago[NUI] Remove duplicate code for TextField, TextEditor
Bowon Ryu [Mon, 9 Aug 2021 10:11:56 +0000 (19:11 +0900)]
[NUI] Remove duplicate code for TextField, TextEditor

Removed duplicate code for converting between struct and PropertyMap.
Added a function to replace this in TextUtils.

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years ago[NUI] Add SetFontStyle, GetFontStyle to Text Components
Bowon Ryu [Mon, 9 Aug 2021 09:34:42 +0000 (18:34 +0900)]
[NUI] Add SetFontStyle, GetFontStyle to Text Components

Add a FontStyle struct to pass data of DALi FontStyle PropertyMap.
The FontStyle struct can be used as an argument to
SetFontStyle, GetFontStyle, SetInputFontStyle and GetInputFontStyle methods.

If a placeholder struct is added later, it can be used as a property of the placeholder.

// example
var fontStyle = new Tizen.NUI.Text.FontStyle();
fontStyle.Width = FontWidthType.Expanded;
fontStyle.Weight = FontWeightType.Bold;
fontStyle.Slant = FontSlantType.Italic;
textLabel.SetFontStyle(fontStyle);

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years ago[NUI] CanvasView: Add picture class for drawing images
JunsuChoi [Wed, 11 Aug 2021 07:34:58 +0000 (16:34 +0900)]
[NUI] CanvasView: Add picture class for drawing images

Add Picture class that can load image and rasterize it on CanvasView's canvas.
This image is drawn with Vector Primitives.
And, since it inherits Drawable, user can use transformation method,
and can use masking and clipping methods together with other shapes.

2 years ago[NUI] CanvasView: Change viewBox method to property
JunsuChoi [Fri, 13 Aug 2021 02:31:35 +0000 (11:31 +0900)]
[NUI] CanvasView: Change viewBox method to property

Changes viewbox interface method to property.

2 years ago[NUI] VectorGraphics: Add Gradient feature
JunsuChoi [Thu, 5 Aug 2021 08:58:47 +0000 (17:58 +0900)]
[NUI] VectorGraphics: Add Gradient feature

Add Gradient, LinearGradient, and RadialGradient classes that
implement Linear and Radial Gradient features.
Each Gradient can be applied to Fill and Stroke of Shape after
setting Bounds and ColorStop suitable for style.

2 years ago[NUI] Fix FlexLayout to measure its child correctly
Jaehyun Cho [Tue, 10 Aug 2021 12:29:05 +0000 (21:29 +0900)]
[NUI] Fix FlexLayout to measure its child correctly

FlexLayout calculated child view's size in OnLayout() without
considering child layout's measured size unlike other layouts'
OnLayout().

This caused that the grand child view's size was calculated incorrectly
if the child and grand child had MatchParent Width/HeightSpecification.

To resolve this issue, child layout's measured size is set with the
child view's size calculated by dali-toolkit's YOGA APIs.

2 years ago[NUI] Fix FlexLayout not to fill its parent with WrapContent
Jaehyun Cho [Tue, 10 Aug 2021 12:21:57 +0000 (21:21 +0900)]
[NUI] Fix FlexLayout not to fill its parent with WrapContent

Previously, FlexLayout filled its parent even if it had WrapContent
Width/HeightSpecification.
Because FlexLayout's width and height always referred its parent's size.
(If Width/HeightSpecification is WrapContent, then Mode becomes AtMost.)

Now, FlexLayout does not fill its parent if it has WrapContent
Width/HeightSpecification.

2 years ago[NUI] CanvasView::DrawableGroup: Add RemoveDrawable method
JunsuChoi [Mon, 2 Aug 2021 05:53:02 +0000 (14:53 +0900)]
[NUI] CanvasView::DrawableGroup: Add RemoveDrawable method

Add a method to selectively remove the added drawable.

2 years ago[NUI] Add a comment about SENSITIVE. (#3402)
bshsqa [Wed, 11 Aug 2021 00:37:56 +0000 (09:37 +0900)]
[NUI] Add a comment about SENSITIVE. (#3402)

- If a View is insensitive, the children are also not hittable.
 - This patch adds that at the sensitive property comment.

Signed-off-by: seungho <sbsh.baek@samsung.com>
2 years ago[NUI] Fix comments of CornerRadiusPolicy and Borderline (#3394)
Eunki Hong [Wed, 11 Aug 2021 00:25:26 +0000 (09:25 +0900)]
[NUI] Fix comments of CornerRadiusPolicy and Borderline (#3394)

When CornerRadiusPolicy is Relative, the maximum value is 0.5f.
If value is bigger than 0.5f, it will be clamped internally.
But we cannot notificate that informations only by documents.
Now fix it.

And more, We add some more informations about borderline color;
It will be affected by view opacity

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Co-authored-by: Eunki, Hong <eunkiki.hong@samsung.com>
2 years ago[NUI] Version update (nui22038)
Woochanlee [Tue, 10 Aug 2021 08:41:56 +0000 (17:41 +0900)]
[NUI] Version update (nui22038)

2 years ago[MetadataEditor] Dispose resource in ctor (#3403)
Haesu Gwon [Tue, 17 Aug 2021 01:53:55 +0000 (10:53 +0900)]
[MetadataEditor] Dispose resource in ctor (#3403)

2 years ago[NLP] Fix crash issue
Jihoon Kim [Wed, 11 Aug 2021 04:53:19 +0000 (13:53 +0900)]
[NLP] Fix crash issue

Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
2 years ago[Bluetooth][Non-ACR] Add internal APIs (#3376)
Wootak Jung [Fri, 13 Aug 2021 02:19:15 +0000 (11:19 +0900)]
[Bluetooth][Non-ACR] Add internal APIs (#3376)

BluetoothAdapter.SelectRole(BluetoothAudioRole role)
BluetoothAdapter.GetUuidSpecificationName(string uuid)
BluetoothGattServer.AttMtuChanged

2 years agoAdd and change lock about event handler (#3419)
JinWang An [Fri, 13 Aug 2021 01:30:07 +0000 (10:30 +0900)]
Add and change lock about event handler (#3419)

Signed-off-by: JinWang An <jinwang.an@samsung.com>
2 years agofix parameter name to understandable
Bowon Ryu [Mon, 2 Aug 2021 10:13:01 +0000 (19:13 +0900)]
fix parameter name to understandable

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years ago[NUI] Add SelectText to TextField, TextEditor
Bowon Ryu [Thu, 29 Jul 2021 11:06:11 +0000 (20:06 +0900)]
[NUI] Add SelectText to TextField, TextEditor

Select text from start to end index.
This API works in the same way as SelectWholeText().
When this is called, a SelectText event is added to the event queue.
So this can guarantee the behavior even if called before the text is rendered.

// example
textField.SelectText(2, 10);

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years ago[NUI] Fix wrong code of initialize style in View (#3393)
Jiyun Yang [Mon, 9 Aug 2021 04:05:16 +0000 (13:05 +0900)]
[NUI] Fix wrong code of initialize style in View (#3393)

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
2 years ago[NUI] sync with https://github.com/nui-dali/NUITizenGallery
dongsug.song [Mon, 9 Aug 2021 03:00:16 +0000 (12:00 +0900)]
[NUI] sync with https://github.com/nui-dali/NUITizenGallery

2 years agoAdd InputFilter to TextField, TextEditor
Bowon Ryu [Fri, 21 May 2021 08:58:13 +0000 (17:58 +0900)]
Add InputFilter to TextField, TextEditor

Text input filter based on regular expressions.

Add a InputFilter struct to pass data of DALi InputFilter PropertyMap.
The InputFilter struct can be used as an argument to SetInputFilter and GetInputFilter methods.

// example
InputFilter inputFilter;
inputFilter.Accepted = new Regex(@"[\d]");
inputFilter.Rejected = new Regex("[0-3]");

field.SetInputFilter(inputFilter);

field.InputFiltered += (s, e) =>
{
    if (e.Type == InputFilterType.Accept)
    {
        // If input is filtered by InputFilter of Accept type.
    }
    else if (e.Type == InputFilterType.Reject)
    {
        // If input is filtered by InputFilter of Reject type.
    }
};

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years ago[NUI] Unparent view when Dispose() is called explicitly (#3392)
Jiyun Yang [Mon, 9 Aug 2021 03:20:00 +0000 (12:20 +0900)]
[NUI] Unparent view when Dispose() is called explicitly (#3392)

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
2 years ago[NUI] RiveAnimationView Samples: Add More RiveAnimationView Samples
Taehyub Kim [Thu, 5 Aug 2021 08:49:28 +0000 (01:49 -0700)]
[NUI] RiveAnimationView Samples: Add More RiveAnimationView Samples

1. RiveAnimationUniverse.cs: This sample shows the view animation using user interactive rive animation.
2. RiveAnimationFollowTouch.cs: This sample shows the node position control of rive animation.
3. RiveAnimationRollInOut.cs: This sample shows the animation state change by the  user interaction.

2 years ago[NUI] RiveAnimationView: Add SetAnimationElapsedTime API
Taehyub Kim [Thu, 5 Aug 2021 08:47:28 +0000 (01:47 -0700)]
[NUI] RiveAnimationView: Add SetAnimationElapsedTime API

2 years ago[NUI] Change ColorDepth enum to ColorFormat
Daekwang Ryu [Thu, 5 Aug 2021 06:09:50 +0000 (15:09 +0900)]
[NUI] Change ColorDepth enum to ColorFormat

ColorDepth was changed to ColorFormat in Dali.

2 years ago[NUI] Fix svace issues
Jiyun Yang [Fri, 6 Aug 2021 02:29:16 +0000 (11:29 +0900)]
[NUI] Fix svace issues

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
2 years ago[NUI] RiveAnimationView: refines the function and parameters name
Taehyub Kim [Tue, 3 Aug 2021 09:40:54 +0000 (18:40 +0900)]
[NUI] RiveAnimationView: refines the function and parameters name

2 years ago[NUI] Update NUI.Devel to fix block and crash issues.
guowei.wang [Tue, 3 Aug 2021 12:30:32 +0000 (20:30 +0800)]
[NUI] Update NUI.Devel to fix block and crash issues.

2 years ago[NUI] CanvasView:: Add ViewBox Property (#3361)
JunsuChoi [Tue, 3 Aug 2021 08:10:00 +0000 (17:10 +0900)]
[NUI] CanvasView:: Add ViewBox Property (#3361)

* [NUI] CanvasView:: Add ViewBox Property

Add a property that can change the viewbox value of CanvasView.
If the viewbox is smaller than the view size, the canvas will appear larger.
Conversely, if the viewbox is large, the canvas will look small.

* [NUI] CanvasView: Change viewBox property to method

we currently recommend NOT to use class type as a property.

2 years ago[NUI] BaseComponent: Add RiveAnimationView Component. (#3315)
Taehyub Kim [Tue, 3 Aug 2021 07:02:44 +0000 (16:02 +0900)]
[NUI] BaseComponent: Add RiveAnimationView Component. (#3315)

This reverts commit bbbe71cc1f8c47516933be9851482564e023a895.

2 years ago[Applications] Fix wrong implementation of AttachWindowBelow method (#3384)
hjhun [Thu, 5 Aug 2021 09:43:25 +0000 (18:43 +0900)]
[Applications] Fix wrong implementation of AttachWindowBelow method (#3384)

The AttachWindowBelow() method has to use AppManagerAttachWindowBelow().

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years ago[NUI] Version update (nui22037)
seungho [Tue, 3 Aug 2021 00:17:03 +0000 (09:17 +0900)]
[NUI] Version update (nui22037)

Signed-off-by: seungho <sbsh.baek@samsung.com>
2 years ago[NUI] GestureOptions Binding
Joogab Yun [Tue, 20 Jul 2021 04:41:12 +0000 (13:41 +0900)]
[NUI] GestureOptions Binding

2 years ago[NUI][EXaml] Support DataTemplate in EXaml
Fang Xiaohui [Fri, 30 Jul 2021 01:48:06 +0000 (09:48 +0800)]
[NUI][EXaml] Support DataTemplate in EXaml

2 years ago[NUI] Apply BorderlineWidth to ImageView and ImageView.Background
Eunki, Hong [Mon, 2 Aug 2021 09:15:46 +0000 (18:15 +0900)]
[NUI] Apply BorderlineWidth to ImageView and ImageView.Background

Add missing implements about borderline

2 years ago[NUI] CanvasView: Change nameDrawableGroup::Clear() to RemoveAllDrawables()
JunsuChoi [Mon, 2 Aug 2021 04:42:42 +0000 (13:42 +0900)]
[NUI] CanvasView: Change nameDrawableGroup::Clear() to RemoveAllDrawables()

Since the method name of the same concept in CanvasView is used as
'RemoveAllDrawables', change it to maintain the concept.

2 years agoUpdate webview sample code. (#3360)
huayongxu [Mon, 2 Aug 2021 07:51:30 +0000 (15:51 +0800)]
Update webview sample code. (#3360)

2 years ago[NUI] Fix bugs in ViewStyle.CopyFrom
Jiyun Yang [Thu, 29 Jul 2021 08:20:58 +0000 (17:20 +0900)]
[NUI] Fix bugs in ViewStyle.CopyFrom

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
2 years agoAdded summary tag and removed comment of API Level 9
Shrouq Sabah [Thu, 15 Jul 2021 09:27:09 +0000 (12:27 +0300)]
Added summary tag and removed comment of API Level 9

2 years agoRemoved unneeded tags and modified Tizen API Level to 9 in TextLabel
Shrouq Sabah [Mon, 5 Jul 2021 14:22:41 +0000 (17:22 +0300)]
Removed unneeded tags and modified Tizen API Level to 9 in TextLabel

2 years agoChanged EllipsisLocation to EllipsisPosition, removed unneeded tags and modified...
Shrouq Sabah [Mon, 5 Jul 2021 14:11:03 +0000 (17:11 +0300)]
Changed EllipsisLocation to EllipsisPosition, removed unneeded tags and modified Tizen API Level to 9

2 years ago[NUI] Support Ellipsis location, END, START and MIDDLE in TextLabel, TextField and...
Shrouq Sabah [Wed, 30 Jun 2021 00:10:55 +0000 (03:10 +0300)]
[NUI] Support Ellipsis location, END, START and MIDDLE in TextLabel, TextField and TextEditor

2 years ago[NUI] CanvasView: Add constructor that can be created without viewbox
JunsuChoi [Thu, 29 Jul 2021 08:13:46 +0000 (17:13 +0900)]
[NUI] CanvasView: Add constructor that can be created without viewbox

Add a constructor so that it can be created without viewBox argument.

2 years ago[NUI] CanvasView: Add RemoveDrawable/RemoveAllDrawables method (#3355)
JunsuChoi [Fri, 30 Jul 2021 00:26:22 +0000 (09:26 +0900)]
[NUI] CanvasView: Add RemoveDrawable/RemoveAllDrawables method (#3355)

Add a method to selectively remove the added drawable or remove all.

2 years ago[NUI] CanvasView: Add ClipPath and Mask feature for Drawable (#3346)
JunsuChoi [Fri, 30 Jul 2021 00:26:11 +0000 (09:26 +0900)]
[NUI] CanvasView: Add ClipPath and Mask feature for Drawable (#3346)

* [NUI] CanvasView: Add ClipPath and Mask feature for Drawable

Shape and DrawableGroup, which inherit drawable class,
can clipping and masking using ClipPath and Mask methods.

* [NUI] CanvasView: Change return type of Mask and ClipPath methods

Throws an exception when masking and clipping fail.

2 years ago[Bluetooth][Non-ACR] Fix DeviceName converting issue (#3351)
Wootak Jung [Thu, 29 Jul 2021 23:26:24 +0000 (08:26 +0900)]
[Bluetooth][Non-ACR] Fix DeviceName converting issue (#3351)

Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
2 years ago[NUI] Version update (nui22036)
Heeyong Song [Mon, 26 Jul 2021 08:29:12 +0000 (17:29 +0900)]
[NUI] Version update (nui22036)

2 years ago[NUI] Added string key to Placeholder PropertyMap
Bowon Ryu [Thu, 22 Jul 2021 03:24:24 +0000 (12:24 +0900)]
[NUI] Added string key to Placeholder PropertyMap

The Placeholder map use string key to set value in NUI.
But, user must use the index key to get value.

This causes confusion and inconvenience to users.
This patch allows users to get value using string key.

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years ago[NUI] Remove cached ImageUrl at EncodedImageBuffer
Eunki, Hong [Thu, 22 Jul 2021 05:37:21 +0000 (14:37 +0900)]
[NUI] Remove cached ImageUrl at EncodedImageBuffer

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
2 years ago[NUI] Add some comment about Animatable property of View
seungho [Fri, 23 Jul 2021 04:52:48 +0000 (13:52 +0900)]
[NUI] Add some comment about Animatable property of View

Signed-off-by: seungho <sbsh.baek@samsung.com>
2 years ago[NUI] Add NativeImageQueue
Sunghyun Kim [Thu, 15 Jul 2021 07:18:43 +0000 (16:18 +0900)]
[NUI] Add NativeImageQueue

When the application uses several buffers in NativeImageQueue,
the application can get buffer directly using these APIs.

2 years ago[NUI] Implement WebView.GetPlainTextAsynchronously method (#3344)
Jiyun Yang [Mon, 26 Jul 2021 01:23:09 +0000 (10:23 +0900)]
[NUI] Implement WebView.GetPlainTextAsynchronously method (#3344)

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
2 years ago[NUI] Fix to call base.Initialize() of LinearLayouter and GridLayouter (#3338)
Jaehyun Cho [Thu, 22 Jul 2021 02:06:08 +0000 (11:06 +0900)]
[NUI] Fix to call base.Initialize() of LinearLayouter and GridLayouter (#3338)

Previously, base.Initialize() of LinearLayouter and GridLayouter was not
called if source was empty.
This caused Container to be null and caused null reference in
RequestLayout().

Now, it is guaranteed that base.Initialize() of LinearLayouter and
GridLayouter is called.

Co-authored-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
2 years ago[NUI] Fix Navigator sample build error
Jaehyun Cho [Thu, 22 Jul 2021 07:50:36 +0000 (16:50 +0900)]
[NUI] Fix Navigator sample build error

Since PoppedEventArgs provides Page, page is replaced to Page to fix
build error.

2 years agoAdd a new internal method to ApplicationManager (#3337)
hjhun [Wed, 21 Jul 2021 07:46:37 +0000 (16:46 +0900)]
Add a new internal method to ApplicationManager (#3337)

The AttachWindowBelow() method is added for inhouse applications.
The method is to attach the window of the child application below the
window of the parent application.

Adds:
 - ApplicationManager.AttachWindowBelow()

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years ago[NUI] Fix the Window.VisibilityChanged event's crash issue
Dongsug Song [Tue, 20 Jul 2021 06:13:41 +0000 (15:13 +0900)]
[NUI] Fix the Window.VisibilityChanged event's crash issue

- Because the signals which binds dali, contain signals as member variables, the cMemoryOwn should be false.
- Without this fix, the WindowEventsTest.cs gets crash when continously pushing left,right direction key.

2 years ago[NUI] Add Enabled property to Slider and Progress
Seoyeon Kim [Fri, 16 Jul 2021 08:51:21 +0000 (17:51 +0900)]
[NUI] Add Enabled property to Slider and Progress

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
- Added `IsEnabled` property in Slider and Progress components

2 years ago[NUI] Add new rotation constructor
Seungho Baek [Mon, 19 Jul 2021 09:39:46 +0000 (18:39 +0900)]
[NUI] Add new rotation constructor

 - Adds new Rotation Constructor that uses two Vector3

Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
2 years ago[NUI] Add Popped event to Navigator
Jaehyun Cho [Tue, 20 Jul 2021 08:10:16 +0000 (17:10 +0900)]
[NUI] Add Popped event to Navigator

Popped event is added to Navigator.
Popped event passes Page handle popped by Navigator.

By using Popped event, for example, user can dispose the popped page.

2 years ago[NUI] Fix fail issues of NUI.Devel.Test .
guowei.wang [Mon, 19 Jul 2021 08:18:53 +0000 (16:18 +0800)]
[NUI] Fix fail issues of NUI.Devel.Test .

2 years ago[NUI] Reset transition order to match scene tree order
Seungho Baek [Mon, 19 Jul 2021 09:37:46 +0000 (18:37 +0900)]
[NUI] Reset transition order to match scene tree order

Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
2 years ago[NUI] Fix gridlayouter find wrong visible item (#3328)
SangHyeon Jade Lee [Tue, 20 Jul 2021 04:44:03 +0000 (13:44 +0900)]
[NUI] Fix gridlayouter find wrong visible item (#3328)

2 years ago[ThumbnailExtractor] Add missed description (#3054)
Haesu Gwon [Tue, 20 Jul 2021 04:07:10 +0000 (13:07 +0900)]
[ThumbnailExtractor] Add missed description (#3054)

2 years ago[Build] Modify the TFM list set in vconf (#3055)
JongHeonChoi [Tue, 20 Jul 2021 04:03:16 +0000 (13:03 +0900)]
[Build] Modify the TFM list set in vconf (#3055)

Co-authored-by: WonYoung Choi <wy80.choi@samsung.com>
2 years ago[NUI] Version update (nui22035)
Daekwang Ryu [Mon, 19 Jul 2021 07:25:23 +0000 (16:25 +0900)]
[NUI] Version update (nui22035)

Signed-off-by: Daekwang Ryu <dkdk.ryu@samsung.com>
2 years ago[NUI] Add EnableDefaultAlgorithm and IsDefaultAlgorithmEnabled
Joogab Yun [Mon, 19 Jul 2021 01:22:47 +0000 (10:22 +0900)]
[NUI] Add EnableDefaultAlgorithm and IsDefaultAlgorithmEnabled

2 years agoAdd GetBrightness()
Joogab Yun [Wed, 30 Jun 2021 06:08:05 +0000 (15:08 +0900)]
Add GetBrightness()

2 years ago[NUI] Supports moving focus of items in ScrollableBase
Joogab Yun [Wed, 14 Jul 2021 05:44:59 +0000 (14:44 +0900)]
[NUI] Supports moving focus of items in ScrollableBase

2 years ago[NUI] Add Constraint base + inhouse ResizePolicyType: KeepSizeFollowingParent
Eunki, Hong [Mon, 12 Jul 2021 12:09:49 +0000 (21:09 +0900)]
[NUI] Add Constraint base + inhouse ResizePolicyType: KeepSizeFollowingParent

Add Constraint basic logics
and
Add ResizePolicyType
 - KeepSizeFollowingParent

NOTE : This ResizePolicy Breakout layout features when we use both KeepSizeFollowingParent and Layout. Becareful

2 years ago[NUI] Fix the build error when referencing to NUI.XamlBuild of which version is highe...
Dongsug Song [Mon, 19 Jul 2021 03:18:22 +0000 (12:18 +0900)]
[NUI] Fix the build error when referencing to NUI.XamlBuild of which version is higher than 1.0.11

2 years ago[NUI] Replace Signal with callback. (#3318)
huayongxu [Mon, 19 Jul 2021 04:57:57 +0000 (12:57 +0800)]
[NUI] Replace Signal with callback. (#3318)

2 years ago[NUI] Change RelativeLayout's default offset values
Jaehyun Cho [Sun, 18 Jul 2021 18:50:23 +0000 (03:50 +0900)]
[NUI] Change RelativeLayout's default offset values

To refer the parent layout's area by default, RightRelativeOffset and
BottomRelativeOffset are changed from 0.0f to 1.0f.

2 years ago[NUI] Fix to measure RelativeLayout's children sizes correctly
Jaehyun Cho [Sun, 18 Jul 2021 17:44:39 +0000 (02:44 +0900)]
[NUI] Fix to measure RelativeLayout's children sizes correctly

Previously, TextLabel and TextField's Ellipsis were not displayed in
RelativeLayout, because TextLabel and TextField's size always covers the full
text string.

Now, if TextLabel and TextField support Ellipsis, then RelativeLayout sets the
exact space size to the TextLabel and TextField. So if the assigned size does
not cover the full text string, then Ellipsis is displayed.

Previously, redundant Meausre() was called again in OnMeasure().

Now, Measure() is called again only for FillHorizontal/Vertical cases to set the
filled size to the MeasuredWidth/Height to calculate grand children's size
correctly.

2 years ago[EXaml] Support extension type in collection property
Fang Xiaohui [Fri, 16 Jul 2021 06:55:07 +0000 (14:55 +0800)]
[EXaml] Support extension type in collection property

2 years ago[Xaml] Add flag of binded object
Fang Xiaohui [Fri, 16 Jul 2021 05:44:36 +0000 (13:44 +0800)]
[Xaml] Add flag of binded object

2 years ago[Xaml] Provide method so that user can dispose all xaml objects
Fang Xiaohui [Thu, 15 Jul 2021 08:08:29 +0000 (16:08 +0800)]
[Xaml] Provide method so that user can dispose all xaml objects

2 years ago[NUI] Enable Slider value to be updated using both touch and key event (#3312)
Seoyeon2Kim [Fri, 16 Jul 2021 03:24:33 +0000 (12:24 +0900)]
[NUI] Enable Slider value to be updated using both touch and key event (#3312)

- Override OnKey() method and make Slider itself handle KeyEvent.
- Now, Slider Thumb can be moved using "Left" and "Right" key.

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
2 years ago[NUI] Fix Menu's BackgroundColor
Jaehyun Cho [Thu, 15 Jul 2021 00:49:53 +0000 (09:49 +0900)]
[NUI] Fix Menu's BackgroundColor

Menu covers the window size to dismiss Menu when outside of Menu is touched.

Therefore, Menu's BackgroundColor should be transparent and Menu Content's
BackgroundColor should be set instead.

2 years ago[NUI] Fix AppBar Content's Layout properties
Jaehyun Cho [Wed, 14 Jul 2021 13:49:04 +0000 (22:49 +0900)]
[NUI] Fix AppBar Content's Layout properties

Since LinearLayout's size calculation logic has been fixed, AppBar Content's
Layout properties are fixed to calculate size correctly.

After fixing LinearLayout's size calculation logic, Weight is valid only if
Width/HeightSpecification is MatchParent.

AppBarStyle's ActionView and ActionButton's default size is fixed to show its
own size.

2 years ago[NUI] Add WebView.SetTtsFocus(bool) method (#3310)
Jiyun Yang [Thu, 15 Jul 2021 07:54:31 +0000 (16:54 +0900)]
[NUI] Add WebView.SetTtsFocus(bool) method (#3310)

This API sets/unsets the tts focus to the webview.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
2 years agoRevert "[NUI] Change InterceptTouchEvent."
Joogab Yun [Tue, 13 Jul 2021 03:14:43 +0000 (12:14 +0900)]
Revert "[NUI] Change InterceptTouchEvent."

This reverts commit dbe26102b8c8f4473cb6ea08064dbcb916fbd3a8.

2 years agoRevert "[NUI] Change shouldIntercept value"
Joogab Yun [Tue, 13 Jul 2021 03:14:40 +0000 (12:14 +0900)]
Revert "[NUI] Change shouldIntercept value"

This reverts commit 6d9b8daa4f1a466afa41cb8fb8cf7ede3990b9ec.

2 years ago[NUI] Change shouldIntercept value
Joogab Yun [Tue, 13 Jul 2021 02:21:46 +0000 (11:21 +0900)]
[NUI] Change shouldIntercept value

2 years ago[NUI] Change InterceptTouchEvent.
Joogab Yun [Fri, 9 Jul 2021 03:01:12 +0000 (12:01 +0900)]
[NUI] Change InterceptTouchEvent.

2 years agoRevert "[NUI] BaseComponent: Add RiveAnimationView Component." (#3315)
Taehyub Kim [Thu, 15 Jul 2021 05:08:05 +0000 (14:08 +0900)]
Revert "[NUI] BaseComponent: Add RiveAnimationView Component." (#3315)

This reverts commit 7d04bae7d23b7f32bb9fd7bf580c273e554f3f3d.

2 years ago[NUI] integration from DevelNUI to master (#3309)
Seoyeon2Kim [Tue, 13 Jul 2021 06:57:10 +0000 (15:57 +0900)]
[NUI] integration from DevelNUI to master (#3309)

* [NUI] Add NUITizenGallery Ubuntu VS code project

* [NUI] fix transition order

 - this patch is hotfix to fix problem derived by transition order.

Signed-off-by: seungho <sbsh.baek@samsung.com>
* [NUI] Fix RelativeLayout Measure size calculation

Previously, the actual spec size is given to MeasureChild() and MeasureChild()
subtracts Padding size from the actual spec size.

Now, the actual spec size with Padding size is given to MeasureChild() to
display child with the actual spec size.

Moreover, since child's MeasuredWidth/Height are calculated in MeasureChild(),
duplicate MeasureWidth/Height assigning codes are removed.

* [NUI] Apply ImageUrl in CaptureTest

CaptureTest need to use ImageUrl
So i apply it

* [NUI] Rename APIs related to context menu. (#3263)

* [NUI] Fix ThemeManager to return valid platform theme Id (#3300)

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
* [NUI] Add a tip for NUITizenGallery project

* [NUI] Add XAML TCs

* [XamlBuild] Remove static member in EXaml Operation

* [NUI] Fix build errors of NUI.Devel.Tests.

* [NUI] Add EncodedImageBuffer class (Load image frome Stream)

This patch will make some simple way to upload image from C# Stream to View.

- EncodedImageBuffer will create by C# Stream.
  Stream stream = global::System.IO.File.OpenRead("filename.png");
  EncodedImageBuffer buffer = new EncodedImageBuffer(stream);
- Generate ImageUrl
  ImageUrl url = buffer.GenerateUrl();
- You can use this ImageUrl as image's url
  ImageView view = new ImageView(url.GetUrl());

* [NUI] Add TCs of FrameBroker(internal).

* [NUI] Add TCs of Common(Internal).

* [NUI] Add ProcessorController

Signed-off-by: seungho <sbsh.baek@samsung.com>
* [NUI] Change InterceptTouchEvent.

* [NUI] Rectoring items layout

* [NUI] Change shouldIntercept value

* Revert "[NUI] Change shouldIntercept value"

This reverts commit 6d9b8daa4f1a466afa41cb8fb8cf7ede3990b9ec.

* Revert "[NUI] Change InterceptTouchEvent."

This reverts commit dbe26102b8c8f4473cb6ea08064dbcb916fbd3a8.

* [NUI] Version update (nui22034) (#3307)

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
* [NUI] Change default Navigator Animation

Default Navigator Animation is changed not to show the background behind the
pages.

During Push(), alpha animation is not applied to the current page.
During Pop(), alpha animation is not applied to the previous page.

Co-authored-by: Dongsug Song <dongsug.song@samsung.com>
Co-authored-by: seungho <sbsh.baek@samsung.com>
Co-authored-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
Co-authored-by: Sunghyun Kim <scholb.kim@samsung.com>
Co-authored-by: huayongxu <49056704+huayongxu@users.noreply.github.com>
Co-authored-by: Jiyun Yang <ji.yang@samsung.com>
Co-authored-by: zhouleonlei <zhouleon.lei@samsung.com>
Co-authored-by: Fang Xiaohui <xiaohui.fang@samsung.com>
Co-authored-by: guowei.wang <guowei.wang@samsung.com>
Co-authored-by: Eunki Hong <h.pichulia@gmail.com>
Co-authored-by: Joogab Yun <joogab.yun@samsung.com>
Co-authored-by: EverLEEst(SangHyeon Lee) <sh10233.lee@samsung.com>
2 years ago[Bluetooth][Non-ACR] Add log for converting devcie info (#3303)
Wootak Jung [Tue, 13 Jul 2021 02:20:15 +0000 (11:20 +0900)]
[Bluetooth][Non-ACR] Add log for converting devcie info (#3303)

Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
2 years ago[NUI] Add ImageUrl
Sunghyun Kim [Mon, 14 Jun 2021 02:55:04 +0000 (11:55 +0900)]
[NUI] Add ImageUrl

ImageUrl is a class for wrapping url that is get from external buffer.
it is used for lifecycle management of external buffers.

2 years ago[NUI] Make sure that Interop return type is bool (#3281)
Eunki Hong [Fri, 9 Jul 2021 08:42:33 +0000 (17:42 +0900)]
[NUI] Make sure that Interop return type is bool (#3281)

Marshal's bool is mapped to 4byte in default.
So if native-code return boolean type, the datasize is mismatched and make problems

This patch will fix this problem

Co-authored-by: Eunki, Hong <eunkiki.hong@samsung.com>
2 years ago[NUI][Xaml] Support different params in Vector Converter
Fang Xiaohui [Fri, 9 Jul 2021 03:38:47 +0000 (11:38 +0800)]
[NUI][Xaml] Support different params in Vector Converter

2 years ago[NUI] Fix Dialog Transition issue
huiyu.eun [Fri, 9 Jul 2021 08:07:42 +0000 (17:07 +0900)]
[NUI] Fix Dialog Transition issue

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
2 years ago[NUI]Add xFactory method to Widget view
Fang Xiaohui [Fri, 9 Jul 2021 07:35:10 +0000 (15:35 +0800)]
[NUI]Add xFactory method to Widget view

2 years ago[NUI] Remove unneccesary modification
Fang Xiaohui [Fri, 9 Jul 2021 08:05:20 +0000 (16:05 +0800)]
[NUI] Remove unneccesary modification

2 years ago[NUI][EXaml] Support ResourcePath in EXaml
Fang Xiaohui [Fri, 9 Jul 2021 08:01:53 +0000 (16:01 +0800)]
[NUI][EXaml] Support ResourcePath in EXaml

2 years ago[NUI][Xaml]Add ResourcePathExtension
Fang Xiaohui [Fri, 9 Jul 2021 06:57:43 +0000 (14:57 +0800)]
[NUI][Xaml]Add ResourcePathExtension

2 years ago[NUI][EXaml] Support AppResourcePath in EXaml
Fang Xiaohui [Tue, 6 Jul 2021 05:26:47 +0000 (13:26 +0800)]
[NUI][EXaml] Support AppResourcePath in EXaml

2 years ago[NUI] Add Api for getting window from view
Sunghyun Kim [Thu, 8 Jul 2021 07:15:06 +0000 (16:15 +0900)]
[NUI] Add Api for getting window from view

In some case, The view needs to know which window it is added to.
we can using this api in this case.

2 years ago[NUI] Fix Navigator Transition issue
huiyu.eun [Thu, 8 Jul 2021 07:39:55 +0000 (16:39 +0900)]
[NUI] Fix Navigator Transition issue

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
2 years ago[NUI] Fix build error of Devel.NUI.Tests
guowei.wang [Wed, 7 Jul 2021 07:51:37 +0000 (15:51 +0800)]
[NUI] Fix build error of Devel.NUI.Tests

2 years ago[NUI] Fix to calculate RelativeLayout's children MeasuredWidth/Height correctly
Jaehyun Cho [Wed, 7 Jul 2021 12:42:03 +0000 (21:42 +0900)]
[NUI] Fix to calculate RelativeLayout's children MeasuredWidth/Height correctly

RelativeLayout sets its children's size in OnLayout().
Therefore, the children's MeasuredWidth/Height are not the same with the
children's size.
This causes that the grand children's MeasuredWidth/Height are calculated
incorrectly.
To resolve the above, RelativeLayout updates its children's MeasuredWidth/Height
based on the children's actual size on RelativeLayout after the RelativeLayout's
MeasuredWidth/Height are calculated.

e.g.
Let parent have RelativeLayout and parent's size be 1920x1080.
Let child have WrapContent with SetFillHorizontal/Vertical true.
Let grand child have MatchParent.
Then, child's size is 1920x1080 but child's MeasuredWidth/Height is 0x0.
Then, grand child's MeasuredWidth/Height is 0x0 and size is 0x0.