1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
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
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 {
17 if (((object)this).GetType() == typeof (PanesPart))
18 return Efl.Ui.PanesPartNativeInherit.GetEflClassStatic();
20 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
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
29 base(efl_ui_panes_part_class_get(), typeof(PanesPart), parent)
31 FinishInstantiation();
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)
36 register_event_proxies();
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)
44 throw new System.ArgumentNullException("obj");
45 return new PanesPart(obj.NativeHandle);
47 ///<summary>Verifies if the given object is equal to this one.</summary>
48 public override bool Equals(object obj)
50 var other = obj as Efl.Object;
53 return this.NativeHandle == other.NativeHandle;
55 ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
56 public override int GetHashCode()
58 return this.NativeHandle.ToInt32();
60 ///<summary>Turns the native pointer into a string representation.</summary>
61 public override String ToString()
63 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
65 protected override void register_event_proxies()
67 base.register_event_proxies();
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();
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();
83 /// <summary>Controls the relative minimum size of panes widget'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'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();
91 /// <summary>Controls the relative minimum size of panes widget'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'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();
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); }
105 /// <summary>Controls the relative minimum size of panes widget'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's minimum size.</value>
108 public double SplitRatioMin {
109 get { return GetSplitRatioMin(); }
110 set { SetSplitRatioMin( value); }
112 private static new IntPtr GetEflClassStatic()
114 return Efl.Ui.PanesPart.efl_ui_panes_part_class_get();
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)
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));
137 public override IntPtr GetEflClass()
139 return Efl.Ui.PanesPart.efl_ui_panes_part_class_get();
141 public static new IntPtr GetEflClassStatic()
143 return Efl.Ui.PanesPart.efl_ui_panes_part_class_get();
147 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_panes_part_hint_min_allow_get_delegate(System.IntPtr obj, System.IntPtr pd);
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)
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);
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);
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)));
169 private static efl_ui_panes_part_hint_min_allow_get_delegate efl_ui_panes_part_hint_min_allow_get_static_delegate;
172 private delegate void efl_ui_panes_part_hint_min_allow_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool allow);
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)
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) {
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);
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);
193 private static efl_ui_panes_part_hint_min_allow_set_delegate efl_ui_panes_part_hint_min_allow_set_static_delegate;
196 private delegate double efl_ui_panes_part_split_ratio_min_get_delegate(System.IntPtr obj, System.IntPtr pd);
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)
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);
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);
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)));
218 private static efl_ui_panes_part_split_ratio_min_get_delegate efl_ui_panes_part_split_ratio_min_get_static_delegate;
221 private delegate void efl_ui_panes_part_split_ratio_min_set_delegate(System.IntPtr obj, System.IntPtr pd, double size);
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)
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) {
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);
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);
242 private static efl_ui_panes_part_split_ratio_min_set_delegate efl_ui_panes_part_split_ratio_min_set_static_delegate;