[NUI] Update MeasureCallback interface for latest Dali::Toolkit (#2043)
authordongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 23 Sep 2020 03:06:06 +0000 (12:06 +0900)
committerGitHub <noreply@github.com>
Wed, 23 Sep 2020 03:06:06 +0000 (12:06 +0900)
commit591eb6e2a33f7bbe23357a62694ec6fc03c4e40d
treed60c7e002f2452f2cf49d5428ad5c8f7773368c0
parent3c0d9ca0dbda7b5d59ec83a670462052ca6636c7
[NUI] Update MeasureCallback interface for latest Dali::Toolkit (#2043)

Making MeasureCallback return a struct is causing the .NET runtime on
Windows 10 messes up with argument values. We changed the signature of
MeasureCallback on Dali::Toolkit to make the return value be an out
parameter.

The detailed explanation of what's the problem can be found at [1].

Moreover, we declare MeasureCallback as Cdecl, as it is declared this
way in the C++ header file.

[1] https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-toolkit/+/242665/

Co-authored-by: Wander Lairson Costa <wander.lairson@gmail.com>
src/Tizen.NUI/src/public/Layouting/FlexLayout.cs