Add native FloatingButton for floating button enabled content page 33/110933/1
authorHobum Kwon <hobum.kwon@samsung.com>
Wed, 18 Jan 2017 22:47:54 +0000 (07:47 +0900)
committerHobum Kwon <hobum.kwon@samsung.com>
Wed, 18 Jan 2017 22:48:29 +0000 (07:48 +0900)
Change-Id: I9e904ae0677457885d693b90865316ae1dc206a6

ElmSharp/ElmSharp.csproj [changed mode: 0644->0755]
ElmSharp/ElmSharp/FloatingButton.cs [new file with mode: 0755]
ElmSharp/Interop/Interop.Elementary.FloatingButton.cs [new file with mode: 0755]
ElmSharp/Interop/Interop.Libraries.cs [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index f11e9a8..463f68a
@@ -71,6 +71,7 @@
     <Compile Include="ElmSharp\EvasMap.cs" />
     <Compile Include="ElmSharp\EvasObject.cs" />
     <Compile Include="ElmSharp\EvasObjectEvent.cs" />
+    <Compile Include="ElmSharp\FloatingButton.cs" />
     <Compile Include="ElmSharp\GenGrid.cs" />
     <Compile Include="ElmSharp\GenGridItem.cs" />
     <Compile Include="ElmSharp\GenItem.cs" />
     <Compile Include="Interop\Interop.Elementary.CtxPopup.cs" />
     <Compile Include="Interop\Interop.Elementary.DateTimePicker.cs" />
     <Compile Include="Interop\Interop.Elementary.Entry.cs" />
+    <Compile Include="Interop\Interop.Elementary.FloatingButton.cs" />
     <Compile Include="Interop\Interop.Elementary.GenGridView.cs" />
     <Compile Include="Interop\Interop.Elementary.GenListView.cs" />
     <Compile Include="Interop\Interop.Elementary.GestureLayer.cs" />
diff --git a/ElmSharp/ElmSharp/FloatingButton.cs b/ElmSharp/ElmSharp/FloatingButton.cs
new file mode 100755 (executable)
index 0000000..cd76e36
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using System;
+
+namespace ElmSharp
+{
+    public class FloatingButton : Layout
+    {
+        public FloatingButton(EvasObject parent) : base(parent)
+        {
+        }
+
+        protected override IntPtr CreateHandle(EvasObject parent)
+        {
+            return Interop.Eext.eext_floatingbutton_add(parent.Handle);
+        }
+    }
+}
diff --git a/ElmSharp/Interop/Interop.Elementary.FloatingButton.cs b/ElmSharp/Interop/Interop.Elementary.FloatingButton.cs
new file mode 100755 (executable)
index 0000000..e65dafc
--- /dev/null
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using System;
+using System.Runtime.InteropServices;
+
+internal static partial class Interop
+{
+    internal static partial class Eext
+    {
+        [DllImport(Libraries.Eext)]
+        internal static extern IntPtr eext_floatingbutton_add(IntPtr obj);
+    }
+}
old mode 100644 (file)
new mode 100755 (executable)
index f7f9423..fe6ae2e
@@ -24,5 +24,6 @@ internal static partial class Interop
         internal const string Eina = "libeina.so.1";
         internal const string Ecore = "libecore.so.1";
         internal const string Eo = "libeo.so.1";
+        internal const string Eext = "libefl-extension.so.0";
     }
 }