Name: elm-sharp
Summary: C# Binding for Elementary
-Version: 1.0.9
+Version: 1.0.10
Release: 1
Group: Development/Libraries
License: Apache-2.0
<Compile Include="ElmSharp\Window.cs" />
<Compile Include="ElmSharp\WrapType.cs" />
<Compile Include="Interop\Interop.Ecore.cs" />
+ <Compile Include="Interop\Interop.Eina.cs" />
<Compile Include="Interop\Interop.Elementary.Bg.cs" />
<Compile Include="Interop\Interop.Elementary.Box.cs" />
<Compile Include="Interop\Interop.Elementary.Button.cs" />
<Compile Include="ElmSharp\Widget.cs" />
<Compile Include="ElmSharp\Window.cs" />
<Compile Include="ElmSharp\WrapType.cs" />
+ <Compile Include="Interop\Interop.Eina.cs" />
<Compile Include="Interop\Interop.Eo.cs" />
<Compile Include="Interop\Interop.Ecore.cs" />
<Compile Include="Interop\Interop.Elementary.Bg.cs" />
static readonly Object _taskLock = new Object();
static int _newTaskId = 0;
-
static Interop.Ecore.EcoreTaskCallback _nativeHandler;
static EcoreMainloop()
_nativeHandler = NativeHandler;
}
+ public static bool IsMainThread => Interop.Eina.eina_main_loop_is();
+
public static void Begin()
{
Interop.Ecore.ecore_main_loop_begin();
--- /dev/null
+// Copyright 2016 by Samsung Electronics, Inc.,
+//
+// This software is the confidential and proprietary information
+// of Samsung Electronics, Inc. ("Confidential Information"). You
+// shall not disclose such Confidential Information and shall use
+// it only in accordance with the terms of the license agreement
+// you entered into with Samsung.
+
+using System;
+using System.Runtime.InteropServices;
+
+internal static partial class Interop
+{
+ internal static partial class Eina
+ {
+ [DllImport(Libraries.Eina)]
+ internal static extern bool eina_main_loop_is();
+ }
+}