2 using System.Collections.Generic;
5 namespace ElmSharp.Wearable
8 /// The CircleSurface presents a surface for drawing the circular feature of circle widgets.
10 /// <since_tizen> preview </since_tizen>
11 [Obsolete("This has been deprecated in API12")]
12 public class CircleSurface
17 /// Creates and initializes a new instance of the CircleSurface class with a surface on the Conformant widget.
19 /// <param name="conformant">The Conformant widget to create a surface.</param>
20 /// <since_tizen> preview </since_tizen>
21 [Obsolete("This has been deprecated in API12")]
22 public CircleSurface(Conformant conformant)
24 _handle = Interop.Eext.eext_circle_surface_conformant_add(conformant);
28 /// Creates and initializes a new instance of the CircleSurface class with a surface on the Layout widget.
30 /// <param name="layout">The Layout widget to create a surface.</param>
31 /// <since_tizen> preview </since_tizen>
32 [Obsolete("This has been deprecated in API12")]
33 public CircleSurface(Layout layout)
35 _handle = Interop.Eext.eext_circle_surface_layout_add(layout);
39 /// Creates and initializes a new instance of the CircleSurface class with a surface on the Naviframe widget.
41 /// <param name="naviframe">The Naviframe widget to create a surface.</param>
42 /// <since_tizen> preview </since_tizen>
43 [Obsolete("This has been deprecated in API12")]
44 public CircleSurface(Naviframe naviframe)
46 _handle = Interop.Eext.eext_circle_surface_naviframe_add(naviframe.RealHandle);
50 /// Creates and initializes a new instance of the CircleSurface class with no surface.
52 /// <since_tizen> preview </since_tizen>
53 [Obsolete("This has been deprecated in API12")]
54 public CircleSurface()
56 _handle = IntPtr.Zero;
60 /// Gets the handle for CircleSurface.
62 /// <since_tizen> preview </since_tizen>
63 [Obsolete("This has been deprecated in API12")]
64 public IntPtr Handle => _handle;
67 /// Deletes the given CircleSurface.
69 /// <since_tizen> preview </since_tizen>
70 [Obsolete("This has been deprecated in API12")]
73 if (Handle != IntPtr.Zero)
75 Interop.Eext.eext_circle_surface_del(Handle);
76 _handle = IntPtr.Zero;
80 internal static CircleSurface CreateCircleSurface(EvasObject obj)
82 if (obj is Conformant) return new CircleSurface(obj as Conformant);
83 else if (obj is Naviframe) return new CircleSurface(obj as Naviframe);
84 else if (obj is Layout) return new CircleSurface(obj as Layout);
85 else return new CircleSurface();