diff options
author | rina6350.you <rina6350.you@samsung.com> | 2017-06-30 13:16:28 +0900 |
---|---|---|
committer | Seungkeun Lee <sngn.lee@samsung.com> | 2017-07-03 01:02:27 +0000 |
commit | 2caea08724cf231488b0d5250be47be90a2056ac (patch) | |
tree | db82ab263fc61de01616ac1a7ef0412697d0359e /ElmSharp | |
parent | 27db8e6d13e172abe53fda9c807c2e85b90d9b5c (diff) | |
download | elm-sharp-2caea08724cf231488b0d5250be47be90a2056ac.tar.gz elm-sharp-2caea08724cf231488b0d5250be47be90a2056ac.tar.bz2 elm-sharp-2caea08724cf231488b0d5250be47be90a2056ac.zip |
Add the calculate method for forcing immediate calculations needed for renderization of this object
TASK=TCAPI-2536
Change-Id: I8c01fe9d904a64ccc5bdf897b2284634868c4d5a
Diffstat (limited to 'ElmSharp')
-rwxr-xr-x[-rw-r--r--] | ElmSharp/ElmSharp/EvasObject.cs | 9 | ||||
-rwxr-xr-x[-rw-r--r--] | ElmSharp/Interop/Interop.Evas.cs | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/ElmSharp/ElmSharp/EvasObject.cs b/ElmSharp/ElmSharp/EvasObject.cs index 598789a..4693486 100644..100755 --- a/ElmSharp/ElmSharp/EvasObject.cs +++ b/ElmSharp/ElmSharp/EvasObject.cs @@ -750,6 +750,15 @@ namespace ElmSharp } /// <summary> + /// Call the calculate smart function immediately. + /// This will force immediate calculations needed for renderization of this object. + /// </summary> + public void Calculate() + { + Interop.Evas.evas_object_smart_calculate(RealHandle); + } + + /// <summary> /// Sets the hints for an object's aspect ratio. /// </summary> /// <param name="aspect">The policy or type of aspect ratio to apply to object</param> diff --git a/ElmSharp/Interop/Interop.Evas.cs b/ElmSharp/Interop/Interop.Evas.cs index ce76066..f37ae6f 100644..100755 --- a/ElmSharp/Interop/Interop.Evas.cs +++ b/ElmSharp/Interop/Interop.Evas.cs @@ -442,6 +442,9 @@ internal static partial class Interop internal static extern void evas_object_smart_changed(IntPtr obj); [DllImport(Libraries.Evas)] + internal static extern void evas_object_smart_calculate(IntPtr obj); + + [DllImport(Libraries.Evas)] internal static extern void evas_color_argb_premul(int a, ref int r, ref int g, ref int b); [DllImport(Libraries.Evas)] |