From 2caea08724cf231488b0d5250be47be90a2056ac Mon Sep 17 00:00:00 2001 From: "rina6350.you" Date: Fri, 30 Jun 2017 13:16:28 +0900 Subject: Add the calculate method for forcing immediate calculations needed for renderization of this object TASK=TCAPI-2536 Change-Id: I8c01fe9d904a64ccc5bdf897b2284634868c4d5a --- ElmSharp/ElmSharp/EvasObject.cs | 9 +++++++++ ElmSharp/Interop/Interop.Evas.cs | 3 +++ 2 files changed, 12 insertions(+) mode change 100644 => 100755 ElmSharp/ElmSharp/EvasObject.cs mode change 100644 => 100755 ElmSharp/Interop/Interop.Evas.cs (limited to 'ElmSharp') diff --git a/ElmSharp/ElmSharp/EvasObject.cs b/ElmSharp/ElmSharp/EvasObject.cs old mode 100644 new mode 100755 index 598789a..4693486 --- a/ElmSharp/ElmSharp/EvasObject.cs +++ b/ElmSharp/ElmSharp/EvasObject.cs @@ -749,6 +749,15 @@ namespace ElmSharp Interop.Evas.evas_object_smart_changed(RealHandle); } + /// + /// Call the calculate smart function immediately. + /// This will force immediate calculations needed for renderization of this object. + /// + public void Calculate() + { + Interop.Evas.evas_object_smart_calculate(RealHandle); + } + /// /// Sets the hints for an object's aspect ratio. /// diff --git a/ElmSharp/Interop/Interop.Evas.cs b/ElmSharp/Interop/Interop.Evas.cs old mode 100644 new mode 100755 index ce76066..f37ae6f --- a/ElmSharp/Interop/Interop.Evas.cs +++ b/ElmSharp/Interop/Interop.Evas.cs @@ -441,6 +441,9 @@ internal static partial class Interop [DllImport(Libraries.Evas)] 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); -- cgit v1.2.3