1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
10 /// <summary>Font settings of the text</summary>
11 [Efl.ITextFontConcrete.NativeMethods]
12 public interface ITextFont :
13 Efl.Eo.IWrapper, IDisposable
15 /// <summary>Retrieve the font family and size in use on a given text object.
16 /// 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.
18 /// See also <see cref="Efl.ITextFont.GetFont"/>.</summary>
19 /// <param name="font">The font family name or filename.</param>
20 /// <param name="size">The font size, in points.</param>
21 void GetFont(out System.String font, out Efl.Font.Size size);
22 /// <summary>Set the font family, filename and size for a given text object.
23 /// 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.
25 /// See also <see cref="Efl.ITextFont.GetFont"/>, <see cref="Efl.ITextFont.GetFontSource"/>.</summary>
26 /// <param name="font">The font family name or filename.</param>
27 /// <param name="size">The font size, in points.</param>
28 void SetFont(System.String font, Efl.Font.Size size);
29 /// <summary>Get the font file's path which is being used on a given text object.
30 /// See <see cref="Efl.ITextFont.GetFont"/> for more details.</summary>
31 /// <returns>The font file's path.</returns>
32 System.String GetFontSource();
33 /// <summary>Set the font (source) file to be used on a given text object.
34 /// This function allows the font file to be explicitly set for a given text object, overriding system lookup, which will first occur in the given file's contents.
36 /// See also <see cref="Efl.ITextFont.GetFont"/>.</summary>
37 /// <param name="font_source">The font file's path.</param>
38 void SetFontSource(System.String font_source);
39 /// <summary>Comma-separated list of font fallbacks
40 /// Will be used in case the primary font isn't available.</summary>
41 /// <returns>Font name fallbacks</returns>
42 System.String GetFontFallbacks();
43 /// <summary>Comma-separated list of font fallbacks
44 /// Will be used in case the primary font isn't available.</summary>
45 /// <param name="font_fallbacks">Font name fallbacks</param>
46 void SetFontFallbacks(System.String font_fallbacks);
47 /// <summary>Type of weight of the displayed font
48 /// Default is <see cref="Efl.TextFontWeight.Normal"/>.</summary>
49 /// <returns>Font weight</returns>
50 Efl.TextFontWeight GetFontWeight();
51 /// <summary>Type of weight of the displayed font
52 /// Default is <see cref="Efl.TextFontWeight.Normal"/>.</summary>
53 /// <param name="font_weight">Font weight</param>
54 void SetFontWeight(Efl.TextFontWeight font_weight);
55 /// <summary>Type of slant of the displayed font
56 /// Default is <see cref="Efl.TextFontSlant.Normal"/>.</summary>
57 /// <returns>Font slant</returns>
58 Efl.TextFontSlant GetFontSlant();
59 /// <summary>Type of slant of the displayed font
60 /// Default is <see cref="Efl.TextFontSlant.Normal"/>.</summary>
61 /// <param name="style">Font slant</param>
62 void SetFontSlant(Efl.TextFontSlant style);
63 /// <summary>Type of width of the displayed font
64 /// Default is <see cref="Efl.TextFontWidth.Normal"/>.</summary>
65 /// <returns>Font width</returns>
66 Efl.TextFontWidth GetFontWidth();
67 /// <summary>Type of width of the displayed font
68 /// Default is <see cref="Efl.TextFontWidth.Normal"/>.</summary>
69 /// <param name="width">Font width</param>
70 void SetFontWidth(Efl.TextFontWidth width);
71 /// <summary>Specific language of the displayed font
72 /// 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>
73 /// <returns>Language</returns>
74 System.String GetFontLang();
75 /// <summary>Specific language of the displayed font
76 /// 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>
77 /// <param name="lang">Language</param>
78 void SetFontLang(System.String lang);
79 /// <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)
80 /// Default is <see cref="Efl.TextFontBitmapScalable.None"/>.</summary>
81 /// <returns>Scalable</returns>
82 Efl.TextFontBitmapScalable GetFontBitmapScalable();
83 /// <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)
84 /// Default is <see cref="Efl.TextFontBitmapScalable.None"/>.</summary>
85 /// <param name="scalable">Scalable</param>
86 void SetFontBitmapScalable(Efl.TextFontBitmapScalable scalable);
87 /// <summary>Get the font file's path which is being used on a given text object.
88 /// See <see cref="Efl.ITextFont.GetFont"/> for more details.</summary>
89 /// <value>The font file's path.</value>
90 System.String FontSource {
94 /// <summary>Comma-separated list of font fallbacks
95 /// Will be used in case the primary font isn't available.</summary>
96 /// <value>Font name fallbacks</value>
97 System.String FontFallbacks {
101 /// <summary>Type of weight of the displayed font
102 /// Default is <see cref="Efl.TextFontWeight.Normal"/>.</summary>
103 /// <value>Font weight</value>
104 Efl.TextFontWeight FontWeight {
108 /// <summary>Type of slant of the displayed font
109 /// Default is <see cref="Efl.TextFontSlant.Normal"/>.</summary>
110 /// <value>Font slant</value>
111 Efl.TextFontSlant FontSlant {
115 /// <summary>Type of width of the displayed font
116 /// Default is <see cref="Efl.TextFontWidth.Normal"/>.</summary>
117 /// <value>Font width</value>
118 Efl.TextFontWidth FontWidth {
122 /// <summary>Specific language of the displayed font
123 /// 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>
124 /// <value>Language</value>
125 System.String FontLang {
129 /// <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)
130 /// Default is <see cref="Efl.TextFontBitmapScalable.None"/>.</summary>
131 /// <value>Scalable</value>
132 Efl.TextFontBitmapScalable FontBitmapScalable {
137 /// <summary>Font settings of the text</summary>
138 sealed public class ITextFontConcrete :
143 ///<summary>Pointer to the native class description.</summary>
144 public System.IntPtr NativeClass
148 if (((object)this).GetType() == typeof(ITextFontConcrete))
150 return GetEflClassStatic();
154 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
159 private System.IntPtr handle;
160 ///<summary>Pointer to the native instance.</summary>
161 public System.IntPtr NativeHandle
163 get { return handle; }
166 [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr
167 efl_text_font_interface_get();
168 /// <summary>Initializes a new instance of the <see cref="ITextFont"/> class.
169 /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
170 private ITextFontConcrete(System.IntPtr raw)
174 ///<summary>Destructor.</summary>
180 ///<summary>Releases the underlying native instance.</summary>
181 private void Dispose(bool disposing)
183 if (handle != System.IntPtr.Zero)
186 handle = IntPtr.Zero;
188 IntPtr gcHandlePtr = IntPtr.Zero;
191 Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr);
195 Monitor.Enter(Efl.All.InitLock);
196 if (Efl.All.MainLoopInitialized)
198 Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr);
201 Monitor.Exit(Efl.All.InitLock);
207 ///<summary>Releases the underlying native instance.</summary>
208 public void Dispose()
211 GC.SuppressFinalize(this);
214 /// <summary>Verifies if the given object is equal to this one.</summary>
215 /// <param name="instance">The object to compare to.</param>
216 /// <returns>True if both objects point to the same native object.</returns>
217 public override bool Equals(object instance)
219 var other = instance as Efl.Object;
224 return this.NativeHandle == other.NativeHandle;
227 /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
228 /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
229 public override int GetHashCode()
231 return this.NativeHandle.ToInt32();
234 /// <summary>Turns the native pointer into a string representation.</summary>
235 /// <returns>A string with the type and the native pointer for this object.</returns>
236 public override String ToString()
238 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
241 /// <summary>Retrieve the font family and size in use on a given text object.
242 /// 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.
244 /// See also <see cref="Efl.ITextFont.GetFont"/>.</summary>
245 /// <param name="font">The font family name or filename.</param>
246 /// <param name="size">The font size, in points.</param>
247 public void GetFont(out System.String font, out Efl.Font.Size size) {
248 Efl.ITextFontConcrete.NativeMethods.efl_text_font_get_ptr.Value.Delegate(this.NativeHandle,out font, out size);
249 Eina.Error.RaiseIfUnhandledException();
251 /// <summary>Set the font family, filename and size for a given text object.
252 /// 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.
254 /// See also <see cref="Efl.ITextFont.GetFont"/>, <see cref="Efl.ITextFont.GetFontSource"/>.</summary>
255 /// <param name="font">The font family name or filename.</param>
256 /// <param name="size">The font size, in points.</param>
257 public void SetFont(System.String font, Efl.Font.Size size) {
258 Efl.ITextFontConcrete.NativeMethods.efl_text_font_set_ptr.Value.Delegate(this.NativeHandle,font, size);
259 Eina.Error.RaiseIfUnhandledException();
261 /// <summary>Get the font file's path which is being used on a given text object.
262 /// See <see cref="Efl.ITextFont.GetFont"/> for more details.</summary>
263 /// <returns>The font file's path.</returns>
264 public System.String GetFontSource() {
265 var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_source_get_ptr.Value.Delegate(this.NativeHandle);
266 Eina.Error.RaiseIfUnhandledException();
269 /// <summary>Set the font (source) file to be used on a given text object.
270 /// This function allows the font file to be explicitly set for a given text object, overriding system lookup, which will first occur in the given file's contents.
272 /// See also <see cref="Efl.ITextFont.GetFont"/>.</summary>
273 /// <param name="font_source">The font file's path.</param>
274 public void SetFontSource(System.String font_source) {
275 Efl.ITextFontConcrete.NativeMethods.efl_text_font_source_set_ptr.Value.Delegate(this.NativeHandle,font_source);
276 Eina.Error.RaiseIfUnhandledException();
278 /// <summary>Comma-separated list of font fallbacks
279 /// Will be used in case the primary font isn't available.</summary>
280 /// <returns>Font name fallbacks</returns>
281 public System.String GetFontFallbacks() {
282 var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_fallbacks_get_ptr.Value.Delegate(this.NativeHandle);
283 Eina.Error.RaiseIfUnhandledException();
286 /// <summary>Comma-separated list of font fallbacks
287 /// Will be used in case the primary font isn't available.</summary>
288 /// <param name="font_fallbacks">Font name fallbacks</param>
289 public void SetFontFallbacks(System.String font_fallbacks) {
290 Efl.ITextFontConcrete.NativeMethods.efl_text_font_fallbacks_set_ptr.Value.Delegate(this.NativeHandle,font_fallbacks);
291 Eina.Error.RaiseIfUnhandledException();
293 /// <summary>Type of weight of the displayed font
294 /// Default is <see cref="Efl.TextFontWeight.Normal"/>.</summary>
295 /// <returns>Font weight</returns>
296 public Efl.TextFontWeight GetFontWeight() {
297 var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_weight_get_ptr.Value.Delegate(this.NativeHandle);
298 Eina.Error.RaiseIfUnhandledException();
301 /// <summary>Type of weight of the displayed font
302 /// Default is <see cref="Efl.TextFontWeight.Normal"/>.</summary>
303 /// <param name="font_weight">Font weight</param>
304 public void SetFontWeight(Efl.TextFontWeight font_weight) {
305 Efl.ITextFontConcrete.NativeMethods.efl_text_font_weight_set_ptr.Value.Delegate(this.NativeHandle,font_weight);
306 Eina.Error.RaiseIfUnhandledException();
308 /// <summary>Type of slant of the displayed font
309 /// Default is <see cref="Efl.TextFontSlant.Normal"/>.</summary>
310 /// <returns>Font slant</returns>
311 public Efl.TextFontSlant GetFontSlant() {
312 var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_slant_get_ptr.Value.Delegate(this.NativeHandle);
313 Eina.Error.RaiseIfUnhandledException();
316 /// <summary>Type of slant of the displayed font
317 /// Default is <see cref="Efl.TextFontSlant.Normal"/>.</summary>
318 /// <param name="style">Font slant</param>
319 public void SetFontSlant(Efl.TextFontSlant style) {
320 Efl.ITextFontConcrete.NativeMethods.efl_text_font_slant_set_ptr.Value.Delegate(this.NativeHandle,style);
321 Eina.Error.RaiseIfUnhandledException();
323 /// <summary>Type of width of the displayed font
324 /// Default is <see cref="Efl.TextFontWidth.Normal"/>.</summary>
325 /// <returns>Font width</returns>
326 public Efl.TextFontWidth GetFontWidth() {
327 var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_width_get_ptr.Value.Delegate(this.NativeHandle);
328 Eina.Error.RaiseIfUnhandledException();
331 /// <summary>Type of width of the displayed font
332 /// Default is <see cref="Efl.TextFontWidth.Normal"/>.</summary>
333 /// <param name="width">Font width</param>
334 public void SetFontWidth(Efl.TextFontWidth width) {
335 Efl.ITextFontConcrete.NativeMethods.efl_text_font_width_set_ptr.Value.Delegate(this.NativeHandle,width);
336 Eina.Error.RaiseIfUnhandledException();
338 /// <summary>Specific language of the displayed font
339 /// 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>
340 /// <returns>Language</returns>
341 public System.String GetFontLang() {
342 var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_lang_get_ptr.Value.Delegate(this.NativeHandle);
343 Eina.Error.RaiseIfUnhandledException();
346 /// <summary>Specific language of the displayed font
347 /// 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>
348 /// <param name="lang">Language</param>
349 public void SetFontLang(System.String lang) {
350 Efl.ITextFontConcrete.NativeMethods.efl_text_font_lang_set_ptr.Value.Delegate(this.NativeHandle,lang);
351 Eina.Error.RaiseIfUnhandledException();
353 /// <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)
354 /// Default is <see cref="Efl.TextFontBitmapScalable.None"/>.</summary>
355 /// <returns>Scalable</returns>
356 public Efl.TextFontBitmapScalable GetFontBitmapScalable() {
357 var _ret_var = Efl.ITextFontConcrete.NativeMethods.efl_text_font_bitmap_scalable_get_ptr.Value.Delegate(this.NativeHandle);
358 Eina.Error.RaiseIfUnhandledException();
361 /// <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)
362 /// Default is <see cref="Efl.TextFontBitmapScalable.None"/>.</summary>
363 /// <param name="scalable">Scalable</param>
364 public void SetFontBitmapScalable(Efl.TextFontBitmapScalable scalable) {
365 Efl.ITextFontConcrete.NativeMethods.efl_text_font_bitmap_scalable_set_ptr.Value.Delegate(this.NativeHandle,scalable);
366 Eina.Error.RaiseIfUnhandledException();
368 /// <summary>Get the font file's path which is being used on a given text object.
369 /// See <see cref="Efl.ITextFont.GetFont"/> for more details.</summary>
370 /// <value>The font file's path.</value>
371 public System.String FontSource {
372 get { return GetFontSource(); }
373 set { SetFontSource(value); }
375 /// <summary>Comma-separated list of font fallbacks
376 /// Will be used in case the primary font isn't available.</summary>
377 /// <value>Font name fallbacks</value>
378 public System.String FontFallbacks {
379 get { return GetFontFallbacks(); }
380 set { SetFontFallbacks(value); }
382 /// <summary>Type of weight of the displayed font
383 /// Default is <see cref="Efl.TextFontWeight.Normal"/>.</summary>
384 /// <value>Font weight</value>
385 public Efl.TextFontWeight FontWeight {
386 get { return GetFontWeight(); }
387 set { SetFontWeight(value); }
389 /// <summary>Type of slant of the displayed font
390 /// Default is <see cref="Efl.TextFontSlant.Normal"/>.</summary>
391 /// <value>Font slant</value>
392 public Efl.TextFontSlant FontSlant {
393 get { return GetFontSlant(); }
394 set { SetFontSlant(value); }
396 /// <summary>Type of width of the displayed font
397 /// Default is <see cref="Efl.TextFontWidth.Normal"/>.</summary>
398 /// <value>Font width</value>
399 public Efl.TextFontWidth FontWidth {
400 get { return GetFontWidth(); }
401 set { SetFontWidth(value); }
403 /// <summary>Specific language of the displayed font
404 /// 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>
405 /// <value>Language</value>
406 public System.String FontLang {
407 get { return GetFontLang(); }
408 set { SetFontLang(value); }
410 /// <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)
411 /// Default is <see cref="Efl.TextFontBitmapScalable.None"/>.</summary>
412 /// <value>Scalable</value>
413 public Efl.TextFontBitmapScalable FontBitmapScalable {
414 get { return GetFontBitmapScalable(); }
415 set { SetFontBitmapScalable(value); }
417 private static IntPtr GetEflClassStatic()
419 return Efl.ITextFontConcrete.efl_text_font_interface_get();
421 /// <summary>Wrapper for native methods and virtual method delegates.
422 /// For internal use by generated code only.</summary>
423 public class NativeMethods : Efl.Eo.NativeClass
425 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl);
426 /// <summary>Gets the list of Eo operations to override.</summary>
427 /// <returns>The list of Eo operations to be overload.</returns>
428 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
430 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
431 var methods = Efl.Eo.Globals.GetUserMethods(type);
433 if (efl_text_font_get_static_delegate == null)
435 efl_text_font_get_static_delegate = new efl_text_font_get_delegate(font_get);
438 if (methods.FirstOrDefault(m => m.Name == "GetFont") != null)
440 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) });
443 if (efl_text_font_set_static_delegate == null)
445 efl_text_font_set_static_delegate = new efl_text_font_set_delegate(font_set);
448 if (methods.FirstOrDefault(m => m.Name == "SetFont") != null)
450 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) });
453 if (efl_text_font_source_get_static_delegate == null)
455 efl_text_font_source_get_static_delegate = new efl_text_font_source_get_delegate(font_source_get);
458 if (methods.FirstOrDefault(m => m.Name == "GetFontSource") != null)
460 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) });
463 if (efl_text_font_source_set_static_delegate == null)
465 efl_text_font_source_set_static_delegate = new efl_text_font_source_set_delegate(font_source_set);
468 if (methods.FirstOrDefault(m => m.Name == "SetFontSource") != null)
470 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) });
473 if (efl_text_font_fallbacks_get_static_delegate == null)
475 efl_text_font_fallbacks_get_static_delegate = new efl_text_font_fallbacks_get_delegate(font_fallbacks_get);
478 if (methods.FirstOrDefault(m => m.Name == "GetFontFallbacks") != null)
480 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) });
483 if (efl_text_font_fallbacks_set_static_delegate == null)
485 efl_text_font_fallbacks_set_static_delegate = new efl_text_font_fallbacks_set_delegate(font_fallbacks_set);
488 if (methods.FirstOrDefault(m => m.Name == "SetFontFallbacks") != null)
490 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) });
493 if (efl_text_font_weight_get_static_delegate == null)
495 efl_text_font_weight_get_static_delegate = new efl_text_font_weight_get_delegate(font_weight_get);
498 if (methods.FirstOrDefault(m => m.Name == "GetFontWeight") != null)
500 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) });
503 if (efl_text_font_weight_set_static_delegate == null)
505 efl_text_font_weight_set_static_delegate = new efl_text_font_weight_set_delegate(font_weight_set);
508 if (methods.FirstOrDefault(m => m.Name == "SetFontWeight") != null)
510 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) });
513 if (efl_text_font_slant_get_static_delegate == null)
515 efl_text_font_slant_get_static_delegate = new efl_text_font_slant_get_delegate(font_slant_get);
518 if (methods.FirstOrDefault(m => m.Name == "GetFontSlant") != null)
520 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) });
523 if (efl_text_font_slant_set_static_delegate == null)
525 efl_text_font_slant_set_static_delegate = new efl_text_font_slant_set_delegate(font_slant_set);
528 if (methods.FirstOrDefault(m => m.Name == "SetFontSlant") != null)
530 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) });
533 if (efl_text_font_width_get_static_delegate == null)
535 efl_text_font_width_get_static_delegate = new efl_text_font_width_get_delegate(font_width_get);
538 if (methods.FirstOrDefault(m => m.Name == "GetFontWidth") != null)
540 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) });
543 if (efl_text_font_width_set_static_delegate == null)
545 efl_text_font_width_set_static_delegate = new efl_text_font_width_set_delegate(font_width_set);
548 if (methods.FirstOrDefault(m => m.Name == "SetFontWidth") != null)
550 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) });
553 if (efl_text_font_lang_get_static_delegate == null)
555 efl_text_font_lang_get_static_delegate = new efl_text_font_lang_get_delegate(font_lang_get);
558 if (methods.FirstOrDefault(m => m.Name == "GetFontLang") != null)
560 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) });
563 if (efl_text_font_lang_set_static_delegate == null)
565 efl_text_font_lang_set_static_delegate = new efl_text_font_lang_set_delegate(font_lang_set);
568 if (methods.FirstOrDefault(m => m.Name == "SetFontLang") != null)
570 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) });
573 if (efl_text_font_bitmap_scalable_get_static_delegate == null)
575 efl_text_font_bitmap_scalable_get_static_delegate = new efl_text_font_bitmap_scalable_get_delegate(font_bitmap_scalable_get);
578 if (methods.FirstOrDefault(m => m.Name == "GetFontBitmapScalable") != null)
580 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) });
583 if (efl_text_font_bitmap_scalable_set_static_delegate == null)
585 efl_text_font_bitmap_scalable_set_static_delegate = new efl_text_font_bitmap_scalable_set_delegate(font_bitmap_scalable_set);
588 if (methods.FirstOrDefault(m => m.Name == "SetFontBitmapScalable") != null)
590 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) });
595 /// <summary>Returns the Eo class for the native methods of this class.</summary>
596 /// <returns>The native class pointer.</returns>
597 public override IntPtr GetEflClass()
599 return Efl.ITextFontConcrete.efl_text_font_interface_get();
602 #pragma warning disable CA1707, SA1300, SA1600
605 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);
608 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);
610 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");
612 private static void font_get(System.IntPtr obj, System.IntPtr pd, out System.String font, out Efl.Font.Size size)
614 Eina.Log.Debug("function efl_text_font_get was called");
615 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
618 System.String _out_font = default(System.String);
619 size = default(Efl.Font.Size);
622 ((ITextFont)wrapper).GetFont(out _out_font, out size);
626 Eina.Log.Warning($"Callback error: {e.ToString()}");
627 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
635 efl_text_font_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out font, out size);
639 private static efl_text_font_get_delegate efl_text_font_get_static_delegate;
642 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);
645 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);
647 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");
649 private static void font_set(System.IntPtr obj, System.IntPtr pd, System.String font, Efl.Font.Size size)
651 Eina.Log.Debug("function efl_text_font_set was called");
652 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
658 ((ITextFont)wrapper).SetFont(font, size);
662 Eina.Log.Warning($"Callback error: {e.ToString()}");
663 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
670 efl_text_font_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font, size);
674 private static efl_text_font_set_delegate efl_text_font_set_static_delegate;
676 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
677 private delegate System.String efl_text_font_source_get_delegate(System.IntPtr obj, System.IntPtr pd);
679 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
680 public delegate System.String efl_text_font_source_get_api_delegate(System.IntPtr obj);
682 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");
684 private static System.String font_source_get(System.IntPtr obj, System.IntPtr pd)
686 Eina.Log.Debug("function efl_text_font_source_get was called");
687 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
690 System.String _ret_var = default(System.String);
693 _ret_var = ((ITextFont)wrapper).GetFontSource();
697 Eina.Log.Warning($"Callback error: {e.ToString()}");
698 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
706 return efl_text_font_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
710 private static efl_text_font_source_get_delegate efl_text_font_source_get_static_delegate;
713 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);
716 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);
718 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");
720 private static void font_source_set(System.IntPtr obj, System.IntPtr pd, System.String font_source)
722 Eina.Log.Debug("function efl_text_font_source_set was called");
723 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
729 ((ITextFont)wrapper).SetFontSource(font_source);
733 Eina.Log.Warning($"Callback error: {e.ToString()}");
734 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
741 efl_text_font_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_source);
745 private static efl_text_font_source_set_delegate efl_text_font_source_set_static_delegate;
747 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
748 private delegate System.String efl_text_font_fallbacks_get_delegate(System.IntPtr obj, System.IntPtr pd);
750 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
751 public delegate System.String efl_text_font_fallbacks_get_api_delegate(System.IntPtr obj);
753 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");
755 private static System.String font_fallbacks_get(System.IntPtr obj, System.IntPtr pd)
757 Eina.Log.Debug("function efl_text_font_fallbacks_get was called");
758 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
761 System.String _ret_var = default(System.String);
764 _ret_var = ((ITextFont)wrapper).GetFontFallbacks();
768 Eina.Log.Warning($"Callback error: {e.ToString()}");
769 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
777 return efl_text_font_fallbacks_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
781 private static efl_text_font_fallbacks_get_delegate efl_text_font_fallbacks_get_static_delegate;
784 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);
787 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);
789 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");
791 private static void font_fallbacks_set(System.IntPtr obj, System.IntPtr pd, System.String font_fallbacks)
793 Eina.Log.Debug("function efl_text_font_fallbacks_set was called");
794 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
800 ((ITextFont)wrapper).SetFontFallbacks(font_fallbacks);
804 Eina.Log.Warning($"Callback error: {e.ToString()}");
805 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
812 efl_text_font_fallbacks_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_fallbacks);
816 private static efl_text_font_fallbacks_set_delegate efl_text_font_fallbacks_set_static_delegate;
819 private delegate Efl.TextFontWeight efl_text_font_weight_get_delegate(System.IntPtr obj, System.IntPtr pd);
822 public delegate Efl.TextFontWeight efl_text_font_weight_get_api_delegate(System.IntPtr obj);
824 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");
826 private static Efl.TextFontWeight font_weight_get(System.IntPtr obj, System.IntPtr pd)
828 Eina.Log.Debug("function efl_text_font_weight_get was called");
829 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
832 Efl.TextFontWeight _ret_var = default(Efl.TextFontWeight);
835 _ret_var = ((ITextFont)wrapper).GetFontWeight();
839 Eina.Log.Warning($"Callback error: {e.ToString()}");
840 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
848 return efl_text_font_weight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
852 private static efl_text_font_weight_get_delegate efl_text_font_weight_get_static_delegate;
855 private delegate void efl_text_font_weight_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight);
858 public delegate void efl_text_font_weight_set_api_delegate(System.IntPtr obj, Efl.TextFontWeight font_weight);
860 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");
862 private static void font_weight_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWeight font_weight)
864 Eina.Log.Debug("function efl_text_font_weight_set was called");
865 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
871 ((ITextFont)wrapper).SetFontWeight(font_weight);
875 Eina.Log.Warning($"Callback error: {e.ToString()}");
876 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
883 efl_text_font_weight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), font_weight);
887 private static efl_text_font_weight_set_delegate efl_text_font_weight_set_static_delegate;
890 private delegate Efl.TextFontSlant efl_text_font_slant_get_delegate(System.IntPtr obj, System.IntPtr pd);
893 public delegate Efl.TextFontSlant efl_text_font_slant_get_api_delegate(System.IntPtr obj);
895 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");
897 private static Efl.TextFontSlant font_slant_get(System.IntPtr obj, System.IntPtr pd)
899 Eina.Log.Debug("function efl_text_font_slant_get was called");
900 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
903 Efl.TextFontSlant _ret_var = default(Efl.TextFontSlant);
906 _ret_var = ((ITextFont)wrapper).GetFontSlant();
910 Eina.Log.Warning($"Callback error: {e.ToString()}");
911 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
919 return efl_text_font_slant_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
923 private static efl_text_font_slant_get_delegate efl_text_font_slant_get_static_delegate;
926 private delegate void efl_text_font_slant_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style);
929 public delegate void efl_text_font_slant_set_api_delegate(System.IntPtr obj, Efl.TextFontSlant style);
931 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");
933 private static void font_slant_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontSlant style)
935 Eina.Log.Debug("function efl_text_font_slant_set was called");
936 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
942 ((ITextFont)wrapper).SetFontSlant(style);
946 Eina.Log.Warning($"Callback error: {e.ToString()}");
947 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
954 efl_text_font_slant_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), style);
958 private static efl_text_font_slant_set_delegate efl_text_font_slant_set_static_delegate;
961 private delegate Efl.TextFontWidth efl_text_font_width_get_delegate(System.IntPtr obj, System.IntPtr pd);
964 public delegate Efl.TextFontWidth efl_text_font_width_get_api_delegate(System.IntPtr obj);
966 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");
968 private static Efl.TextFontWidth font_width_get(System.IntPtr obj, System.IntPtr pd)
970 Eina.Log.Debug("function efl_text_font_width_get was called");
971 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
974 Efl.TextFontWidth _ret_var = default(Efl.TextFontWidth);
977 _ret_var = ((ITextFont)wrapper).GetFontWidth();
981 Eina.Log.Warning($"Callback error: {e.ToString()}");
982 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
990 return efl_text_font_width_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
994 private static efl_text_font_width_get_delegate efl_text_font_width_get_static_delegate;
997 private delegate void efl_text_font_width_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width);
1000 public delegate void efl_text_font_width_set_api_delegate(System.IntPtr obj, Efl.TextFontWidth width);
1002 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");
1004 private static void font_width_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontWidth width)
1006 Eina.Log.Debug("function efl_text_font_width_set was called");
1007 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1008 if (wrapper != null)
1013 ((ITextFont)wrapper).SetFontWidth(width);
1017 Eina.Log.Warning($"Callback error: {e.ToString()}");
1018 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1025 efl_text_font_width_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), width);
1029 private static efl_text_font_width_set_delegate efl_text_font_width_set_static_delegate;
1031 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
1032 private delegate System.String efl_text_font_lang_get_delegate(System.IntPtr obj, System.IntPtr pd);
1034 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
1035 public delegate System.String efl_text_font_lang_get_api_delegate(System.IntPtr obj);
1037 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");
1039 private static System.String font_lang_get(System.IntPtr obj, System.IntPtr pd)
1041 Eina.Log.Debug("function efl_text_font_lang_get was called");
1042 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1043 if (wrapper != null)
1045 System.String _ret_var = default(System.String);
1048 _ret_var = ((ITextFont)wrapper).GetFontLang();
1052 Eina.Log.Warning($"Callback error: {e.ToString()}");
1053 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1061 return efl_text_font_lang_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1065 private static efl_text_font_lang_get_delegate efl_text_font_lang_get_static_delegate;
1068 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);
1071 public delegate void efl_text_font_lang_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String lang);
1073 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");
1075 private static void font_lang_set(System.IntPtr obj, System.IntPtr pd, System.String lang)
1077 Eina.Log.Debug("function efl_text_font_lang_set was called");
1078 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1079 if (wrapper != null)
1084 ((ITextFont)wrapper).SetFontLang(lang);
1088 Eina.Log.Warning($"Callback error: {e.ToString()}");
1089 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1096 efl_text_font_lang_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), lang);
1100 private static efl_text_font_lang_set_delegate efl_text_font_lang_set_static_delegate;
1103 private delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_delegate(System.IntPtr obj, System.IntPtr pd);
1106 public delegate Efl.TextFontBitmapScalable efl_text_font_bitmap_scalable_get_api_delegate(System.IntPtr obj);
1108 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");
1110 private static Efl.TextFontBitmapScalable font_bitmap_scalable_get(System.IntPtr obj, System.IntPtr pd)
1112 Eina.Log.Debug("function efl_text_font_bitmap_scalable_get was called");
1113 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1114 if (wrapper != null)
1116 Efl.TextFontBitmapScalable _ret_var = default(Efl.TextFontBitmapScalable);
1119 _ret_var = ((ITextFont)wrapper).GetFontBitmapScalable();
1123 Eina.Log.Warning($"Callback error: {e.ToString()}");
1124 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1132 return efl_text_font_bitmap_scalable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1136 private static efl_text_font_bitmap_scalable_get_delegate efl_text_font_bitmap_scalable_get_static_delegate;
1139 private delegate void efl_text_font_bitmap_scalable_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable);
1142 public delegate void efl_text_font_bitmap_scalable_set_api_delegate(System.IntPtr obj, Efl.TextFontBitmapScalable scalable);
1144 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");
1146 private static void font_bitmap_scalable_set(System.IntPtr obj, System.IntPtr pd, Efl.TextFontBitmapScalable scalable)
1148 Eina.Log.Debug("function efl_text_font_bitmap_scalable_set was called");
1149 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
1150 if (wrapper != null)
1155 ((ITextFont)wrapper).SetFontBitmapScalable(scalable);
1159 Eina.Log.Warning($"Callback error: {e.ToString()}");
1160 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1167 efl_text_font_bitmap_scalable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scalable);
1171 private static efl_text_font_bitmap_scalable_set_delegate efl_text_font_bitmap_scalable_set_static_delegate;
1173 #pragma warning restore CA1707, SA1300, SA1600
1181 /// <summary>Type of font weight</summary>
1182 public enum TextFontWeight
1184 /// <summary>Normal font weight</summary>
1186 /// <summary>Thin font weight</summary>
1188 /// <summary>Ultralight font weight</summary>
1190 /// <summary>Extralight font weight</summary>
1192 /// <summary>Light font weight</summary>
1194 /// <summary>Book font weight</summary>
1196 /// <summary>Medium font weight</summary>
1198 /// <summary>Semibold font weight</summary>
1200 /// <summary>Bold font weight</summary>
1202 /// <summary>Ultrabold font weight</summary>
1204 /// <summary>Extrabold font weight</summary>
1206 /// <summary>Black font weight</summary>
1208 /// <summary>Extrablack font weight</summary>
1216 /// <summary>Type of font width</summary>
1217 public enum TextFontWidth
1219 /// <summary>Normal font width</summary>
1221 /// <summary>Ultracondensed font width</summary>
1223 /// <summary>Extracondensed font width</summary>
1225 /// <summary>Condensed font width</summary>
1227 /// <summary>Semicondensed font width</summary>
1229 /// <summary>Semiexpanded font width</summary>
1231 /// <summary>Expanded font width</summary>
1233 /// <summary>Extraexpanded font width</summary>
1235 /// <summary>Ultraexpanded font width</summary>
1243 /// <summary>Type of font slant</summary>
1244 public enum TextFontSlant
1246 /// <summary>Normal font slant</summary>
1248 /// <summary>Oblique font slant</summary>
1250 /// <summary>Italic font slant</summary>
1258 /// <summary>Scalable of bitmap fonts</summary>
1259 public enum TextFontBitmapScalable
1261 /// <summary>Disable scalable feature for bitmap fonts.</summary>
1263 /// <summary>Enable scalable feature for color bitmap fonts.</summary>