From: Hobum Kwon Date: Wed, 18 Jan 2017 22:47:54 +0000 (+0900) Subject: Add native FloatingButton for floating button enabled content page X-Git-Tag: submit/trunk/20170823.075128~110^2~173 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb1c34a0a22fbe1cd5ed57ccd99421931543f613;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Add native FloatingButton for floating button enabled content page Change-Id: I9e904ae0677457885d693b90865316ae1dc206a6 --- diff --git a/src/ElmSharp/ElmSharp.csproj b/src/ElmSharp/ElmSharp.csproj old mode 100644 new mode 100755 index f11e9a8..463f68a --- a/src/ElmSharp/ElmSharp.csproj +++ b/src/ElmSharp/ElmSharp.csproj @@ -71,6 +71,7 @@ + @@ -123,6 +124,7 @@ + diff --git a/src/ElmSharp/ElmSharp/FloatingButton.cs b/src/ElmSharp/ElmSharp/FloatingButton.cs new file mode 100755 index 0000000..cd76e36 --- /dev/null +++ b/src/ElmSharp/ElmSharp/FloatingButton.cs @@ -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/src/ElmSharp/Interop/Interop.Elementary.FloatingButton.cs b/src/ElmSharp/Interop/Interop.Elementary.FloatingButton.cs new file mode 100755 index 0000000..e65dafc --- /dev/null +++ b/src/ElmSharp/Interop/Interop.Elementary.FloatingButton.cs @@ -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); + } +} diff --git a/src/ElmSharp/Interop/Interop.Libraries.cs b/src/ElmSharp/Interop/Interop.Libraries.cs old mode 100644 new mode 100755 index f7f9423..fe6ae2e --- a/src/ElmSharp/Interop/Interop.Libraries.cs +++ b/src/ElmSharp/Interop/Interop.Libraries.cs @@ -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"; } }