#pragma warning disable CS1591 using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; using System.Threading; using System.ComponentModel; namespace Efl { /// Markup data that populates the text object's style and format [Efl.ITextMarkupConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface ITextMarkup : Efl.Eo.IWrapper, IDisposable { /// Markup property /// The markup-text representation set to this text. System.String GetMarkup(); /// Markup property /// The markup-text representation set to this text. void SetMarkup(System.String markup); /// Markup property /// The markup-text representation set to this text. System.String Markup { get ; set ; } } /// Markup data that populates the text object's style and format sealed public class ITextMarkupConcrete : Efl.Eo.EoWrapper , ITextMarkup { ///Pointer to the native class description. public override System.IntPtr NativeClass { get { if (((object)this).GetType() == typeof(ITextMarkupConcrete)) { return GetEflClassStatic(); } else { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; } } } /// Constructor to be used when objects are expected to be constructed from native code. /// Tag struct storing the native handle of the object being constructed. private ITextMarkupConcrete(ConstructingHandle ch) : base(ch) { } [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr efl_text_markup_interface_get(); /// Initializes a new instance of the class. /// Internal usage: This is used when interacting with C code and should not be used directly. /// The native pointer to be wrapped. private ITextMarkupConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh) { } /// Markup property /// The markup-text representation set to this text. public System.String GetMarkup() { var _ret_var = Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Markup property /// The markup-text representation set to this text. public void SetMarkup(System.String markup) { Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_set_ptr.Value.Delegate(this.NativeHandle,markup); Eina.Error.RaiseIfUnhandledException(); } /// Markup property /// The markup-text representation set to this text. public System.String Markup { get { return GetMarkup(); } set { SetMarkup(value); } } private static IntPtr GetEflClassStatic() { return Efl.ITextMarkupConcrete.efl_text_markup_interface_get(); } /// Wrapper for native methods and virtual method delegates. /// For internal use by generated code only. public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods { private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl); /// Gets the list of Eo operations to override. /// The list of Eo operations to be overload. public override System.Collections.Generic.List GetEoOps(System.Type type) { var descs = new System.Collections.Generic.List(); var methods = Efl.Eo.Globals.GetUserMethods(type); if (efl_text_markup_get_static_delegate == null) { efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get); } if (methods.FirstOrDefault(m => m.Name == "GetMarkup") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate) }); } if (efl_text_markup_set_static_delegate == null) { efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set); } if (methods.FirstOrDefault(m => m.Name == "SetMarkup") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate) }); } return descs; } /// Returns the Eo class for the native methods of this class. /// The native class pointer. public override IntPtr GetEflClass() { return Efl.ITextMarkupConcrete.efl_text_markup_interface_get(); } #pragma warning disable CA1707, CS1591, SA1300, SA1600 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_markup_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_markup_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_text_markup_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_get"); private static System.String markup_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_text_markup_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { System.String _ret_var = default(System.String); try { _ret_var = ((ITextMarkup)ws.Target).GetMarkup(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_text_markup_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_text_markup_get_delegate efl_text_markup_get_static_delegate; private delegate void efl_text_markup_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); public delegate void efl_text_markup_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); public static Efl.Eo.FunctionWrapper efl_text_markup_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_set"); private static void markup_set(System.IntPtr obj, System.IntPtr pd, System.String markup) { Eina.Log.Debug("function efl_text_markup_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((ITextMarkup)ws.Target).SetMarkup(markup); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_text_markup_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), markup); } } private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 } } }