61d3a4826d0fbcfa9436c3eaf2e24d70c3e537b6
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl_ui_panes_part.eo.cs
1 #pragma warning disable CS1591
2 using System;
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
5 using System.Linq;
6 using System.ComponentModel;
7 namespace Efl { namespace Ui { 
8 /// <summary>Elementary Panes internal part class</summary>
9 [PanesPartNativeInherit]
10 public class PanesPart : Efl.Ui.LayoutPartContent, Efl.Eo.IWrapper
11 {
12    public new static System.IntPtr klass = System.IntPtr.Zero;
13    public new static Efl.Ui.PanesPartNativeInherit nativeInherit = new Efl.Ui.PanesPartNativeInherit();
14    ///<summary>Pointer to the native class description.</summary>
15    public override System.IntPtr NativeClass {
16       get {
17          if (((object)this).GetType() == typeof (PanesPart))
18             return Efl.Ui.PanesPartNativeInherit.GetEflClassStatic();
19          else
20             return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
21       }
22    }
23    [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
24       efl_ui_panes_part_class_get();
25    ///<summary>Creates a new instance.</summary>
26    ///<param name="parent">Parent instance.</param>
27    public PanesPart(Efl.Object parent= null
28          ) :
29       base(efl_ui_panes_part_class_get(), typeof(PanesPart), parent)
30    {
31       FinishInstantiation();
32    }
33    ///<summary>Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
34    public PanesPart(System.IntPtr raw) : base(raw)
35    {
36             register_event_proxies();
37    }
38    ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
39    protected PanesPart(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
40    ///<summary>Casts obj into an instance of this type.</summary>
41    public new static PanesPart static_cast(Efl.Object obj)
42    {
43       if (obj == null)
44          throw new System.ArgumentNullException("obj");
45       return new PanesPart(obj.NativeHandle);
46    }
47    ///<summary>Verifies if the given object is equal to this one.</summary>
48    public override bool Equals(object obj)
49    {
50       var other = obj as Efl.Object;
51       if (other == null)
52          return false;
53       return this.NativeHandle == other.NativeHandle;
54    }
55    ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
56    public override int GetHashCode()
57    {
58       return this.NativeHandle.ToInt32();
59    }
60    ///<summary>Turns the native pointer into a string representation.</summary>
61    public override String ToString()
62    {
63       return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
64    }
65    protected override void register_event_proxies()
66    {
67       base.register_event_proxies();
68    }
69    /// <summary>Allows the user to set size hints to be respected and ignored combined with a minimum size. If this flag is set, the minimum size set by <see cref="Efl.Gfx.Hint.SetHintSizeMin"/> is respected forcefully.</summary>
70    /// <returns>If <c>true</c> minimum size is forced</returns>
71    virtual public bool GetHintMinAllow() {
72        var _ret_var = Efl.Ui.PanesPartNativeInherit.efl_ui_panes_part_hint_min_allow_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
73       Eina.Error.RaiseIfUnhandledException();
74       return _ret_var;
75  }
76    /// <summary>Allows the user to set size hints to be respected and ignored combined with a minimum size. If this flag is set, the minimum size set by <see cref="Efl.Gfx.Hint.SetHintSizeMin"/> is respected forcefully.</summary>
77    /// <param name="allow">If <c>true</c> minimum size is forced</param>
78    /// <returns></returns>
79    virtual public  void SetHintMinAllow( bool allow) {
80                          Efl.Ui.PanesPartNativeInherit.efl_ui_panes_part_hint_min_allow_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), allow);
81       Eina.Error.RaiseIfUnhandledException();
82                    }
83    /// <summary>Controls the relative minimum size of panes widget&apos;s part.
84    /// If <see cref="Efl.Gfx.Hint.SetHintSizeMin"/> is also used along with <see cref="Efl.Ui.PanesPart.SetSplitRatioMin"/>, maximum value is set as minimum size to part.</summary>
85    /// <returns>Value between 0.0 and 1.0 representing size proportion of first part&apos;s minimum size.</returns>
86    virtual public double GetSplitRatioMin() {
87        var _ret_var = Efl.Ui.PanesPartNativeInherit.efl_ui_panes_part_split_ratio_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
88       Eina.Error.RaiseIfUnhandledException();
89       return _ret_var;
90  }
91    /// <summary>Controls the relative minimum size of panes widget&apos;s part.
92    /// If <see cref="Efl.Gfx.Hint.SetHintSizeMin"/> is also used along with <see cref="Efl.Ui.PanesPart.SetSplitRatioMin"/>, maximum value is set as minimum size to part.</summary>
93    /// <param name="size">Value between 0.0 and 1.0 representing size proportion of first part&apos;s minimum size.</param>
94    /// <returns></returns>
95    virtual public  void SetSplitRatioMin( double size) {
96                          Efl.Ui.PanesPartNativeInherit.efl_ui_panes_part_split_ratio_min_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), size);
97       Eina.Error.RaiseIfUnhandledException();
98                    }
99    /// <summary>Allows the user to set size hints to be respected and ignored combined with a minimum size. If this flag is set, the minimum size set by <see cref="Efl.Gfx.Hint.SetHintSizeMin"/> is respected forcefully.</summary>
100 /// <value>If <c>true</c> minimum size is forced</value>
101    public bool HintMinAllow {
102       get { return GetHintMinAllow(); }
103       set { SetHintMinAllow( value); }
104    }
105    /// <summary>Controls the relative minimum size of panes widget&apos;s part.
106 /// If <see cref="Efl.Gfx.Hint.SetHintSizeMin"/> is also used along with <see cref="Efl.Ui.PanesPart.SetSplitRatioMin"/>, maximum value is set as minimum size to part.</summary>
107 /// <value>Value between 0.0 and 1.0 representing size proportion of first part&apos;s minimum size.</value>
108    public double SplitRatioMin {
109       get { return GetSplitRatioMin(); }
110       set { SetSplitRatioMin( value); }
111    }
112    private static new  IntPtr GetEflClassStatic()
113    {
114       return Efl.Ui.PanesPart.efl_ui_panes_part_class_get();
115    }
116 }
117 public class PanesPartNativeInherit : Efl.Ui.LayoutPartContentNativeInherit{
118    public new  static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary);
119    public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
120    {
121       var descs = new System.Collections.Generic.List<Efl_Op_Description>();
122       if (efl_ui_panes_part_hint_min_allow_get_static_delegate == null)
123       efl_ui_panes_part_hint_min_allow_get_static_delegate = new efl_ui_panes_part_hint_min_allow_get_delegate(hint_min_allow_get);
124       descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_panes_part_hint_min_allow_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_part_hint_min_allow_get_static_delegate)});
125       if (efl_ui_panes_part_hint_min_allow_set_static_delegate == null)
126       efl_ui_panes_part_hint_min_allow_set_static_delegate = new efl_ui_panes_part_hint_min_allow_set_delegate(hint_min_allow_set);
127       descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_panes_part_hint_min_allow_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_part_hint_min_allow_set_static_delegate)});
128       if (efl_ui_panes_part_split_ratio_min_get_static_delegate == null)
129       efl_ui_panes_part_split_ratio_min_get_static_delegate = new efl_ui_panes_part_split_ratio_min_get_delegate(split_ratio_min_get);
130       descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_panes_part_split_ratio_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_part_split_ratio_min_get_static_delegate)});
131       if (efl_ui_panes_part_split_ratio_min_set_static_delegate == null)
132       efl_ui_panes_part_split_ratio_min_set_static_delegate = new efl_ui_panes_part_split_ratio_min_set_delegate(split_ratio_min_set);
133       descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_panes_part_split_ratio_min_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_part_split_ratio_min_set_static_delegate)});
134       descs.AddRange(base.GetEoOps(type));
135       return descs;
136    }
137    public override IntPtr GetEflClass()
138    {
139       return Efl.Ui.PanesPart.efl_ui_panes_part_class_get();
140    }
141    public static new  IntPtr GetEflClassStatic()
142    {
143       return Efl.Ui.PanesPart.efl_ui_panes_part_class_get();
144    }
145
146
147     [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_panes_part_hint_min_allow_get_delegate(System.IntPtr obj, System.IntPtr pd);
148
149
150     [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_ui_panes_part_hint_min_allow_get_api_delegate(System.IntPtr obj);
151     public static Efl.Eo.FunctionWrapper<efl_ui_panes_part_hint_min_allow_get_api_delegate> efl_ui_panes_part_hint_min_allow_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_panes_part_hint_min_allow_get_api_delegate>(_Module, "efl_ui_panes_part_hint_min_allow_get");
152     private static bool hint_min_allow_get(System.IntPtr obj, System.IntPtr pd)
153    {
154       Eina.Log.Debug("function efl_ui_panes_part_hint_min_allow_get was called");
155       Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
156       if(wrapper != null) {
157                   bool _ret_var = default(bool);
158          try {
159             _ret_var = ((PanesPart)wrapper).GetHintMinAllow();
160          } catch (Exception e) {
161             Eina.Log.Warning($"Callback error: {e.ToString()}");
162             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
163          }
164       return _ret_var;
165       } else {
166          return efl_ui_panes_part_hint_min_allow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
167       }
168    }
169    private static efl_ui_panes_part_hint_min_allow_get_delegate efl_ui_panes_part_hint_min_allow_get_static_delegate;
170
171
172     private delegate  void efl_ui_panes_part_hint_min_allow_set_delegate(System.IntPtr obj, System.IntPtr pd,  [MarshalAs(UnmanagedType.U1)]  bool allow);
173
174
175     public delegate  void efl_ui_panes_part_hint_min_allow_set_api_delegate(System.IntPtr obj,  [MarshalAs(UnmanagedType.U1)]  bool allow);
176     public static Efl.Eo.FunctionWrapper<efl_ui_panes_part_hint_min_allow_set_api_delegate> efl_ui_panes_part_hint_min_allow_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_panes_part_hint_min_allow_set_api_delegate>(_Module, "efl_ui_panes_part_hint_min_allow_set");
177     private static  void hint_min_allow_set(System.IntPtr obj, System.IntPtr pd,  bool allow)
178    {
179       Eina.Log.Debug("function efl_ui_panes_part_hint_min_allow_set was called");
180       Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
181       if(wrapper != null) {
182                                     
183          try {
184             ((PanesPart)wrapper).SetHintMinAllow( allow);
185          } catch (Exception e) {
186             Eina.Log.Warning($"Callback error: {e.ToString()}");
187             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
188          }
189                         } else {
190          efl_ui_panes_part_hint_min_allow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  allow);
191       }
192    }
193    private static efl_ui_panes_part_hint_min_allow_set_delegate efl_ui_panes_part_hint_min_allow_set_static_delegate;
194
195
196     private delegate double efl_ui_panes_part_split_ratio_min_get_delegate(System.IntPtr obj, System.IntPtr pd);
197
198
199     public delegate double efl_ui_panes_part_split_ratio_min_get_api_delegate(System.IntPtr obj);
200     public static Efl.Eo.FunctionWrapper<efl_ui_panes_part_split_ratio_min_get_api_delegate> efl_ui_panes_part_split_ratio_min_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_panes_part_split_ratio_min_get_api_delegate>(_Module, "efl_ui_panes_part_split_ratio_min_get");
201     private static double split_ratio_min_get(System.IntPtr obj, System.IntPtr pd)
202    {
203       Eina.Log.Debug("function efl_ui_panes_part_split_ratio_min_get was called");
204       Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
205       if(wrapper != null) {
206                   double _ret_var = default(double);
207          try {
208             _ret_var = ((PanesPart)wrapper).GetSplitRatioMin();
209          } catch (Exception e) {
210             Eina.Log.Warning($"Callback error: {e.ToString()}");
211             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
212          }
213       return _ret_var;
214       } else {
215          return efl_ui_panes_part_split_ratio_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
216       }
217    }
218    private static efl_ui_panes_part_split_ratio_min_get_delegate efl_ui_panes_part_split_ratio_min_get_static_delegate;
219
220
221     private delegate  void efl_ui_panes_part_split_ratio_min_set_delegate(System.IntPtr obj, System.IntPtr pd,   double size);
222
223
224     public delegate  void efl_ui_panes_part_split_ratio_min_set_api_delegate(System.IntPtr obj,   double size);
225     public static Efl.Eo.FunctionWrapper<efl_ui_panes_part_split_ratio_min_set_api_delegate> efl_ui_panes_part_split_ratio_min_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_panes_part_split_ratio_min_set_api_delegate>(_Module, "efl_ui_panes_part_split_ratio_min_set");
226     private static  void split_ratio_min_set(System.IntPtr obj, System.IntPtr pd,  double size)
227    {
228       Eina.Log.Debug("function efl_ui_panes_part_split_ratio_min_set was called");
229       Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
230       if(wrapper != null) {
231                                     
232          try {
233             ((PanesPart)wrapper).SetSplitRatioMin( size);
234          } catch (Exception e) {
235             Eina.Log.Warning($"Callback error: {e.ToString()}");
236             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
237          }
238                         } else {
239          efl_ui_panes_part_split_ratio_min_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  size);
240       }
241    }
242    private static efl_ui_panes_part_split_ratio_min_set_delegate efl_ui_panes_part_split_ratio_min_set_static_delegate;
243 }
244 } }