+#define EFL_BETA
#pragma warning disable CS1591
using System;
using System.Runtime.InteropServices;
/// <summary>A Button Spin.
/// This is a widget which allows the user to increase or decrease numeric values using the arrow buttons or to edit values directly by clicking over them and inputting new ones.</summary>
+/// <remarks>This is a <b>BETA</b> class. It can be modified or removed in the future. Do not use it for product development.</remarks>
[Efl.Ui.SpinButton.NativeMethods]
[Efl.Eo.BindingEntity]
-public class SpinButton : Efl.Ui.Spin, Efl.Ui.ILayoutOrientable, Efl.Ui.Focus.IComposition
+public class SpinButton : Efl.Ui.Spin, Efl.Ui.ILayoutOrientable, Efl.Ui.IRangeInteractive, Efl.Ui.Focus.IComposition
{
- ///<summary>Pointer to the native class description.</summary>
+ /// <summary>Pointer to the native class description.</summary>
public override System.IntPtr NativeClass
{
get
FinishInstantiation();
}
- /// <summary>Constructor to be used when objects are expected to be constructed from native code.</summary>
+ /// <summary>Subclasses should override this constructor if they are expected to be instantiated from native code.
+ /// Do not call this constructor directly.</summary>
/// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
protected SpinButton(ConstructingHandle ch) : base(ch)
{
{
}
- /// <summary>Called when spin delay is changed.</summary>
- public event EventHandler DelayChangedEvt
+ /// <summary>Called when the widget's value has changed and has remained unchanged for 0.2s. This allows filtering out unwanted "noise" from the widget if you are only interested in its final position. Use this event instead of <see cref="Efl.Ui.IRangeDisplay.ChangedEvt"/> if you are going to perform a costly operation on its handler.</summary>
+ public event EventHandler SteadyEvt
{
add
{
}
};
- string key = "_EFL_UI_SPIN_BUTTON_EVENT_DELAY_CHANGED";
+ string key = "_EFL_UI_RANGE_EVENT_STEADY";
AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value);
}
}
{
lock (eflBindingEventLock)
{
- string key = "_EFL_UI_SPIN_BUTTON_EVENT_DELAY_CHANGED";
+ string key = "_EFL_UI_RANGE_EVENT_STEADY";
RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
}
}
}
- ///<summary>Method to raise event DelayChangedEvt.</summary>
- public void OnDelayChangedEvt(EventArgs e)
+ /// <summary>Method to raise event SteadyEvt.</summary>
+ public void OnSteadyEvt(EventArgs e)
{
- var key = "_EFL_UI_SPIN_BUTTON_EVENT_DELAY_CHANGED";
+ var key = "_EFL_UI_RANGE_EVENT_STEADY";
IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key);
if (desc == IntPtr.Zero)
{
///
/// When the user decrements the value (using left or bottom arrow), it will display $50.</summary>
/// <returns><c>true</c> to enable circulate or <c>false</c> to disable it.</returns>
- virtual public bool GetCirculate() {
- var _ret_var = Efl.Ui.SpinButton.NativeMethods.efl_ui_spin_button_circulate_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
+ virtual public bool GetWraparound() {
+ var _ret_var = Efl.Ui.SpinButton.NativeMethods.efl_ui_spin_button_wraparound_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
///
/// When the user decrements the value (using left or bottom arrow), it will display $50.</summary>
/// <param name="circulate"><c>true</c> to enable circulate or <c>false</c> to disable it.</param>
- virtual public void SetCirculate(bool circulate) {
- Efl.Ui.SpinButton.NativeMethods.efl_ui_spin_button_circulate_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),circulate);
+ virtual public void SetWraparound(bool circulate) {
+ Efl.Ui.SpinButton.NativeMethods.efl_ui_spin_button_wraparound_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),circulate);
Eina.Error.RaiseIfUnhandledException();
}
/// <summary>Control whether the spin can be directly edited by the user.
/// Spin objects can have editing disabled, in which case they can only be changed by using arrows. This is useful for situations where you don't want your users to write their own value. It's especially useful when using special values. The user can see the real values instead of special label when editing.</summary>
/// <returns><c>true</c> to allow users to edit it or <c>false</c> to don't allow users to edit it directly.</returns>
- virtual public bool GetEditable() {
- var _ret_var = Efl.Ui.SpinButton.NativeMethods.efl_ui_spin_button_editable_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
+ virtual public bool GetDirectTextInput() {
+ var _ret_var = Efl.Ui.SpinButton.NativeMethods.efl_ui_spin_button_direct_text_input_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// <summary>Control whether the spin can be directly edited by the user.
/// Spin objects can have editing disabled, in which case they can only be changed by using arrows. This is useful for situations where you don't want your users to write their own value. It's especially useful when using special values. The user can see the real values instead of special label when editing.</summary>
- /// <param name="editable"><c>true</c> to allow users to edit it or <c>false</c> to don't allow users to edit it directly.</param>
- virtual public void SetEditable(bool editable) {
- Efl.Ui.SpinButton.NativeMethods.efl_ui_spin_button_editable_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),editable);
+ /// <param name="direct_text_input"><c>true</c> to allow users to edit it or <c>false</c> to don't allow users to edit it directly.</param>
+ virtual public void SetDirectTextInput(bool direct_text_input) {
+ Efl.Ui.SpinButton.NativeMethods.efl_ui_spin_button_direct_text_input_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),direct_text_input);
Eina.Error.RaiseIfUnhandledException();
}
/// <summary>Control the direction of a given widget.
Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),dir);
Eina.Error.RaiseIfUnhandledException();
}
+ /// <summary>Control the step used to increment or decrement values for given widget.
+ /// This value will be incremented or decremented to the displayed value.
+ ///
+ /// By default step value is equal to 1.
+ ///
+ /// Warning: The step value should be bigger than 0.</summary>
+ /// <returns>The step value.</returns>
+ virtual public double GetRangeStep() {
+ var _ret_var = Efl.Ui.IRangeInteractiveConcrete.NativeMethods.efl_ui_range_step_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
+ Eina.Error.RaiseIfUnhandledException();
+ return _ret_var;
+ }
+ /// <summary>Control the step used to increment or decrement values for given widget.
+ /// This value will be incremented or decremented to the displayed value.
+ ///
+ /// By default step value is equal to 1.
+ ///
+ /// Warning: The step value should be bigger than 0.</summary>
+ /// <param name="step">The step value.</param>
+ virtual public void SetRangeStep(double step) {
+ Efl.Ui.IRangeInteractiveConcrete.NativeMethods.efl_ui_range_step_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),step);
+ Eina.Error.RaiseIfUnhandledException();
+ }
/// <summary>Set the order of elements that will be used for composition
/// Elements of the list can be either an Efl.Ui.Widget, an Efl.Ui.Focus.Object or an Efl.Gfx.
///
///
/// When the user decrements the value (using left or bottom arrow), it will display $50.</summary>
/// <value><c>true</c> to enable circulate or <c>false</c> to disable it.</value>
- public bool Circulate {
- get { return GetCirculate(); }
- set { SetCirculate(value); }
+ public bool Wraparound {
+ get { return GetWraparound(); }
+ set { SetWraparound(value); }
}
/// <summary>Control whether the spin can be directly edited by the user.
/// Spin objects can have editing disabled, in which case they can only be changed by using arrows. This is useful for situations where you don't want your users to write their own value. It's especially useful when using special values. The user can see the real values instead of special label when editing.</summary>
/// <value><c>true</c> to allow users to edit it or <c>false</c> to don't allow users to edit it directly.</value>
- public bool Editable {
- get { return GetEditable(); }
- set { SetEditable(value); }
+ public bool DirectTextInput {
+ get { return GetDirectTextInput(); }
+ set { SetDirectTextInput(value); }
}
/// <summary>Control the direction of a given widget.
/// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
get { return GetOrientation(); }
set { SetOrientation(value); }
}
+ /// <summary>Control the step used to increment or decrement values for given widget.
+ /// This value will be incremented or decremented to the displayed value.
+ ///
+ /// By default step value is equal to 1.
+ ///
+ /// Warning: The step value should be bigger than 0.</summary>
+ /// <value>The step value.</value>
+ public double RangeStep {
+ get { return GetRangeStep(); }
+ set { SetRangeStep(value); }
+ }
/// <summary>Set the order of elements that will be used for composition
/// Elements of the list can be either an Efl.Ui.Widget, an Efl.Ui.Focus.Object or an Efl.Gfx.
///
var descs = new System.Collections.Generic.List<Efl_Op_Description>();
var methods = Efl.Eo.Globals.GetUserMethods(type);
- if (efl_ui_spin_button_circulate_get_static_delegate == null)
+ if (efl_ui_spin_button_wraparound_get_static_delegate == null)
{
- efl_ui_spin_button_circulate_get_static_delegate = new efl_ui_spin_button_circulate_get_delegate(circulate_get);
+ efl_ui_spin_button_wraparound_get_static_delegate = new efl_ui_spin_button_wraparound_get_delegate(wraparound_get);
}
- if (methods.FirstOrDefault(m => m.Name == "GetCirculate") != null)
+ if (methods.FirstOrDefault(m => m.Name == "GetWraparound") != null)
{
- descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_button_circulate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_circulate_get_static_delegate) });
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_button_wraparound_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_wraparound_get_static_delegate) });
}
- if (efl_ui_spin_button_circulate_set_static_delegate == null)
+ if (efl_ui_spin_button_wraparound_set_static_delegate == null)
{
- efl_ui_spin_button_circulate_set_static_delegate = new efl_ui_spin_button_circulate_set_delegate(circulate_set);
+ efl_ui_spin_button_wraparound_set_static_delegate = new efl_ui_spin_button_wraparound_set_delegate(wraparound_set);
}
- if (methods.FirstOrDefault(m => m.Name == "SetCirculate") != null)
+ if (methods.FirstOrDefault(m => m.Name == "SetWraparound") != null)
{
- descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_button_circulate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_circulate_set_static_delegate) });
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_button_wraparound_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_wraparound_set_static_delegate) });
}
- if (efl_ui_spin_button_editable_get_static_delegate == null)
+ if (efl_ui_spin_button_direct_text_input_get_static_delegate == null)
{
- efl_ui_spin_button_editable_get_static_delegate = new efl_ui_spin_button_editable_get_delegate(editable_get);
+ efl_ui_spin_button_direct_text_input_get_static_delegate = new efl_ui_spin_button_direct_text_input_get_delegate(direct_text_input_get);
}
- if (methods.FirstOrDefault(m => m.Name == "GetEditable") != null)
+ if (methods.FirstOrDefault(m => m.Name == "GetDirectTextInput") != null)
{
- descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_button_editable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_editable_get_static_delegate) });
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_button_direct_text_input_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_direct_text_input_get_static_delegate) });
}
- if (efl_ui_spin_button_editable_set_static_delegate == null)
+ if (efl_ui_spin_button_direct_text_input_set_static_delegate == null)
{
- efl_ui_spin_button_editable_set_static_delegate = new efl_ui_spin_button_editable_set_delegate(editable_set);
+ efl_ui_spin_button_direct_text_input_set_static_delegate = new efl_ui_spin_button_direct_text_input_set_delegate(direct_text_input_set);
}
- if (methods.FirstOrDefault(m => m.Name == "SetEditable") != null)
+ if (methods.FirstOrDefault(m => m.Name == "SetDirectTextInput") != null)
{
- descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_button_editable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_editable_set_static_delegate) });
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_button_direct_text_input_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_direct_text_input_set_static_delegate) });
}
if (efl_ui_layout_orientation_get_static_delegate == null)
descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_orientation_set_static_delegate) });
}
+ if (efl_ui_range_step_get_static_delegate == null)
+ {
+ efl_ui_range_step_get_static_delegate = new efl_ui_range_step_get_delegate(range_step_get);
+ }
+
+ if (methods.FirstOrDefault(m => m.Name == "GetRangeStep") != null)
+ {
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_step_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_step_get_static_delegate) });
+ }
+
+ if (efl_ui_range_step_set_static_delegate == null)
+ {
+ efl_ui_range_step_set_static_delegate = new efl_ui_range_step_set_delegate(range_step_set);
+ }
+
+ if (methods.FirstOrDefault(m => m.Name == "SetRangeStep") != null)
+ {
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_step_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_step_set_static_delegate) });
+ }
+
if (efl_ui_focus_composition_elements_get_static_delegate == null)
{
efl_ui_focus_composition_elements_get_static_delegate = new efl_ui_focus_composition_elements_get_delegate(composition_elements_get);
#pragma warning disable CA1707, CS1591, SA1300, SA1600
[return: MarshalAs(UnmanagedType.U1)]
- private delegate bool efl_ui_spin_button_circulate_get_delegate(System.IntPtr obj, System.IntPtr pd);
+ private delegate bool efl_ui_spin_button_wraparound_get_delegate(System.IntPtr obj, System.IntPtr pd);
[return: MarshalAs(UnmanagedType.U1)]
- public delegate bool efl_ui_spin_button_circulate_get_api_delegate(System.IntPtr obj);
+ public delegate bool efl_ui_spin_button_wraparound_get_api_delegate(System.IntPtr obj);
- public static Efl.Eo.FunctionWrapper<efl_ui_spin_button_circulate_get_api_delegate> efl_ui_spin_button_circulate_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spin_button_circulate_get_api_delegate>(Module, "efl_ui_spin_button_circulate_get");
+ public static Efl.Eo.FunctionWrapper<efl_ui_spin_button_wraparound_get_api_delegate> efl_ui_spin_button_wraparound_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spin_button_wraparound_get_api_delegate>(Module, "efl_ui_spin_button_wraparound_get");
- private static bool circulate_get(System.IntPtr obj, System.IntPtr pd)
+ private static bool wraparound_get(System.IntPtr obj, System.IntPtr pd)
{
- Eina.Log.Debug("function efl_ui_spin_button_circulate_get was called");
+ Eina.Log.Debug("function efl_ui_spin_button_wraparound_get was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
bool _ret_var = default(bool);
try
{
- _ret_var = ((SpinButton)ws.Target).GetCirculate();
+ _ret_var = ((SpinButton)ws.Target).GetWraparound();
}
catch (Exception e)
{
}
else
{
- return efl_ui_spin_button_circulate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
+ return efl_ui_spin_button_wraparound_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
}
}
- private static efl_ui_spin_button_circulate_get_delegate efl_ui_spin_button_circulate_get_static_delegate;
+ private static efl_ui_spin_button_wraparound_get_delegate efl_ui_spin_button_wraparound_get_static_delegate;
- private delegate void efl_ui_spin_button_circulate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool circulate);
+ private delegate void efl_ui_spin_button_wraparound_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool circulate);
- public delegate void efl_ui_spin_button_circulate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool circulate);
+ public delegate void efl_ui_spin_button_wraparound_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool circulate);
- public static Efl.Eo.FunctionWrapper<efl_ui_spin_button_circulate_set_api_delegate> efl_ui_spin_button_circulate_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spin_button_circulate_set_api_delegate>(Module, "efl_ui_spin_button_circulate_set");
+ public static Efl.Eo.FunctionWrapper<efl_ui_spin_button_wraparound_set_api_delegate> efl_ui_spin_button_wraparound_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spin_button_wraparound_set_api_delegate>(Module, "efl_ui_spin_button_wraparound_set");
- private static void circulate_set(System.IntPtr obj, System.IntPtr pd, bool circulate)
+ private static void wraparound_set(System.IntPtr obj, System.IntPtr pd, bool circulate)
{
- Eina.Log.Debug("function efl_ui_spin_button_circulate_set was called");
+ Eina.Log.Debug("function efl_ui_spin_button_wraparound_set was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
try
{
- ((SpinButton)ws.Target).SetCirculate(circulate);
+ ((SpinButton)ws.Target).SetWraparound(circulate);
}
catch (Exception e)
{
}
else
{
- efl_ui_spin_button_circulate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), circulate);
+ efl_ui_spin_button_wraparound_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), circulate);
}
}
- private static efl_ui_spin_button_circulate_set_delegate efl_ui_spin_button_circulate_set_static_delegate;
+ private static efl_ui_spin_button_wraparound_set_delegate efl_ui_spin_button_wraparound_set_static_delegate;
[return: MarshalAs(UnmanagedType.U1)]
- private delegate bool efl_ui_spin_button_editable_get_delegate(System.IntPtr obj, System.IntPtr pd);
+ private delegate bool efl_ui_spin_button_direct_text_input_get_delegate(System.IntPtr obj, System.IntPtr pd);
[return: MarshalAs(UnmanagedType.U1)]
- public delegate bool efl_ui_spin_button_editable_get_api_delegate(System.IntPtr obj);
+ public delegate bool efl_ui_spin_button_direct_text_input_get_api_delegate(System.IntPtr obj);
- public static Efl.Eo.FunctionWrapper<efl_ui_spin_button_editable_get_api_delegate> efl_ui_spin_button_editable_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spin_button_editable_get_api_delegate>(Module, "efl_ui_spin_button_editable_get");
+ public static Efl.Eo.FunctionWrapper<efl_ui_spin_button_direct_text_input_get_api_delegate> efl_ui_spin_button_direct_text_input_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spin_button_direct_text_input_get_api_delegate>(Module, "efl_ui_spin_button_direct_text_input_get");
- private static bool editable_get(System.IntPtr obj, System.IntPtr pd)
+ private static bool direct_text_input_get(System.IntPtr obj, System.IntPtr pd)
{
- Eina.Log.Debug("function efl_ui_spin_button_editable_get was called");
+ Eina.Log.Debug("function efl_ui_spin_button_direct_text_input_get was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
bool _ret_var = default(bool);
try
{
- _ret_var = ((SpinButton)ws.Target).GetEditable();
+ _ret_var = ((SpinButton)ws.Target).GetDirectTextInput();
}
catch (Exception e)
{
}
else
{
- return efl_ui_spin_button_editable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
+ return efl_ui_spin_button_direct_text_input_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
}
}
- private static efl_ui_spin_button_editable_get_delegate efl_ui_spin_button_editable_get_static_delegate;
+ private static efl_ui_spin_button_direct_text_input_get_delegate efl_ui_spin_button_direct_text_input_get_static_delegate;
- private delegate void efl_ui_spin_button_editable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool editable);
+ private delegate void efl_ui_spin_button_direct_text_input_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool direct_text_input);
- public delegate void efl_ui_spin_button_editable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool editable);
+ public delegate void efl_ui_spin_button_direct_text_input_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool direct_text_input);
- public static Efl.Eo.FunctionWrapper<efl_ui_spin_button_editable_set_api_delegate> efl_ui_spin_button_editable_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spin_button_editable_set_api_delegate>(Module, "efl_ui_spin_button_editable_set");
+ public static Efl.Eo.FunctionWrapper<efl_ui_spin_button_direct_text_input_set_api_delegate> efl_ui_spin_button_direct_text_input_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spin_button_direct_text_input_set_api_delegate>(Module, "efl_ui_spin_button_direct_text_input_set");
- private static void editable_set(System.IntPtr obj, System.IntPtr pd, bool editable)
+ private static void direct_text_input_set(System.IntPtr obj, System.IntPtr pd, bool direct_text_input)
{
- Eina.Log.Debug("function efl_ui_spin_button_editable_set was called");
+ Eina.Log.Debug("function efl_ui_spin_button_direct_text_input_set was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
try
{
- ((SpinButton)ws.Target).SetEditable(editable);
+ ((SpinButton)ws.Target).SetDirectTextInput(direct_text_input);
}
catch (Exception e)
{
}
else
{
- efl_ui_spin_button_editable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), editable);
+ efl_ui_spin_button_direct_text_input_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direct_text_input);
}
}
- private static efl_ui_spin_button_editable_set_delegate efl_ui_spin_button_editable_set_static_delegate;
+ private static efl_ui_spin_button_direct_text_input_set_delegate efl_ui_spin_button_direct_text_input_set_static_delegate;
private delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd);
private static efl_ui_layout_orientation_set_delegate efl_ui_layout_orientation_set_static_delegate;
+ private delegate double efl_ui_range_step_get_delegate(System.IntPtr obj, System.IntPtr pd);
+
+
+ public delegate double efl_ui_range_step_get_api_delegate(System.IntPtr obj);
+
+ public static Efl.Eo.FunctionWrapper<efl_ui_range_step_get_api_delegate> efl_ui_range_step_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_range_step_get_api_delegate>(Module, "efl_ui_range_step_get");
+
+ private static double range_step_get(System.IntPtr obj, System.IntPtr pd)
+ {
+ Eina.Log.Debug("function efl_ui_range_step_get was called");
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
+ {
+ double _ret_var = default(double);
+ try
+ {
+ _ret_var = ((SpinButton)ws.Target).GetRangeStep();
+ }
+ catch (Exception e)
+ {
+ Eina.Log.Warning($"Callback error: {e.ToString()}");
+ Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ }
+
+ return _ret_var;
+
+ }
+ else
+ {
+ return efl_ui_range_step_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
+ }
+ }
+
+ private static efl_ui_range_step_get_delegate efl_ui_range_step_get_static_delegate;
+
+
+ private delegate void efl_ui_range_step_set_delegate(System.IntPtr obj, System.IntPtr pd, double step);
+
+
+ public delegate void efl_ui_range_step_set_api_delegate(System.IntPtr obj, double step);
+
+ public static Efl.Eo.FunctionWrapper<efl_ui_range_step_set_api_delegate> efl_ui_range_step_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_range_step_set_api_delegate>(Module, "efl_ui_range_step_set");
+
+ private static void range_step_set(System.IntPtr obj, System.IntPtr pd, double step)
+ {
+ Eina.Log.Debug("function efl_ui_range_step_set was called");
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
+ {
+
+ try
+ {
+ ((SpinButton)ws.Target).SetRangeStep(step);
+ }
+ catch (Exception e)
+ {
+ Eina.Log.Warning($"Callback error: {e.ToString()}");
+ Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ }
+
+
+ }
+ else
+ {
+ efl_ui_range_step_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step);
+ }
+ }
+
+ private static efl_ui_range_step_set_delegate efl_ui_range_step_set_static_delegate;
+
+
private delegate System.IntPtr efl_ui_focus_composition_elements_get_delegate(System.IntPtr obj, System.IntPtr pd);
}
+#if EFL_BETA
+#pragma warning disable CS1591
+public static class Efl_UiSpinButton_ExtensionMethods {
+ public static Efl.BindableProperty<bool> Wraparound<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.SpinButton, T>magic = null) where T : Efl.Ui.SpinButton {
+ return new Efl.BindableProperty<bool>("wraparound", fac);
+ }
+
+ public static Efl.BindableProperty<bool> DirectTextInput<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.SpinButton, T>magic = null) where T : Efl.Ui.SpinButton {
+ return new Efl.BindableProperty<bool>("direct_text_input", fac);
+ }
+
+ public static Efl.BindableProperty<Efl.Ui.LayoutOrientation> Orientation<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.SpinButton, T>magic = null) where T : Efl.Ui.SpinButton {
+ return new Efl.BindableProperty<Efl.Ui.LayoutOrientation>("orientation", fac);
+ }
+
+ public static Efl.BindableProperty<double> RangeStep<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.SpinButton, T>magic = null) where T : Efl.Ui.SpinButton {
+ return new Efl.BindableProperty<double>("range_step", fac);
+ }
+
+ public static Efl.BindableProperty<Eina.List<Efl.Gfx.IEntity>> CompositionElements<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.SpinButton, T>magic = null) where T : Efl.Ui.SpinButton {
+ return new Efl.BindableProperty<Eina.List<Efl.Gfx.IEntity>>("composition_elements", fac);
+ }
+
+ public static Efl.BindableProperty<bool> LogicalMode<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.SpinButton, T>magic = null) where T : Efl.Ui.SpinButton {
+ return new Efl.BindableProperty<bool>("logical_mode", fac);
+ }
+
+}
+#pragma warning restore CS1591
+#endif