summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]ElmSharp/ElmSharp/EvasObject.cs9
-rwxr-xr-x[-rw-r--r--]ElmSharp/Interop/Interop.Evas.cs3
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)]