[NUI] remove "_" and refactoring naming to pascal case.
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI.Wearable / src / public / WatchView.cs
1 /*
2  * Copyright(c) 2020 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17 using System;
18 using System.ComponentModel;
19 using System.Runtime.InteropServices;
20 using Tizen.NUI.BaseComponents;
21
22 namespace Tizen.NUI.Wearable
23 {
24     
25
26     /// <summary>
27     /// The WatchView is a class for displaying the watch.<br />
28     /// </summary>
29     /// <since_tizen> 6 </since_tizen>
30     [EditorBrowsable(EditorBrowsableState.Never)]
31     public class WatchView : View
32     {
33         /// <summary>
34         /// Creates a new WatchView.
35         /// </summary>
36         /// <since_tizen> 6 </since_tizen>
37         [EditorBrowsable(EditorBrowsableState.Never)]
38         public WatchView(Window window, string watchId, string contentInfo, int width, int height) : this(Interop.WatchView.New(Window.getCPtr(window), watchId, contentInfo, width, height), true)
39         {
40             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
41
42         }
43
44         internal WatchView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.WatchView.Upcast(cPtr), cMemoryOwn)
45         {
46         }
47         internal WatchView(WatchView handle) : this(Interop.WatchView.NewWatchView(WatchView.getCPtr(handle)), true)
48         {
49             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
50         }
51
52         /// <summary>
53         /// Pauses a given Watch.
54         /// </summary>
55         /// <returns>True on success, false otherwise.</returns>
56         /// <since_tizen> 6 </since_tizen>
57         [EditorBrowsable(EditorBrowsableState.Never)]
58         public bool PauseWatch()
59         {
60             bool ret = Interop.WatchView.PauseWatch(swigCPtr);
61             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
62             return ret;
63         }
64
65         /// <summary>
66         /// Resumes a given Watch.
67         /// </summary>
68         /// <returns>True on success, false otherwise.</returns>
69         /// <since_tizen> 6 </since_tizen>
70         [EditorBrowsable(EditorBrowsableState.Never)]
71         public bool ResumeWatch()
72         {
73             bool ret = Interop.WatchView.ResumeWatch(swigCPtr);
74             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
75             return ret;
76         }
77
78         internal static WatchView DownCast(BaseHandle handle)
79         {
80             WatchView ret = new WatchView(Interop.WatchView.DownCast(BaseHandle.getCPtr(handle)), true);
81             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
82             return ret;
83         }
84
85         internal static WatchView GetWatchViewFromPtr(global::System.IntPtr cPtr)
86         {
87             WatchView ret = new WatchView(cPtr, false);
88             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
89             return ret;
90         }
91
92         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(WatchView obj)
93         {
94             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
95         }
96
97         internal WatchView Assign(WatchView handle)
98         {
99             WatchView ret = new WatchView(Interop.WatchView.Assign(swigCPtr, WatchView.getCPtr(handle)), false);
100             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
101             return ret;
102         }
103
104         /// <summary>
105         /// To make the Button instance be disposed.
106         /// </summary>
107         /// <since_tizen> 6 </since_tizen>
108         [EditorBrowsable(EditorBrowsableState.Never)]
109         protected override void Dispose(DisposeTypes type)
110         {
111             base.Dispose(type);
112         }
113     }
114
115 }