2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
22 /// The FloatingButton is a widget to add the floating area for buttons.
24 /// <since_tizen> preview </since_tizen>
25 [Obsolete("This has been deprecated in API12")]
26 public class FloatingButton : Layout
29 /// Creates and initializes a new instance of the FloatingButton class.
31 /// <param name="parent">Created on this parent container.</param>
32 /// <since_tizen> preview </since_tizen>
33 [Obsolete("This has been deprecated in API12")]
34 public FloatingButton(EvasObject parent) : base(parent)
39 /// Sets or gets the floatingbutton mode.
41 /// <since_tizen> preview </since_tizen>
42 [Obsolete("This has been deprecated in API12")]
43 public FloatingButtonMode Mode
47 return (FloatingButtonMode)Interop.Eext.eext_floatingbutton_mode_get(Handle);
51 Interop.Eext.eext_floatingbutton_mode_set(Handle, (int)value);
56 /// Gets the floatingbutton position.
58 /// <since_tizen> preview </since_tizen>
59 [Obsolete("This has been deprecated in API12")]
60 public FloatingButtonPosition Position
64 return (FloatingButtonPosition)Interop.Eext.eext_floatingbutton_pos_get(Handle);
69 /// Sets or gets the movability for a given FloatingButton widget.
71 /// <since_tizen> preview </since_tizen>
72 [Obsolete("This has been deprecated in API12")]
73 public bool MovementBlock
77 return Interop.Eext.eext_floatingbutton_movement_block_get(Handle);
81 Interop.Eext.eext_floatingbutton_movement_block_set(Handle, value);
86 /// Gets the opacity's value of the given FloatingButton.
88 /// <since_tizen> preview </since_tizen>
89 [Obsolete("This has been deprecated in API12")]
90 public override int Opacity
94 return Color.Default.A;
99 Console.WriteLine("FloatingButton instance doesn't support to set Opacity.");
104 /// Set the floatingbutton position with or without animation.
106 /// <param name="position">Button position.</param>
107 /// <param name="animated">Animation flag.</param>
108 /// <since_tizen> preview </since_tizen>
109 [Obsolete("This has been deprecated in API12")]
110 public void SetPosition(FloatingButtonPosition position, bool animated)
114 Interop.Eext.eext_floatingbutton_pos_bring_in(Handle, (int)position);
118 Interop.Eext.eext_floatingbutton_pos_set(Handle, (int)position);
123 /// Creates a widget handle.
125 /// <param name="parent">Parent EvasObject.</param>
126 /// <returns>Handle IntPtr.</returns>
127 /// <since_tizen> preview </since_tizen>
128 [Obsolete("This has been deprecated in API12")]
129 protected override IntPtr CreateHandle(EvasObject parent)
131 return Interop.Eext.eext_floatingbutton_add(parent.Handle);
136 /// Enumeration for the FloatingButtonMode.
138 /// <since_tizen> preview </since_tizen>
139 [Obsolete("This has been deprecated in API12")]
140 public enum FloatingButtonMode
143 /// Allows all positions.
148 /// Allows left and right positions only.
154 /// Enumeration for the FloatingButtonPosition.
156 /// <since_tizen> preview </since_tizen>
157 [Obsolete("This has been deprecated in API12")]
158 public enum FloatingButtonPosition
161 /// Hides in the left, but only the small handler will show.
166 /// Shows all of the buttons, but lies on the left.
171 /// Shows all of the buttons, but lies on the center.
176 /// Shows all of the buttons, but lies on the right.
181 /// Hides in the right, but only the small handler will show.