Merge "Add CircleSurface and Change Every circle object"
[platform/core/csapi/tizenfx.git] / src / ElmSharp.Wearable / ElmSharp.Wearable / CircleSurface.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4
5 namespace ElmSharp.Wearable
6 {
7     /// <summary>
8     /// The CircleSurface presents a surface for drawing circular feature of circle widgets
9     /// </summary>
10     public class CircleSurface
11     {
12         IntPtr _handle;
13
14         /// <summary>
15         /// Creates and initializes a new instance of the CircleSurface class with surface on the Conformant widget.
16         /// </summary>
17         /// <param name="conformant">Conformant widget to create a surface.</param>
18         public CircleSurface(Conformant conformant)
19         {
20             _handle = Interop.Eext.eext_circle_surface_conformant_add(conformant);
21         }
22
23         /// <summary>
24         /// Creates and initializes a new instance of the CircleSurface class with surface on the Layout widget.
25         /// </summary>
26         /// <param name="layout">Layout widget to create a surface.</param>
27         public CircleSurface(Layout layout)
28         {
29             _handle = Interop.Eext.eext_circle_surface_layout_add(layout);
30         }
31
32         /// <summary>
33         /// Creates and initializes a new instance of the CircleSurface class with surface on the Naviframe widget.
34         /// </summary>
35         /// <param name="naviframe">Naviframe widget to create a surface.</param>
36         public CircleSurface(Naviframe naviframe)
37         {
38             _handle = Interop.Eext.eext_circle_surface_naviframe_add(naviframe);
39         }
40
41         /// <summary>
42         /// Creates and initializes a new instance of the CircleSurface class with no surface
43         /// </summary>
44         public CircleSurface()
45         {
46             _handle = IntPtr.Zero;
47         }
48
49         public IntPtr Handle => _handle;
50     }
51 }