using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Linq;
+using System.Threading;
using System.ComponentModel;
-namespace Efl {
+namespace Efl {
+
/// <summary>Font settings of the text</summary>
-[ITextFontNativeInherit]
+[Efl.ITextFontConcrete.NativeMethods]
public interface ITextFont :
Efl.Eo.IWrapper, IDisposable
{
/// See also <see cref="Efl.ITextFont.GetFont"/>.</summary>
/// <param name="font">The font family name or filename.</param>
/// <param name="size">The font size, in points.</param>
-/// <returns></returns>
-void GetFont( out System.String font, out Efl.Font.Size size);
+void GetFont(out System.String font, out Efl.Font.Size size);
/// <summary>Set the font family, filename and size for a given text object.
/// This function allows the font name and size of a text object to be set. The font string has to follow fontconfig's convention for naming fonts, as it's the underlying library used to query system fonts by Evas (see the fc-list command's output, on your system, to get an idea). Alternatively, youe can use the full path to a font file.
///
/// See also <see cref="Efl.ITextFont.GetFont"/>, <see cref="Efl.ITextFont.GetFontSource"/>.</summary>
/// <param name="font">The font family name or filename.</param>
/// <param name="size">The font size, in points.</param>
-/// <returns></returns>
-void SetFont( System.String font, Efl.Font.Size size);
+void SetFont(System.String font, Efl.Font.Size size);
/// <summary>Get the font file's path which is being used on a given text object.
/// See <see cref="Efl.ITextFont.GetFont"/> for more details.</summary>
/// <returns>The font file's path.</returns>
///
/// See also <see cref="Efl.ITextFont.GetFont"/>.</summary>
/// <param name="font_source">The font file's path.</param>
-/// <returns></returns>
-void SetFontSource( System.String font_source);
+void SetFontSource(System.String font_source);
/// <summary>Comma-separated list of font fallbacks
/// Will be used in case the primary font isn't available.</summary>
/// <returns>Font name fallbacks</returns>
/// <summary>Comma-separated list of font fallbacks
/// Will be used in case the primary font isn't available.</summary>
/// <param name="font_fallbacks">Font name fallbacks</param>
-/// <returns></returns>
-void SetFontFallbacks( System.String font_fallbacks);
+void SetFontFallbacks(System.String font_fallbacks);
/// <summary>Type of weight of the displayed font
/// Default is <see cref="Efl.TextFontWeight.Normal"/>.</summary>
/// <returns>Font weight</returns>
/// <summary>Type of weight of the displayed font
/// Default is <see cref="Efl.TextFontWeight.Normal"/>.</summary>
/// <param name="font_weight">Font weight</param>
-/// <returns></returns>
-void SetFontWeight( Efl.TextFontWeight font_weight);
+void SetFontWeight(Efl.TextFontWeight font_weight);
/// <summary>Type of slant of the displayed font
/// Default is <see cref="Efl.TextFontSlant.Normal"/>.</summary>
/// <returns>Font slant</returns>
/// <summary>Type of slant of the displayed font
/// Default is <see cref="Efl.TextFontSlant.Normal"/>.</summary>
/// <param name="style">Font slant</param>
-/// <returns></returns>
-void SetFontSlant( Efl.TextFontSlant style);
+void SetFontSlant(Efl.TextFontSlant style);
/// <summary>Type of width of the displayed font
/// Default is <see cref="Efl.TextFontWidth.Normal"/>.</summary>
/// <returns>Font width</returns>
/// <summary>Type of width of the displayed font
/// Default is <see cref="Efl.TextFontWidth.Normal"/>.</summary>
/// <param name="width">Font width</param>
-/// <returns></returns>
-void SetFontWidth( Efl.TextFontWidth width);
+void SetFontWidth(Efl.TextFontWidth width);
/// <summary>Specific language of the displayed font
/// This is used to lookup fonts suitable to the specified language, as well as helping the font shaper backend. The language <c>lang</c> can be either a code e.g "en_US", "auto" to use the system locale, or "none".</summary>
/// <returns>Language</returns>
/// <summary>Specific language of the displayed font
/// This is used to lookup fonts suitable to the specified language, as well as helping the font shaper backend. The language <c>lang</c> can be either a code e.g "en_US", "auto" to use the system locale, or "none".</summary>
/// <param name="lang">Language</param>
-/// <returns></returns>
-void SetFontLang( System.String lang);
+void SetFontLang(System.String lang);
/// <summary>The bitmap fonts have fixed size glyphs for several available sizes. Basically, it is not scalable. But, it needs to be scalable for some use cases. (ex. colorful emoji fonts)
/// Default is <see cref="Efl.TextFontBitmapScalable.None"/>.</summary>
/// <returns>Scalable</returns>
/// <summary>The bitmap fonts have fixed size glyphs for several available sizes. Basically, it is not scalable. But, it needs to be scalable for some use cases. (ex. colorful emoji fonts)
/// Default is <see cref="Efl.TextFontBitmapScalable.None"/>.</summary>
/// <param name="scalable">Scalable</param>
-/// <returns></returns>
-void SetFontBitmapScalable( Efl.TextFontBitmapScalable scalable);
+void SetFontBitmapScalable(Efl.TextFontBitmapScalable scalable);
/// <summary>Get the font file's path which is being used on a given text object.
/// See <see cref="Efl.ITextFont.GetFont"/> for more details.</summary>
/// <value>The font file's path.</value>
{
///<summary>Pointer to the native class description.</summary>
- public System.IntPtr NativeClass {
- get {
- if (((object)this).GetType() == typeof (ITextFontConcrete))
- return Efl.ITextFontNativeInherit.GetEflClassStatic();
+ public System.IntPtr NativeClass
+ {
+ get
+ {
+ if (((object)this).GetType() == typeof(ITextFontConcrete))
+ {
+ return GetEflClassStatic();
+ }
else
+ {
return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
+ }
}
}
+
private System.IntPtr handle;
///<summary>Pointer to the native instance.</summary>
- public System.IntPtr NativeHandle {
+ public System.IntPtr NativeHandle
+ {
get { return handle; }
}
+
[System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr
efl_text_font_interface_get();
- ///<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>
+ /// <summary>Initializes a new instance of the <see cref="ITextFont"/> class.
+ /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
private ITextFontConcrete(System.IntPtr raw)
{
handle = raw;
- RegisterEventProxies();
}
///<summary>Destructor.</summary>
~ITextFontConcrete()
{
Dispose(false);
}
+
///<summary>Releases the underlying native instance.</summary>
- void Dispose(bool disposing)
+ private void Dispose(bool disposing)
{
- if (handle != System.IntPtr.Zero) {
- Efl.Eo.Globals.efl_unref(handle);
- handle = System.IntPtr.Zero;
+ if (handle != System.IntPtr.Zero)
+ {
+ IntPtr h = handle;
+ handle = IntPtr.Zero;
+
+ IntPtr gcHandlePtr = IntPtr.Zero;
+ if (disposing)
+ {
+ Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr);
+ }
+ else
+ {
+ Monitor.Enter(Efl.All.InitLock);
+ if (Efl.All.MainLoopInitialized)
+ {
+ Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr);
+ }
+
+ Monitor.Exit(Efl.All.InitLock);
+ }
}
+
}
+
///<summary>Releases the underlying native instance.</summary>
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
- ///<summary>Verifies if the given object is equal to this one.</summary>
- public override bool Equals(object obj)
+
+ /// <summary>Verifies if the given object is equal to this one.</summary>
+ /// <param name="instance">The object to compare to.</param>
+ /// <returns>True if both objects point to the same native object.</returns>
+ public override bool Equals(object instance)
{
- var other = obj as Efl.Object;
+ var other = instance as Efl.Object;
if (other == null)
+ {
return false;
+ }
return this.NativeHandle == other.NativeHandle;
}
- ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
+
+ /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
+ /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
public override int GetHashCode()
{
return this.NativeHandle.ToInt32();
}
- ///<summary>Turns the native pointer into a string representation.</summary>
+
+ /// <summary>Turns the native pointer into a string representation.</summary>
+ /// <returns>A string with the type and the native pointer for this object.</returns>
public override String ToString()
{
return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
}
- ///<summary>Register the Eo event wrappers making the bridge to C# events. Internal usage only.</summary>
- void RegisterEventProxies()
- {
- }
+
/// <summary>Retrieve the font family and size in use on a given text object.
/// This function allows the font name and size of a text object to be queried. Remember that the font name string is still owned by Evas and should not have free() called on it by the caller of the function.
///
/// See also <see cref="Efl.ITextFont.GetFont"/>.</summary>
/// <param name="font">The font family name or filename.</param>
/// <param name="size">The font size, in points.</param>
- /// <returns></returns>
- public void GetFont( out System.String font, out Efl.Font.Size size) {
- Efl.ITextFontNativeInherit.efl_text_font_get_ptr.Value.Delegate(this.NativeHandle, out font, out size);
+ public void GetFont(out System.String font, out Efl.Font.Size size) {
+ Efl.ITextFontConcrete.NativeMethods.efl_text_font_get_ptr.Value.Delegate(this.NativeHandle,out font, out size);
Eina.Error.RaiseIfUnhandledException();
}
/// <summary>Set the font family, filename and size for a given text object.
/// See also <see cref="Efl.ITextFont.GetFont"/>, <see cref="Efl.ITextFont.GetFontSource"/>.</summary>
/// <param name="font">The font family name or filename.</param>
/// <param name="size">The font size, in points.</param>
- /// <returns></returns>
- public void SetFont( System.String font, Efl.Font.Size size) {
- Efl.ITextFontNativeInherit.efl_text_font_set_ptr.Value.Delegate(this.NativeHandle, font, size);
+ public void SetFont(System.String font, Efl.Font.Size size) {
+ Efl.ITextFontConcrete.NativeMethods.efl_text_font_set_ptr.Value.Delegate(this.NativeHandle,font, size);
Eina.Error.RaiseIfUnhandledException();
}
/// <summary>Get the font file's path which is being used on a given text object.
/// See <see cref="Efl.ITextFont.GetFont"/> for more details.</summary>
/// <returns>The font file's path.</returns>
public System.String GetFontSource() {
- var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_source_get_ptr.Value.Delegate(this.NativeHandle);
+ var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_source_get_ptr.Value.Delegate(this.NativeHandle);
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
///
/// See also <see cref="Efl.ITextFont.GetFont"/>.</summary>
/// <param name="font_source">The font file's path.</param>
- /// <returns></returns>
- public void SetFontSource( System.String font_source) {
- Efl.ITextFontNativeInherit.efl_text_font_source_set_ptr.Value.Delegate(this.NativeHandle, font_source);
+ public void SetFontSource(System.String font_source) {
+ Efl.ITextFontConcrete.NativeMethods.efl_text_font_source_set_ptr.Value.Delegate(this.NativeHandle,font_source);
Eina.Error.RaiseIfUnhandledException();
}
/// <summary>Comma-separated list of font fallbacks
/// Will be used in case the primary font isn't available.</summary>
/// <returns>Font name fallbacks</returns>
public System.String GetFontFallbacks() {
- var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_fallbacks_get_ptr.Value.Delegate(this.NativeHandle);
+ var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_fallbacks_get_ptr.Value.Delegate(this.NativeHandle);
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// <summary>Comma-separated list of font fallbacks
/// Will be used in case the primary font isn't available.</summary>
/// <param name="font_fallbacks">Font name fallbacks</param>
- /// <returns></returns>
- public void SetFontFallbacks( System.String font_fallbacks) {
- Efl.ITextFontNativeInherit.efl_text_font_fallbacks_set_ptr.Value.Delegate(this.NativeHandle, font_fallbacks);
+ public void SetFontFallbacks(System.String font_fallbacks) {
+ Efl.ITextFontConcrete.NativeMethods.efl_text_font_fallbacks_set_ptr.Value.Delegate(this.NativeHandle,font_fallbacks);
Eina.Error.RaiseIfUnhandledException();
}
/// <summary>Type of weight of the displayed font
/// Default is <see cref="Efl.TextFontWeight.Normal"/>.</summary>
/// <returns>Font weight</returns>
public Efl.TextFontWeight GetFontWeight() {
- var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_weight_get_ptr.Value.Delegate(this.NativeHandle);
+ var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_weight_get_ptr.Value.Delegate(this.NativeHandle);
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// <summary>Type of weight of the displayed font
/// Default is <see cref="Efl.TextFontWeight.Normal"/>.</summary>
/// <param name="font_weight">Font weight</param>
- /// <returns></returns>
- public void SetFontWeight( Efl.TextFontWeight font_weight) {
- Efl.ITextFontNativeInherit.efl_text_font_weight_set_ptr.Value.Delegate(this.NativeHandle, font_weight);
+ public void SetFontWeight(Efl.TextFontWeight font_weight) {
+ Efl.ITextFontConcrete.NativeMethods.efl_text_font_weight_set_ptr.Value.Delegate(this.NativeHandle,font_weight);
Eina.Error.RaiseIfUnhandledException();
}
/// <summary>Type of slant of the displayed font
/// Default is <see cref="Efl.TextFontSlant.Normal"/>.</summary>
/// <returns>Font slant</returns>
public Efl.TextFontSlant GetFontSlant() {
- var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_slant_get_ptr.Value.Delegate(this.NativeHandle);
+ var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_slant_get_ptr.Value.Delegate(this.NativeHandle);
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// <summary>Type of slant of the displayed font
/// Default is <see cref="Efl.TextFontSlant.Normal"/>.</summary>
/// <param name="style">Font slant</param>
- /// <returns></returns>
- public void SetFontSlant( Efl.TextFontSlant style) {
- Efl.ITextFontNativeInherit.efl_text_font_slant_set_ptr.Value.Delegate(this.NativeHandle, style);
+ public void SetFontSlant(Efl.TextFontSlant style) {
+ Efl.ITextFontConcrete.NativeMethods.efl_text_font_slant_set_ptr.Value.Delegate(this.NativeHandle,style);
Eina.Error.RaiseIfUnhandledException();
}
/// <summary>Type of width of the displayed font
/// Default is <see cref="Efl.TextFontWidth.Normal"/>.</summary>
/// <returns>Font width</returns>
public Efl.TextFontWidth GetFontWidth() {
- var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_width_get_ptr.Value.Delegate(this.NativeHandle);
+ var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_width_get_ptr.Value.Delegate(this.NativeHandle);
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// <summary>Type of width of the displayed font
/// Default is <see cref="Efl.TextFontWidth.Normal"/>.</summary>
/// <param name="width">Font width</param>
- /// <returns></returns>
- public void SetFontWidth( Efl.TextFontWidth width) {
- Efl.ITextFontNativeInherit.efl_text_font_width_set_ptr.Value.Delegate(this.NativeHandle, width);
+ public void SetFontWidth(Efl.TextFontWidth width) {
+ Efl.ITextFontConcrete.NativeMethods.efl_text_font_width_set_ptr.Value.Delegate(this.NativeHandle,width);
Eina.Error.RaiseIfUnhandledException();
}
/// <summary>Specific language of the displayed font
/// This is used to lookup fonts suitable to the specified language, as well as helping the font shaper backend. The language <c>lang</c> can be either a code e.g "en_US", "auto" to use the system locale, or "none".</summary>
/// <returns>Language</returns>
public System.String GetFontLang() {
- var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_lang_get_ptr.Value.Delegate(this.NativeHandle);
+ var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_lang_get_ptr.Value.Delegate(this.NativeHandle);
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// <summary>Specific language of the displayed font
/// This is used to lookup fonts suitable to the specified language, as well as helping the font shaper backend. The language <c>lang</c> can be either a code e.g "en_US", "auto" to use the system locale, or "none".</summary>
/// <param name="lang">Language</param>
- /// <returns></returns>
- public void SetFontLang( System.String lang) {
- Efl.ITextFontNativeInherit.efl_text_font_lang_set_ptr.Value.Delegate(this.NativeHandle, lang);
+ public void SetFontLang(System.String lang) {
+ Efl.ITextFontConcrete.NativeMethods.efl_text_font_lang_set_ptr.Value.Delegate(this.NativeHandle,lang);
Eina.Error.RaiseIfUnhandledException();
}
/// <summary>The bitmap fonts have fixed size glyphs for several available sizes. Basically, it is not scalable. But, it needs to be scalable for some use cases. (ex. colorful emoji fonts)
/// Default is <see cref="Efl.TextFontBitmapScalable.None"/>.</summary>
/// <returns>Scalable</returns>
public Efl.TextFontBitmapScalable GetFontBitmapScalable() {
- var _ret_var = Efl.ITextFontNativeInherit.efl_text_font_bitmap_scalable_get_ptr.Value.Delegate(this.NativeHandle);
+ var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_bitmap_scalable_get_ptr.Value.Delegate(this.NativeHandle);
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// <summary>The bitmap fonts have fixed size glyphs for several available sizes. Basically, it is not scalable. But, it needs to be scalable for some use cases. (ex. colorful emoji fonts)
/// Default is <see cref="Efl.TextFontBitmapScalable.None"/>.</summary>
/// <param name="scalable">Scalable</param>
- /// <returns></returns>
- public void SetFontBitmapScalable( Efl.TextFontBitmapScalable scalable) {
- Efl.ITextFontNativeInherit.efl_text_font_bitmap_scalable_set_ptr.Value.Delegate(this.NativeHandle, scalable);
+ public void SetFontBitmapScalable(Efl.TextFontBitmapScalable scalable) {
+ Efl.ITextFontConcrete.NativeMethods.efl_text_font_bitmap_scalable_set_ptr.Value.Delegate(this.NativeHandle,scalable);
Eina.Error.RaiseIfUnhandledException();
}
/// <summary>Get the font file's path which is being used on a given text object.
/// <value>The font file's path.</value>
public System.String FontSource {
get { return GetFontSource(); }
- set { SetFontSource( value); }
+ set { SetFontSource(value); }
}
/// <summary>Comma-separated list of font fallbacks
/// Will be used in case the primary font isn't available.</summary>
/// <value>Font name fallbacks</value>
public System.String FontFallbacks {
get { return GetFontFallbacks(); }
- set { SetFontFallbacks( value); }
+ set { SetFontFallbacks(value); }
}
/// <summary>Type of weight of the displayed font
/// Default is <see cref="Efl.TextFontWeight.Normal"/>.</summary>
/// <value>Font weight</value>
public Efl.TextFontWeight FontWeight {
get { return GetFontWeight(); }
- set { SetFontWeight( value); }
+ set { SetFontWeight(value); }
}
/// <summary>Type of slant of the displayed font
/// Default is <see cref="Efl.TextFontSlant.Normal"/>.</summary>
/// <value>Font slant</value>
public Efl.TextFontSlant FontSlant {
get { return GetFontSlant(); }
- set { SetFontSlant( value); }
+ set { SetFontSlant(value); }
}
/// <summary>Type of width of the displayed font
/// Default is <see cref="Efl.TextFontWidth.Normal"/>.</summary>
/// <value>Font width</value>
public Efl.TextFontWidth FontWidth {
get { return GetFontWidth(); }
- set { SetFontWidth( value); }
+ set { SetFontWidth(value); }
}
/// <summary>Specific language of the displayed font
/// This is used to lookup fonts suitable to the specified language, as well as helping the font shaper backend. The language <c>lang</c> can be either a code e.g "en_US", "auto" to use the system locale, or "none".</summary>
/// <value>Language</value>
public System.String FontLang {
get { return GetFontLang(); }
- set { SetFontLang( value); }
+ set { SetFontLang(value); }
}
/// <summary>The bitmap fonts have fixed size glyphs for several available sizes. Basically, it is not scalable. But, it needs to be scalable for some use cases. (ex. colorful emoji fonts)
/// Default is <see cref="Efl.TextFontBitmapScalable.None"/>.</summary>
/// <value>Scalable</value>
public Efl.TextFontBitmapScalable FontBitmapScalable {
get { return GetFontBitmapScalable(); }
- set { SetFontBitmapScalable( value); }
+ set { SetFontBitmapScalable(value); }
}
private static IntPtr GetEflClassStatic()
{
return Efl.ITextFontConcrete.efl_text_font_interface_get();
}
-}
-public class ITextFontNativeInherit : Efl.Eo.NativeClass{
- public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl);
- public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
- {
- var descs = new System.Collections.Generic.List<Efl_Op_Description>();
- var methods = Efl.Eo.Globals.GetUserMethods(type);
- if (efl_text_font_get_static_delegate == null)
- efl_text_font_get_static_delegate = new efl_text_font_get_delegate(font_get);
- if (methods.FirstOrDefault(m => m.Name == "GetFont") != null)
- descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_get_static_delegate)});
- if (efl_text_font_set_static_delegate == null)
- efl_text_font_set_static_delegate = new efl_text_font_set_delegate(font_set);
- if (methods.FirstOrDefault(m => m.Name == "SetFont") != null)
- descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_set_static_delegate)});
- if (efl_text_font_source_get_static_delegate == null)
- efl_text_font_source_get_static_delegate = new efl_text_font_source_get_delegate(font_source_get);
- if (methods.FirstOrDefault(m => m.Name == "GetFontSource") != null)
- descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_source_get_static_delegate)});
- if (efl_text_font_source_set_static_delegate == null)
- efl_text_font_source_set_static_delegate = new efl_text_font_source_set_delegate(font_source_set);
- if (methods.FirstOrDefault(m => m.Name == "SetFontSource") != null)
- descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_source_set_static_delegate)});
- if (efl_text_font_fallbacks_get_static_delegate == null)
- efl_text_font_fallbacks_get_static_delegate = new efl_text_font_fallbacks_get_delegate(font_fallbacks_get);
- if (methods.FirstOrDefault(m => m.Name == "GetFontFallbacks") != null)
- descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_fallbacks_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_fallbacks_get_static_delegate)});
- if (efl_text_font_fallbacks_set_static_delegate == null)
- efl_text_font_fallbacks_set_static_delegate = new efl_text_font_fallbacks_set_delegate(font_fallbacks_set);
- if (methods.FirstOrDefault(m => m.Name == "SetFontFallbacks") != null)
- descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_fallbacks_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_fallbacks_set_static_delegate)});
- if (efl_text_font_weight_get_static_delegate == null)
- efl_text_font_weight_get_static_delegate = new efl_text_font_weight_get_delegate(font_weight_get);
- if (methods.FirstOrDefault(m => m.Name == "GetFontWeight") != null)
- descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_weight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_weight_get_static_delegate)});
- if (efl_text_font_weight_set_static_delegate == null)
- efl_text_font_weight_set_static_delegate = new efl_text_font_weight_set_delegate(font_weight_set);
- if (methods.FirstOrDefault(m => m.Name == "SetFontWeight") != null)
- descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_weight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_weight_set_static_delegate)});
- if (efl_text_font_slant_get_static_delegate == null)
- efl_text_font_slant_get_static_delegate = new efl_text_font_slant_get_delegate(font_slant_get);
- if (methods.FirstOrDefault(m => m.Name == "GetFontSlant") != null)
- descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_slant_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_slant_get_static_delegate)});
- if (efl_text_font_slant_set_static_delegate == null)
- efl_text_font_slant_set_static_delegate = new efl_text_font_slant_set_delegate(font_slant_set);
- if (methods.FirstOrDefault(m => m.Name == "SetFontSlant") != null)
- descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_slant_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_slant_set_static_delegate)});
- if (efl_text_font_width_get_static_delegate == null)
- efl_text_font_width_get_static_delegate = new efl_text_font_width_get_delegate(font_width_get);
- if (methods.FirstOrDefault(m => m.Name == "GetFontWidth") != null)
- descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_width_get_static_delegate)});
- if (efl_text_font_width_set_static_delegate == null)
- efl_text_font_width_set_static_delegate = new efl_text_font_width_set_delegate(font_width_set);
- if (methods.FirstOrDefault(m => m.Name == "SetFontWidth") != null)
- descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_width_set_static_delegate)});
- if (efl_text_font_lang_get_static_delegate == null)
- efl_text_font_lang_get_static_delegate = new efl_text_font_lang_get_delegate(font_lang_get);
- if (methods.FirstOrDefault(m => m.Name == "GetFontLang") != null)
- descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_lang_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_lang_get_static_delegate)});
- if (efl_text_font_lang_set_static_delegate == null)
- efl_text_font_lang_set_static_delegate = new efl_text_font_lang_set_delegate(font_lang_set);
- if (methods.FirstOrDefault(m => m.Name == "SetFontLang") != null)
- descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_lang_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_lang_set_static_delegate)});
- if (efl_text_font_bitmap_scalable_get_static_delegate == null)
- efl_text_font_bitmap_scalable_get_static_delegate = new efl_text_font_bitmap_scalable_get_delegate(font_bitmap_scalable_get);
- if (methods.FirstOrDefault(m => m.Name == "GetFontBitmapScalable") != null)
- descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_bitmap_scalable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_bitmap_scalable_get_static_delegate)});
- if (efl_text_font_bitmap_scalable_set_static_delegate == null)
- efl_text_font_bitmap_scalable_set_static_delegate = new efl_text_font_bitmap_scalable_set_delegate(font_bitmap_scalable_set);
- if (methods.FirstOrDefault(m => m.Name == "SetFontBitmapScalable") != null)
- descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_text_font_bitmap_scalable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_bitmap_scalable_set_static_delegate)});
- return descs;
- }
- public override IntPtr GetEflClass()
- {
- return Efl.ITextFontConcrete.efl_text_font_interface_get();
- }
- public static IntPtr GetEflClassStatic()
+ /// <summary>Wrapper for native methods and virtual method delegates.
+ /// For internal use by generated code only.</summary>
+ public class NativeMethods : Efl.Eo.NativeClass
{
- return Efl.ITextFontConcrete.efl_text_font_interface_get();
- }
+ private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl);
+ /// <summary>Gets the list of Eo operations to override.</summary>
+ /// <returns>The list of Eo operations to be overload.</returns>
+ public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
+ {
+ var descs = new System.Collections.Generic.List<Efl_Op_Description>();
+ var methods = Efl.Eo.Globals.GetUserMethods(type);
+
+ if (efl_text_font_get_static_delegate == null)
+ {
+ efl_text_font_get_static_delegate = new efl_text_font_get_delegate(font_get);
+ }
+ if (methods.FirstOrDefault(m => m.Name == "GetFont") != null)
+ {
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_get_static_delegate) });
+ }
- private delegate void efl_text_font_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size);
+ if (efl_text_font_set_static_delegate == null)
+ {
+ efl_text_font_set_static_delegate = new efl_text_font_set_delegate(font_set);
+ }
+ if (methods.FirstOrDefault(m => m.Name == "SetFont") != null)
+ {
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_set_static_delegate) });
+ }
- public delegate void efl_text_font_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size);
- public static Efl.Eo.FunctionWrapper<efl_text_font_get_api_delegate> efl_text_font_get_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_get_api_delegate>(_Module, "efl_text_font_get");
- private static void font_get(System.IntPtr obj, System.IntPtr pd, out System.String font, out Efl.Font.Size size)
- {
- Eina.Log.Debug("function efl_text_font_get was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if(wrapper != null) {
- System.String _out_font = default(System.String);
- size = default(Efl.Font.Size);
- try {
- ((ITextFont)wrapper).GetFont( out _out_font, out size);
- } catch (Exception e) {
- Eina.Log.Warning($"Callback error: {e.ToString()}");
- Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ if (efl_text_font_source_get_static_delegate == null)
+ {
+ efl_text_font_source_get_static_delegate = new efl_text_font_source_get_delegate(font_source_get);
}
- font = _out_font;
- } else {
- efl_text_font_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out font, out size);
- }
- }
- private static efl_text_font_get_delegate efl_text_font_get_static_delegate;
+ if (methods.FirstOrDefault(m => m.Name == "GetFontSource") != null)
+ {
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_source_get_static_delegate) });
+ }
- private delegate void efl_text_font_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size);
+ if (efl_text_font_source_set_static_delegate == null)
+ {
+ efl_text_font_source_set_static_delegate = new efl_text_font_source_set_delegate(font_source_set);
+ }
+ if (methods.FirstOrDefault(m => m.Name == "SetFontSource") != null)
+ {
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_source_set_static_delegate) });
+ }
- public delegate void efl_text_font_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size);
- public static Efl.Eo.FunctionWrapper<efl_text_font_set_api_delegate> efl_text_font_set_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_set_api_delegate>(_Module, "efl_text_font_set");
- private static void font_set(System.IntPtr obj, System.IntPtr pd, System.String font, Efl.Font.Size size)
- {
- Eina.Log.Debug("function efl_text_font_set was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if(wrapper != null) {
-
- try {
- ((ITextFont)wrapper).SetFont( font, size);
- } catch (Exception e) {
- Eina.Log.Warning($"Callback error: {e.ToString()}");
- Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
- }
- } else {
- efl_text_font_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font, size);
- }
- }
- private static efl_text_font_set_delegate efl_text_font_set_static_delegate;
+ if (efl_text_font_fallbacks_get_static_delegate == null)
+ {
+ efl_text_font_fallbacks_get_static_delegate = new efl_text_font_fallbacks_get_delegate(font_fallbacks_get);
+ }
+ if (methods.FirstOrDefault(m => m.Name == "GetFontFallbacks") != null)
+ {
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_fallbacks_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_fallbacks_get_static_delegate) });
+ }
- [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_font_source_get_delegate(System.IntPtr obj, System.IntPtr pd);
+ if (efl_text_font_fallbacks_set_static_delegate == null)
+ {
+ efl_text_font_fallbacks_set_static_delegate = new efl_text_font_fallbacks_set_delegate(font_fallbacks_set);
+ }
+ if (methods.FirstOrDefault(m => m.Name == "SetFontFallbacks") != null)
+ {
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_fallbacks_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_fallbacks_set_static_delegate) });
+ }
- [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_font_source_get_api_delegate(System.IntPtr obj);
- public static Efl.Eo.FunctionWrapper<efl_text_font_source_get_api_delegate> efl_text_font_source_get_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_source_get_api_delegate>(_Module, "efl_text_font_source_get");
- private static System.String font_source_get(System.IntPtr obj, System.IntPtr pd)
- {
- Eina.Log.Debug("function efl_text_font_source_get was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if(wrapper != null) {
- System.String _ret_var = default(System.String);
- try {
- _ret_var = ((ITextFont)wrapper).GetFontSource();
- } catch (Exception e) {
- Eina.Log.Warning($"Callback error: {e.ToString()}");
- Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ if (efl_text_font_weight_get_static_delegate == null)
+ {
+ efl_text_font_weight_get_static_delegate = new efl_text_font_weight_get_delegate(font_weight_get);
}
- return _ret_var;
- } else {
- return efl_text_font_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
- }
- }
- private static efl_text_font_source_get_delegate efl_text_font_source_get_static_delegate;
+ if (methods.FirstOrDefault(m => m.Name == "GetFontWeight") != null)
+ {
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_weight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_weight_get_static_delegate) });
+ }
- private delegate void efl_text_font_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_source);
+ if (efl_text_font_weight_set_static_delegate == null)
+ {
+ efl_text_font_weight_set_static_delegate = new efl_text_font_weight_set_delegate(font_weight_set);
+ }
+ if (methods.FirstOrDefault(m => m.Name == "SetFontWeight") != null)
+ {
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_weight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_weight_set_static_delegate) });
+ }
- public delegate void efl_text_font_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_source);
- public static Efl.Eo.FunctionWrapper<efl_text_font_source_set_api_delegate> efl_text_font_source_set_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_source_set_api_delegate>(_Module, "efl_text_font_source_set");
- private static void font_source_set(System.IntPtr obj, System.IntPtr pd, System.String font_source)
- {
- Eina.Log.Debug("function efl_text_font_source_set was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if(wrapper != null) {
-
- try {
- ((ITextFont)wrapper).SetFontSource( font_source);
- } catch (Exception e) {
- Eina.Log.Warning($"Callback error: {e.ToString()}");
- Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
- }
- } else {
- efl_text_font_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_source);
- }
- }
- private static efl_text_font_source_set_delegate efl_text_font_source_set_static_delegate;
+ if (efl_text_font_slant_get_static_delegate == null)
+ {
+ efl_text_font_slant_get_static_delegate = new efl_text_font_slant_get_delegate(font_slant_get);
+ }
+ if (methods.FirstOrDefault(m => m.Name == "GetFontSlant") != null)
+ {
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_slant_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_slant_get_static_delegate) });
+ }
- [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_font_fallbacks_get_delegate(System.IntPtr obj, System.IntPtr pd);
+ if (efl_text_font_slant_set_static_delegate == null)
+ {
+ efl_text_font_slant_set_static_delegate = new efl_text_font_slant_set_delegate(font_slant_set);
+ }
+ if (methods.FirstOrDefault(m => m.Name == "SetFontSlant") != null)
+ {
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_slant_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_slant_set_static_delegate) });
+ }
- [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_font_fallbacks_get_api_delegate(System.IntPtr obj);
- public static Efl.Eo.FunctionWrapper<efl_text_font_fallbacks_get_api_delegate> efl_text_font_fallbacks_get_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_fallbacks_get_api_delegate>(_Module, "efl_text_font_fallbacks_get");
- private static System.String font_fallbacks_get(System.IntPtr obj, System.IntPtr pd)
- {
- Eina.Log.Debug("function efl_text_font_fallbacks_get was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if(wrapper != null) {
- System.String _ret_var = default(System.String);
- try {
- _ret_var = ((ITextFont)wrapper).GetFontFallbacks();
- } catch (Exception e) {
- Eina.Log.Warning($"Callback error: {e.ToString()}");
- Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ if (efl_text_font_width_get_static_delegate == null)
+ {
+ efl_text_font_width_get_static_delegate = new efl_text_font_width_get_delegate(font_width_get);
}
- return _ret_var;
- } else {
- return efl_text_font_fallbacks_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
- }
- }
- private static efl_text_font_fallbacks_get_delegate efl_text_font_fallbacks_get_static_delegate;
+ if (methods.FirstOrDefault(m => m.Name == "GetFontWidth") != null)
+ {
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_width_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_width_get_static_delegate) });
+ }
- private delegate void efl_text_font_fallbacks_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_fallbacks);
+ if (efl_text_font_width_set_static_delegate == null)
+ {
+ efl_text_font_width_set_static_delegate = new efl_text_font_width_set_delegate(font_width_set);
+ }
+ if (methods.FirstOrDefault(m => m.Name == "SetFontWidth") != null)
+ {
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_width_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_width_set_static_delegate) });
+ }
- public delegate void efl_text_font_fallbacks_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_fallbacks);
- public static Efl.Eo.FunctionWrapper<efl_text_font_fallbacks_set_api_delegate> efl_text_font_fallbacks_set_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_fallbacks_set_api_delegate>(_Module, "efl_text_font_fallbacks_set");
- private static void font_fallbacks_set(System.IntPtr obj, System.IntPtr pd, System.String font_fallbacks)
- {
- Eina.Log.Debug("function efl_text_font_fallbacks_set was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if(wrapper != null) {
-
- try {
- ((ITextFont)wrapper).SetFontFallbacks( font_fallbacks);
- } catch (Exception e) {
- Eina.Log.Warning($"Callback error: {e.ToString()}");
- Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
- }
- } else {
- efl_text_font_fallbacks_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_fallbacks);
- }
- }
- private static efl_text_font_fallbacks_set_delegate efl_text_font_fallbacks_set_static_delegate;
+ if (efl_text_font_lang_get_static_delegate == null)
+ {
+ efl_text_font_lang_get_static_delegate = new efl_text_font_lang_get_delegate(font_lang_get);
+ }
+ if (methods.FirstOrDefault(m => m.Name == "GetFontLang") != null)
+ {
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_lang_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_lang_get_static_delegate) });
+ }
- private delegate Efl.TextFontWeight efl_text_font_weight_get_delegate(System.IntPtr obj, System.IntPtr pd);
+ if (efl_text_font_lang_set_static_delegate == null)
+ {
+ efl_text_font_lang_set_static_delegate = new efl_text_font_lang_set_delegate(font_lang_set);
+ }
+ if (methods.FirstOrDefault(m => m.Name == "SetFontLang") != null)
+ {
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_lang_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_lang_set_static_delegate) });
+ }
- public delegate Efl.TextFontWeight efl_text_font_weight_get_api_delegate(System.IntPtr obj);
- public static Efl.Eo.FunctionWrapper<efl_text_font_weight_get_api_delegate> efl_text_font_weight_get_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_weight_get_api_delegate>(_Module, "efl_text_font_weight_get");
- private static Efl.TextFontWeight font_weight_get(System.IntPtr obj, System.IntPtr pd)
- {
- Eina.Log.Debug("function efl_text_font_weight_get was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if(wrapper != null) {
- Efl.TextFontWeight _ret_var = default(Efl.TextFontWeight);
- try {
- _ret_var = ((ITextFont)wrapper).GetFontWeight();
- } catch (Exception e) {
- Eina.Log.Warning($"Callback error: {e.ToString()}");
- Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ if (efl_text_font_bitmap_scalable_get_static_delegate == null)
+ {
+ efl_text_font_bitmap_scalable_get_static_delegate = new efl_text_font_bitmap_scalable_get_delegate(font_bitmap_scalable_get);
}
- return _ret_var;
- } else {
- return efl_text_font_weight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
- }
- }
- private static efl_text_font_weight_get_delegate efl_text_font_weight_get_static_delegate;
+ if (methods.FirstOrDefault(m => m.Name == "GetFontBitmapScalable") != null)
+ {
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_bitmap_scalable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_bitmap_scalable_get_static_delegate) });
+ }
- private delegate void efl_text_font_weight_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight);
+ if (efl_text_font_bitmap_scalable_set_static_delegate == null)
+ {
+ efl_text_font_bitmap_scalable_set_static_delegate = new efl_text_font_bitmap_scalable_set_delegate(font_bitmap_scalable_set);
+ }
+ if (methods.FirstOrDefault(m => m.Name == "SetFontBitmapScalable") != null)
+ {
+ descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_font_bitmap_scalable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_font_bitmap_scalable_set_static_delegate) });
+ }
- public delegate void efl_text_font_weight_set_api_delegate(System.IntPtr obj, Efl.TextFontWeight font_weight);
- public static Efl.Eo.FunctionWrapper<efl_text_font_weight_set_api_delegate> efl_text_font_weight_set_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_weight_set_api_delegate>(_Module, "efl_text_font_weight_set");
- private static void font_weight_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight)
- {
- Eina.Log.Debug("function efl_text_font_weight_set was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if(wrapper != null) {
-
- try {
- ((ITextFont)wrapper).SetFontWeight( font_weight);
- } catch (Exception e) {
- Eina.Log.Warning($"Callback error: {e.ToString()}");
- Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
- }
- } else {
- efl_text_font_weight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_weight);
+ return descs;
+ }
+ /// <summary>Returns the Eo class for the native methods of this class.</summary>
+ /// <returns>The native class pointer.</returns>
+ public override IntPtr GetEflClass()
+ {
+ return Efl.ITextFontConcrete.efl_text_font_interface_get();
}
- }
- private static efl_text_font_weight_set_delegate efl_text_font_weight_set_static_delegate;
+ #pragma warning disable CA1707, SA1300, SA1600
- private delegate Efl.TextFontSlant efl_text_font_slant_get_delegate(System.IntPtr obj, System.IntPtr pd);
+
+ private delegate void efl_text_font_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size);
+
+ public delegate void efl_text_font_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String font, out Efl.Font.Size size);
- public delegate Efl.TextFontSlant efl_text_font_slant_get_api_delegate(System.IntPtr obj);
- public static Efl.Eo.FunctionWrapper<efl_text_font_slant_get_api_delegate> efl_text_font_slant_get_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_slant_get_api_delegate>(_Module, "efl_text_font_slant_get");
- private static Efl.TextFontSlant font_slant_get(System.IntPtr obj, System.IntPtr pd)
- {
- Eina.Log.Debug("function efl_text_font_slant_get was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if(wrapper != null) {
- Efl.TextFontSlant _ret_var = default(Efl.TextFontSlant);
- try {
- _ret_var = ((ITextFont)wrapper).GetFontSlant();
- } catch (Exception e) {
- Eina.Log.Warning($"Callback error: {e.ToString()}");
- Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ public static Efl.Eo.FunctionWrapper<efl_text_font_get_api_delegate> efl_text_font_get_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_get_api_delegate>(Module, "efl_text_font_get");
+
+ private static void font_get(System.IntPtr obj, System.IntPtr pd, out System.String font, out Efl.Font.Size size)
+ {
+ Eina.Log.Debug("function efl_text_font_get was called");
+ Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
+ if (wrapper != null)
+ {
+ System.String _out_font = default(System.String);
+ size = default(Efl.Font.Size);
+ try
+ {
+ ((ITextFont)wrapper).GetFont(out _out_font, out size);
+ }
+ catch (Exception e)
+ {
+ Eina.Log.Warning($"Callback error: {e.ToString()}");
+ Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ }
+
+ font = _out_font;
+
+ }
+ else
+ {
+ efl_text_font_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out font, out size);
}
- return _ret_var;
- } else {
- return efl_text_font_slant_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
}
- }
- private static efl_text_font_slant_get_delegate efl_text_font_slant_get_static_delegate;
+ private static efl_text_font_get_delegate efl_text_font_get_static_delegate;
+
+
+ private delegate void efl_text_font_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size);
+
+
+ public delegate void efl_text_font_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font, Efl.Font.Size size);
+
+ public static Efl.Eo.FunctionWrapper<efl_text_font_set_api_delegate> efl_text_font_set_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_set_api_delegate>(Module, "efl_text_font_set");
+
+ private static void font_set(System.IntPtr obj, System.IntPtr pd, System.String font, Efl.Font.Size size)
+ {
+ Eina.Log.Debug("function efl_text_font_set was called");
+ Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
+ if (wrapper != null)
+ {
+
+ try
+ {
+ ((ITextFont)wrapper).SetFont(font, size);
+ }
+ catch (Exception e)
+ {
+ Eina.Log.Warning($"Callback error: {e.ToString()}");
+ Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ }
+
+
+ }
+ else
+ {
+ efl_text_font_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font, size);
+ }
+ }
- private delegate void efl_text_font_slant_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style);
+ private static efl_text_font_set_delegate efl_text_font_set_static_delegate;
+
+ [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
+ private delegate System.String efl_text_font_source_get_delegate(System.IntPtr obj, System.IntPtr pd);
+
+ [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
+ public delegate System.String efl_text_font_source_get_api_delegate(System.IntPtr obj);
+
+ public static Efl.Eo.FunctionWrapper<efl_text_font_source_get_api_delegate> efl_text_font_source_get_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_source_get_api_delegate>(Module, "efl_text_font_source_get");
+
+ private static System.String font_source_get(System.IntPtr obj, System.IntPtr pd)
+ {
+ Eina.Log.Debug("function efl_text_font_source_get was called");
+ Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
+ if (wrapper != null)
+ {
+ System.String _ret_var = default(System.String);
+ try
+ {
+ _ret_var = ((ITextFont)wrapper).GetFontSource();
+ }
+ catch (Exception e)
+ {
+ Eina.Log.Warning($"Callback error: {e.ToString()}");
+ Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ }
+ return _ret_var;
- public delegate void efl_text_font_slant_set_api_delegate(System.IntPtr obj, Efl.TextFontSlant style);
- public static Efl.Eo.FunctionWrapper<efl_text_font_slant_set_api_delegate> efl_text_font_slant_set_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_slant_set_api_delegate>(_Module, "efl_text_font_slant_set");
- private static void font_slant_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style)
- {
- Eina.Log.Debug("function efl_text_font_slant_set was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if(wrapper != null) {
-
- try {
- ((ITextFont)wrapper).SetFontSlant( style);
- } catch (Exception e) {
- Eina.Log.Warning($"Callback error: {e.ToString()}");
- Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
- }
- } else {
- efl_text_font_slant_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), style);
+ }
+ else
+ {
+ return efl_text_font_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
+ }
}
- }
- private static efl_text_font_slant_set_delegate efl_text_font_slant_set_static_delegate;
+ private static efl_text_font_source_get_delegate efl_text_font_source_get_static_delegate;
+
+
+ private delegate void efl_text_font_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_source);
+
+
+ public delegate void efl_text_font_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_source);
+
+ public static Efl.Eo.FunctionWrapper<efl_text_font_source_set_api_delegate> efl_text_font_source_set_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_source_set_api_delegate>(Module, "efl_text_font_source_set");
+
+ private static void font_source_set(System.IntPtr obj, System.IntPtr pd, System.String font_source)
+ {
+ Eina.Log.Debug("function efl_text_font_source_set was called");
+ Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
+ if (wrapper != null)
+ {
+
+ try
+ {
+ ((ITextFont)wrapper).SetFontSource(font_source);
+ }
+ catch (Exception e)
+ {
+ Eina.Log.Warning($"Callback error: {e.ToString()}");
+ Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ }
+
+
+ }
+ else
+ {
+ efl_text_font_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_source);
+ }
+ }
- private delegate Efl.TextFontWidth efl_text_font_width_get_delegate(System.IntPtr obj, System.IntPtr pd);
+ private static efl_text_font_source_set_delegate efl_text_font_source_set_static_delegate;
+
+ [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
+ private delegate System.String efl_text_font_fallbacks_get_delegate(System.IntPtr obj, System.IntPtr pd);
+
+ [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
+ public delegate System.String efl_text_font_fallbacks_get_api_delegate(System.IntPtr obj);
+
+ public static Efl.Eo.FunctionWrapper<efl_text_font_fallbacks_get_api_delegate> efl_text_font_fallbacks_get_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_fallbacks_get_api_delegate>(Module, "efl_text_font_fallbacks_get");
+
+ private static System.String font_fallbacks_get(System.IntPtr obj, System.IntPtr pd)
+ {
+ Eina.Log.Debug("function efl_text_font_fallbacks_get was called");
+ Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
+ if (wrapper != null)
+ {
+ System.String _ret_var = default(System.String);
+ try
+ {
+ _ret_var = ((ITextFont)wrapper).GetFontFallbacks();
+ }
+ catch (Exception e)
+ {
+ Eina.Log.Warning($"Callback error: {e.ToString()}");
+ Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ }
+ return _ret_var;
- public delegate Efl.TextFontWidth efl_text_font_width_get_api_delegate(System.IntPtr obj);
- public static Efl.Eo.FunctionWrapper<efl_text_font_width_get_api_delegate> efl_text_font_width_get_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_width_get_api_delegate>(_Module, "efl_text_font_width_get");
- private static Efl.TextFontWidth font_width_get(System.IntPtr obj, System.IntPtr pd)
- {
- Eina.Log.Debug("function efl_text_font_width_get was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if(wrapper != null) {
- Efl.TextFontWidth _ret_var = default(Efl.TextFontWidth);
- try {
- _ret_var = ((ITextFont)wrapper).GetFontWidth();
- } catch (Exception e) {
- Eina.Log.Warning($"Callback error: {e.ToString()}");
- Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
- return _ret_var;
- } else {
- return efl_text_font_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
+ else
+ {
+ return efl_text_font_fallbacks_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
+ }
}
- }
- private static efl_text_font_width_get_delegate efl_text_font_width_get_static_delegate;
+ private static efl_text_font_fallbacks_get_delegate efl_text_font_fallbacks_get_static_delegate;
+
+
+ private delegate void efl_text_font_fallbacks_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_fallbacks);
+
+
+ public delegate void efl_text_font_fallbacks_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String font_fallbacks);
+
+ public static Efl.Eo.FunctionWrapper<efl_text_font_fallbacks_set_api_delegate> efl_text_font_fallbacks_set_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_fallbacks_set_api_delegate>(Module, "efl_text_font_fallbacks_set");
+
+ private static void font_fallbacks_set(System.IntPtr obj, System.IntPtr pd, System.String font_fallbacks)
+ {
+ Eina.Log.Debug("function efl_text_font_fallbacks_set was called");
+ Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
+ if (wrapper != null)
+ {
+
+ try
+ {
+ ((ITextFont)wrapper).SetFontFallbacks(font_fallbacks);
+ }
+ catch (Exception e)
+ {
+ Eina.Log.Warning($"Callback error: {e.ToString()}");
+ Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ }
+
+
+ }
+ else
+ {
+ efl_text_font_fallbacks_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_fallbacks);
+ }
+ }
- private delegate void efl_text_font_width_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width);
+ private static efl_text_font_fallbacks_set_delegate efl_text_font_fallbacks_set_static_delegate;
+
+
+ private delegate Efl.TextFontWeight efl_text_font_weight_get_delegate(System.IntPtr obj, System.IntPtr pd);
+
+
+ public delegate Efl.TextFontWeight efl_text_font_weight_get_api_delegate(System.IntPtr obj);
+
+ public static Efl.Eo.FunctionWrapper<efl_text_font_weight_get_api_delegate> efl_text_font_weight_get_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_weight_get_api_delegate>(Module, "efl_text_font_weight_get");
+
+ private static Efl.TextFontWeight font_weight_get(System.IntPtr obj, System.IntPtr pd)
+ {
+ Eina.Log.Debug("function efl_text_font_weight_get was called");
+ Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
+ if (wrapper != null)
+ {
+ Efl.TextFontWeight _ret_var = default(Efl.TextFontWeight);
+ try
+ {
+ _ret_var = ((ITextFont)wrapper).GetFontWeight();
+ }
+ catch (Exception e)
+ {
+ Eina.Log.Warning($"Callback error: {e.ToString()}");
+ Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ }
+ return _ret_var;
- public delegate void efl_text_font_width_set_api_delegate(System.IntPtr obj, Efl.TextFontWidth width);
- public static Efl.Eo.FunctionWrapper<efl_text_font_width_set_api_delegate> efl_text_font_width_set_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_width_set_api_delegate>(_Module, "efl_text_font_width_set");
- private static void font_width_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width)
- {
- Eina.Log.Debug("function efl_text_font_width_set was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if(wrapper != null) {
-
- try {
- ((ITextFont)wrapper).SetFontWidth( width);
- } catch (Exception e) {
- Eina.Log.Warning($"Callback error: {e.ToString()}");
- Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
- }
- } else {
- efl_text_font_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), width);
+ }
+ else
+ {
+ return efl_text_font_weight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
+ }
}
- }
- private static efl_text_font_width_set_delegate efl_text_font_width_set_static_delegate;
+ private static efl_text_font_weight_get_delegate efl_text_font_weight_get_static_delegate;
+
+
+ private delegate void efl_text_font_weight_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight);
+
+
+ public delegate void efl_text_font_weight_set_api_delegate(System.IntPtr obj, Efl.TextFontWeight font_weight);
+
+ public static Efl.Eo.FunctionWrapper<efl_text_font_weight_set_api_delegate> efl_text_font_weight_set_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_weight_set_api_delegate>(Module, "efl_text_font_weight_set");
+
+ private static void font_weight_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight)
+ {
+ Eina.Log.Debug("function efl_text_font_weight_set was called");
+ Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
+ if (wrapper != null)
+ {
+
+ try
+ {
+ ((ITextFont)wrapper).SetFontWeight(font_weight);
+ }
+ catch (Exception e)
+ {
+ Eina.Log.Warning($"Callback error: {e.ToString()}");
+ Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ }
+
+
+ }
+ else
+ {
+ efl_text_font_weight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_weight);
+ }
+ }
- [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_font_lang_get_delegate(System.IntPtr obj, System.IntPtr pd);
+ private static efl_text_font_weight_set_delegate efl_text_font_weight_set_static_delegate;
+
+
+ private delegate Efl.TextFontSlant efl_text_font_slant_get_delegate(System.IntPtr obj, System.IntPtr pd);
+
+
+ public delegate Efl.TextFontSlant efl_text_font_slant_get_api_delegate(System.IntPtr obj);
+
+ public static Efl.Eo.FunctionWrapper<efl_text_font_slant_get_api_delegate> efl_text_font_slant_get_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_slant_get_api_delegate>(Module, "efl_text_font_slant_get");
+
+ private static Efl.TextFontSlant font_slant_get(System.IntPtr obj, System.IntPtr pd)
+ {
+ Eina.Log.Debug("function efl_text_font_slant_get was called");
+ Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
+ if (wrapper != null)
+ {
+ Efl.TextFontSlant _ret_var = default(Efl.TextFontSlant);
+ try
+ {
+ _ret_var = ((ITextFont)wrapper).GetFontSlant();
+ }
+ catch (Exception e)
+ {
+ Eina.Log.Warning($"Callback error: {e.ToString()}");
+ Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ }
+ return _ret_var;
- [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_text_font_lang_get_api_delegate(System.IntPtr obj);
- public static Efl.Eo.FunctionWrapper<efl_text_font_lang_get_api_delegate> efl_text_font_lang_get_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_lang_get_api_delegate>(_Module, "efl_text_font_lang_get");
- private static System.String font_lang_get(System.IntPtr obj, System.IntPtr pd)
- {
- Eina.Log.Debug("function efl_text_font_lang_get was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if(wrapper != null) {
- System.String _ret_var = default(System.String);
- try {
- _ret_var = ((ITextFont)wrapper).GetFontLang();
- } catch (Exception e) {
- Eina.Log.Warning($"Callback error: {e.ToString()}");
- Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
- return _ret_var;
- } else {
- return efl_text_font_lang_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
+ else
+ {
+ return efl_text_font_slant_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
+ }
}
- }
- private static efl_text_font_lang_get_delegate efl_text_font_lang_get_static_delegate;
+ private static efl_text_font_slant_get_delegate efl_text_font_slant_get_static_delegate;
+
+
+ private delegate void efl_text_font_slant_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style);
+
+
+ public delegate void efl_text_font_slant_set_api_delegate(System.IntPtr obj, Efl.TextFontSlant style);
+
+ public static Efl.Eo.FunctionWrapper<efl_text_font_slant_set_api_delegate> efl_text_font_slant_set_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_slant_set_api_delegate>(Module, "efl_text_font_slant_set");
+
+ private static void font_slant_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style)
+ {
+ Eina.Log.Debug("function efl_text_font_slant_set was called");
+ Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
+ if (wrapper != null)
+ {
+
+ try
+ {
+ ((ITextFont)wrapper).SetFontSlant(style);
+ }
+ catch (Exception e)
+ {
+ Eina.Log.Warning($"Callback error: {e.ToString()}");
+ Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ }
+
+
+ }
+ else
+ {
+ efl_text_font_slant_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), style);
+ }
+ }
- private delegate void efl_text_font_lang_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String lang);
+ private static efl_text_font_slant_set_delegate efl_text_font_slant_set_static_delegate;
+
+
+ private delegate Efl.TextFontWidth efl_text_font_width_get_delegate(System.IntPtr obj, System.IntPtr pd);
+
+
+ public delegate Efl.TextFontWidth efl_text_font_width_get_api_delegate(System.IntPtr obj);
+
+ public static Efl.Eo.FunctionWrapper<efl_text_font_width_get_api_delegate> efl_text_font_width_get_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_width_get_api_delegate>(Module, "efl_text_font_width_get");
+
+ private static Efl.TextFontWidth font_width_get(System.IntPtr obj, System.IntPtr pd)
+ {
+ Eina.Log.Debug("function efl_text_font_width_get was called");
+ Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
+ if (wrapper != null)
+ {
+ Efl.TextFontWidth _ret_var = default(Efl.TextFontWidth);
+ try
+ {
+ _ret_var = ((ITextFont)wrapper).GetFontWidth();
+ }
+ catch (Exception e)
+ {
+ Eina.Log.Warning($"Callback error: {e.ToString()}");
+ Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ }
+ return _ret_var;
- public delegate void efl_text_font_lang_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String lang);
- public static Efl.Eo.FunctionWrapper<efl_text_font_lang_set_api_delegate> efl_text_font_lang_set_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_lang_set_api_delegate>(_Module, "efl_text_font_lang_set");
- private static void font_lang_set(System.IntPtr obj, System.IntPtr pd, System.String lang)
- {
- Eina.Log.Debug("function efl_text_font_lang_set was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if(wrapper != null) {
-
- try {
- ((ITextFont)wrapper).SetFontLang( lang);
- } catch (Exception e) {
- Eina.Log.Warning($"Callback error: {e.ToString()}");
- Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
- }
- } else {
- efl_text_font_lang_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), lang);
+ }
+ else
+ {
+ return efl_text_font_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
+ }
}
- }
- private static efl_text_font_lang_set_delegate efl_text_font_lang_set_static_delegate;
+ private static efl_text_font_width_get_delegate efl_text_font_width_get_static_delegate;
+
+
+ private delegate void efl_text_font_width_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width);
+
+
+ public delegate void efl_text_font_width_set_api_delegate(System.IntPtr obj, Efl.TextFontWidth width);
+
+ public static Efl.Eo.FunctionWrapper<efl_text_font_width_set_api_delegate> efl_text_font_width_set_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_width_set_api_delegate>(Module, "efl_text_font_width_set");
+
+ private static void font_width_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width)
+ {
+ Eina.Log.Debug("function efl_text_font_width_set was called");
+ Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
+ if (wrapper != null)
+ {
+
+ try
+ {
+ ((ITextFont)wrapper).SetFontWidth(width);
+ }
+ catch (Exception e)
+ {
+ Eina.Log.Warning($"Callback error: {e.ToString()}");
+ Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ }
+
+
+ }
+ else
+ {
+ efl_text_font_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), width);
+ }
+ }
- private delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_delegate(System.IntPtr obj, System.IntPtr pd);
+ private static efl_text_font_width_set_delegate efl_text_font_width_set_static_delegate;
+
+ [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
+ private delegate System.String efl_text_font_lang_get_delegate(System.IntPtr obj, System.IntPtr pd);
+
+ [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
+ public delegate System.String efl_text_font_lang_get_api_delegate(System.IntPtr obj);
+
+ public static Efl.Eo.FunctionWrapper<efl_text_font_lang_get_api_delegate> efl_text_font_lang_get_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_lang_get_api_delegate>(Module, "efl_text_font_lang_get");
+
+ private static System.String font_lang_get(System.IntPtr obj, System.IntPtr pd)
+ {
+ Eina.Log.Debug("function efl_text_font_lang_get was called");
+ Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
+ if (wrapper != null)
+ {
+ System.String _ret_var = default(System.String);
+ try
+ {
+ _ret_var = ((ITextFont)wrapper).GetFontLang();
+ }
+ catch (Exception e)
+ {
+ Eina.Log.Warning($"Callback error: {e.ToString()}");
+ Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ }
+ return _ret_var;
- public delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_api_delegate(System.IntPtr obj);
- public static Efl.Eo.FunctionWrapper<efl_text_font_bitmap_scalable_get_api_delegate> efl_text_font_bitmap_scalable_get_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_bitmap_scalable_get_api_delegate>(_Module, "efl_text_font_bitmap_scalable_get");
- private static Efl.TextFontBitmapScalable font_bitmap_scalable_get(System.IntPtr obj, System.IntPtr pd)
- {
- Eina.Log.Debug("function efl_text_font_bitmap_scalable_get was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if(wrapper != null) {
- Efl.TextFontBitmapScalable _ret_var = default(Efl.TextFontBitmapScalable);
- try {
- _ret_var = ((ITextFont)wrapper).GetFontBitmapScalable();
- } catch (Exception e) {
- Eina.Log.Warning($"Callback error: {e.ToString()}");
- Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
- return _ret_var;
- } else {
- return efl_text_font_bitmap_scalable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
+ else
+ {
+ return efl_text_font_lang_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
+ }
}
- }
- private static efl_text_font_bitmap_scalable_get_delegate efl_text_font_bitmap_scalable_get_static_delegate;
+ private static efl_text_font_lang_get_delegate efl_text_font_lang_get_static_delegate;
+
+
+ private delegate void efl_text_font_lang_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String lang);
+
+
+ public delegate void efl_text_font_lang_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String lang);
+
+ public static Efl.Eo.FunctionWrapper<efl_text_font_lang_set_api_delegate> efl_text_font_lang_set_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_lang_set_api_delegate>(Module, "efl_text_font_lang_set");
+
+ private static void font_lang_set(System.IntPtr obj, System.IntPtr pd, System.String lang)
+ {
+ Eina.Log.Debug("function efl_text_font_lang_set was called");
+ Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
+ if (wrapper != null)
+ {
+
+ try
+ {
+ ((ITextFont)wrapper).SetFontLang(lang);
+ }
+ catch (Exception e)
+ {
+ Eina.Log.Warning($"Callback error: {e.ToString()}");
+ Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ }
+
+
+ }
+ else
+ {
+ efl_text_font_lang_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), lang);
+ }
+ }
- private delegate void efl_text_font_bitmap_scalable_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable);
+ private static efl_text_font_lang_set_delegate efl_text_font_lang_set_static_delegate;
+
+
+ private delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_delegate(System.IntPtr obj, System.IntPtr pd);
+
+
+ public delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_api_delegate(System.IntPtr obj);
+
+ public static Efl.Eo.FunctionWrapper<efl_text_font_bitmap_scalable_get_api_delegate> efl_text_font_bitmap_scalable_get_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_bitmap_scalable_get_api_delegate>(Module, "efl_text_font_bitmap_scalable_get");
+
+ private static Efl.TextFontBitmapScalable font_bitmap_scalable_get(System.IntPtr obj, System.IntPtr pd)
+ {
+ Eina.Log.Debug("function efl_text_font_bitmap_scalable_get was called");
+ Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
+ if (wrapper != null)
+ {
+ Efl.TextFontBitmapScalable _ret_var = default(Efl.TextFontBitmapScalable);
+ try
+ {
+ _ret_var = ((ITextFont)wrapper).GetFontBitmapScalable();
+ }
+ catch (Exception e)
+ {
+ Eina.Log.Warning($"Callback error: {e.ToString()}");
+ Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ }
+ return _ret_var;
- public delegate void efl_text_font_bitmap_scalable_set_api_delegate(System.IntPtr obj, Efl.TextFontBitmapScalable scalable);
- public static Efl.Eo.FunctionWrapper<efl_text_font_bitmap_scalable_set_api_delegate> efl_text_font_bitmap_scalable_set_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_bitmap_scalable_set_api_delegate>(_Module, "efl_text_font_bitmap_scalable_set");
- private static void font_bitmap_scalable_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable)
- {
- Eina.Log.Debug("function efl_text_font_bitmap_scalable_set was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if(wrapper != null) {
-
- try {
- ((ITextFont)wrapper).SetFontBitmapScalable( scalable);
- } catch (Exception e) {
- Eina.Log.Warning($"Callback error: {e.ToString()}");
- Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
- }
- } else {
- efl_text_font_bitmap_scalable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scalable);
+ }
+ else
+ {
+ return efl_text_font_bitmap_scalable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
+ }
}
- }
- private static efl_text_font_bitmap_scalable_set_delegate efl_text_font_bitmap_scalable_set_static_delegate;
+
+ private static efl_text_font_bitmap_scalable_get_delegate efl_text_font_bitmap_scalable_get_static_delegate;
+
+
+ private delegate void efl_text_font_bitmap_scalable_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable);
+
+
+ public delegate void efl_text_font_bitmap_scalable_set_api_delegate(System.IntPtr obj, Efl.TextFontBitmapScalable scalable);
+
+ public static Efl.Eo.FunctionWrapper<efl_text_font_bitmap_scalable_set_api_delegate> efl_text_font_bitmap_scalable_set_ptr = new Efl.Eo.FunctionWrapper<efl_text_font_bitmap_scalable_set_api_delegate>(Module, "efl_text_font_bitmap_scalable_set");
+
+ private static void font_bitmap_scalable_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable)
+ {
+ Eina.Log.Debug("function efl_text_font_bitmap_scalable_set was called");
+ Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
+ if (wrapper != null)
+ {
+
+ try
+ {
+ ((ITextFont)wrapper).SetFontBitmapScalable(scalable);
+ }
+ catch (Exception e)
+ {
+ Eina.Log.Warning($"Callback error: {e.ToString()}");
+ Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
+ }
+
+
+ }
+ else
+ {
+ efl_text_font_bitmap_scalable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scalable);
+ }
+ }
+
+ private static efl_text_font_bitmap_scalable_set_delegate efl_text_font_bitmap_scalable_set_static_delegate;
+
+ #pragma warning restore CA1707, SA1300, SA1600
+
+}
+}
}
-}
-namespace Efl {
+
+namespace Efl {
+
/// <summary>Type of font weight</summary>
public enum TextFontWeight
{
/// <summary>Extrablack font weight</summary>
Extrablack = 12,
}
-}
-namespace Efl {
+
+}
+
+namespace Efl {
+
/// <summary>Type of font width</summary>
public enum TextFontWidth
{
/// <summary>Ultraexpanded font width</summary>
Ultraexpanded = 8,
}
-}
-namespace Efl {
+
+}
+
+namespace Efl {
+
/// <summary>Type of font slant</summary>
public enum TextFontSlant
{
/// <summary>Italic font slant</summary>
Italic = 2,
}
-}
-namespace Efl {
+
+}
+
+namespace Efl {
+
/// <summary>Scalable of bitmap fonts</summary>
public enum TextFontBitmapScalable
{
/// <summary>Enable scalable feature for color bitmap fonts.</summary>
Color = 1,
}
-}
+
+}
+