1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
12 /// <summary>Efl font size type</summary>
17 /// <summary>Converts an instance of int to this struct.</summary>
18 /// <param name="value">The value to be converted.</param>
19 /// <returns>A struct with the given value.</returns>
20 public static implicit operator Size(int value)
22 return new Size{payload=value};
25 /// <summary>Converts an instance of this struct to int.</summary>
26 /// <param name="value">The value to be converted packed in this struct.</param>
27 /// <returns>The actual value the alias is wrapping.</returns>
28 public static implicit operator int(Size value)
43 /// <summary>Graphics colorspace type</summary>
44 [Efl.Eo.BindingEntity]
45 public enum Colorspace
47 /// <summary>ARGB 32 bits per pixel, high-byte is Alpha, accessed one 32bit word at a time.</summary>
49 /// <summary>YCbCr 4:2:2 Planar, ITU.BT-601 specifications. The data pointed to is just an array of row pointer, pointing to the Y rows, then the Cb, then Cr rows.</summary>
51 /// <summary>YCbCr 4:2:2 Planar, ITU.BT-709 specifications. The data pointed to is just an array of row pointer, pointing to the Y rows, then the Cb, then Cr rows.</summary>
53 /// <summary>16bit rgb565 + Alpha plane at end - 5 bits of the 8 being used per alpha byte.</summary>
55 /// <summary>8-bit gray image, or alpha only.</summary>
57 /// <summary>YCbCr 4:2:2, ITU.BT-601 specifications. The data pointed to is just an array of row pointer, pointing to line of Y,Cb,Y,Cr bytes.</summary>
59 /// <summary>YCbCr 4:2:0, ITU.BT-601 specifications. The data pointed to is just an array of row pointer, pointing to the Y rows, then the Cb,Cr rows..</summary>
60 Ycbcr420nv12601Pl = 6,
61 /// <summary>YCbCr 4:2:0, ITU.BT-601 specifications. The data pointed to is just an array of tiled row pointer, pointing to the Y rows, then the Cb,Cr rows..</summary>
62 Ycbcr420tm12601Pl = 7,
63 /// <summary>AY 8bits Alpha and 8bits Grey, accessed 1 16bits at a time.</summary>
65 /// <summary>OpenGL ETC1 encoding of RGB texture (4 bit per pixel)
66 /// (Since EFL 1.10.)</summary>
68 /// <summary>OpenGL GL_COMPRESSED_RGB8_ETC2 texture compression format (4 bit per pixel)
69 /// (Since EFL 1.10.)</summary>
71 /// <summary>OpenGL GL_COMPRESSED_RGBA8_ETC2_EAC texture compression format, supports alpha (8 bit per pixel)
72 /// (Since EFL 1.10.)</summary>
74 /// <summary>ETC1 with alpha support using two planes: ETC1 RGB and ETC1 grey for alpha
75 /// (Since EFL 1.11.)</summary>
77 /// <summary>OpenGL COMPRESSED_RGB_S3TC_DXT1_EXT format with RGB only.
78 /// (Since EFL 1.11.)</summary>
80 /// <summary>OpenGL COMPRESSED_RGBA_S3TC_DXT1_EXT format with RGBA punchthrough.
81 /// (Since EFL 1.11.)</summary>
83 /// <summary>DirectDraw DXT2 format with premultiplied RGBA. Not supported by OpenGL itself.
84 /// (Since EFL 1.11.)</summary>
86 /// <summary>OpenGL COMPRESSED_RGBA_S3TC_DXT3_EXT format with RGBA.
87 /// (Since EFL 1.11.)</summary>
89 /// <summary>DirectDraw DXT4 format with premultiplied RGBA. Not supported by OpenGL itself.
90 /// (Since EFL 1.11.)</summary>
92 /// <summary>OpenGL COMPRESSED_RGBA_S3TC_DXT5_EXT format with RGBA.
93 /// (Since EFL 1.11.)</summary>
106 /// <summary>Graphics render operation mode</summary>
107 [Efl.Eo.BindingEntity]
110 /// <summary>Alpha blending onto destination (default); d = d*(1-sa) + s.</summary>
112 /// <summary>Copy source to destination; d = s.</summary>
114 /// <summary>Sentinel value to indicate last enum field during iteration</summary>
126 /// <summary>These values determine how the points are interpreted in a stream of points.
127 /// (Since EFL 1.14)</summary>
128 [Efl.Eo.BindingEntity]
129 public enum PathCommandType
131 /// <summary>The end of stream , no more points to process.</summary>
133 /// <summary>The next point is the start point of a sub path.</summary>
135 /// <summary>The next point is used to draw a line from current point.</summary>
137 /// <summary>The next three point is used to draw a cubic bezier curve from current point.</summary>
139 /// <summary>Close the current subpath by drawing a line between current point and the first point of current subpath.</summary>
141 /// <summary>Sentinel value to indicate last enum field during iteration</summary>
153 /// <summary>These values determine how the end of opened sub-paths are rendered in a stroke. <see cref="Efl.Gfx.IShape.SetStrokeCap"/>
154 /// (Since EFL 1.14)</summary>
155 [Efl.Eo.BindingEntity]
158 /// <summary>The end of lines is rendered as a full stop on the last point itself.</summary>
160 /// <summary>The end of lines is rendered as a half-circle around the last point.</summary>
162 /// <summary>The end of lines is rendered as a square around the last point.</summary>
164 /// <summary>Sentinel value to indicate last enum field during iteration</summary>
176 /// <summary>These values determine how two joining lines are rendered in a stroker. <see cref="Efl.Gfx.IShape.SetStrokeJoin"/>
177 /// (Since EFL 1.14)</summary>
178 [Efl.Eo.BindingEntity]
181 /// <summary>Used to render rounded line joins. Circular arcs are used to join two lines smoothly.</summary>
183 /// <summary>Used to render beveled line joins. The outer corner of the joined lines is filled by enclosing the triangular region of the corner with a straight line between the outer corners of each stroke.</summary>
185 /// <summary>Used to render mitered line joins. The intersection of the strokes is clipped at a line perpendicular to the bisector of the angle between the strokes, at the distance from the intersection of the segments equal to the product of the miter limit value and the border radius. This prevents long spikes being created.</summary>
187 /// <summary>Sentinel value to indicate last enum field during iteration</summary>
199 /// <summary>Specifies how the area outside the gradient area should be filled. <see cref="Efl.Gfx.IGradient.SetSpread"/>
200 /// (Since EFL 1.14)</summary>
201 [Efl.Eo.BindingEntity]
202 public enum GradientSpread
204 /// <summary>The area is filled with the closest stop color. This is the default.</summary>
206 /// <summary>The gradient is reflected outside the gradient area.</summary>
208 /// <summary>The gradient is repeated outside the gradient area.</summary>
210 /// <summary>Sentinel value to indicate last enum field during iteration</summary>
222 /// <summary>Type defining how an image content get filled.
223 /// (Since EFL 1.14)</summary>
224 [Efl.Eo.BindingEntity]
227 /// <summary>Draw a horizontal line from the point to a location outside the shape. Determine whether the direction of the line at each intersection point is up or down. The winding number is determined by summing the direction of each intersection. If the number is non zero, the point is inside the shape. This mode is the default</summary>
229 /// <summary>Draw a horizontal line from the point to a location outside the shape, and count the number of intersections. If the number of intersections is an odd number, the point is inside the shape.</summary>
241 /// <summary>How an image's center region (the complement to the border region) should be rendered by EFL</summary>
242 [Efl.Eo.BindingEntity]
243 public enum BorderFillMode
245 /// <summary>Image's center region is <c>not</c> to be rendered</summary>
247 /// <summary>Image's center region is to be <c>blended</c> with objects underneath it, if it has transparency. This is the default behavior for image objects</summary>
249 /// <summary>Image's center region is to be made solid, even if it has transparency on it</summary>
261 /// <summary>What property got changed for this object
262 /// (Since EFL 1.18)</summary>
263 [Efl.Eo.BindingEntity]
264 public enum ChangeFlag
266 /// <summary>Nothing changed.</summary>
268 /// <summary>Matrix got changed.</summary>
270 /// <summary>Path got changed.</summary>
272 /// <summary>Coloring or fill information changed, not geometry.</summary>
274 /// <summary>All properties got changed.</summary>
286 /// <summary>Aspect types/policies for scaling size hints.
287 /// See also <see cref="Efl.Gfx.IHint.GetHintAspect"/>.</summary>
288 [Efl.Eo.BindingEntity]
289 public enum HintAspect
291 /// <summary>No preference on either direction of the container for aspect ratio control.</summary>
293 /// <summary>Same effect as disabling aspect ratio preference</summary>
295 /// <summary>Use all horizontal container space to place an object, using the given aspect.</summary>
297 /// <summary>Use all vertical container space to place an object, using the given aspect.</summary>
299 /// <summary>Use all horizontal and vertical container spaces to place an object (never growing it out of those bounds), using the given aspect.</summary>
311 /// <summary>Efl Gfx Color Class layer enum</summary>
312 [Efl.Eo.BindingEntity]
313 public enum ColorClassLayer
315 /// <summary>Default color</summary>
317 /// <summary>Outline color</summary>
319 /// <summary>Shadow color</summary>
331 /// <summary>Type describing dash. <see cref="Efl.Gfx.IShape.GetStrokeDash"/>
332 /// (Since EFL 1.14)</summary>
333 [StructLayout(LayoutKind.Sequential)]
334 [Efl.Eo.BindingEntity]
337 /// <summary>Dash drawing length.</summary>
338 public double Length;
339 /// <summary>Distance between two dashes.</summary>
341 ///<summary>Constructor for Dash.</summary>
343 double Length = default(double),
344 double Gap = default(double) )
346 this.Length = Length;
350 ///<summary>Implicit conversion to the managed representation from a native pointer.</summary>
351 ///<param name="ptr">Native pointer to be converted.</param>
352 public static implicit operator Dash(IntPtr ptr)
354 var tmp = (Dash.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Dash.NativeStruct));
358 #pragma warning disable CS1591
360 ///<summary>Internal wrapper for struct Dash.</summary>
361 [StructLayout(LayoutKind.Sequential)]
362 public struct NativeStruct
365 public double Length;
368 ///<summary>Implicit conversion to the internal/marshalling representation.</summary>
369 public static implicit operator Dash.NativeStruct(Dash _external_struct)
371 var _internal_struct = new Dash.NativeStruct();
372 _internal_struct.Length = _external_struct.Length;
373 _internal_struct.Gap = _external_struct.Gap;
374 return _internal_struct;
377 ///<summary>Implicit conversion to the managed representation.</summary>
378 public static implicit operator Dash(Dash.NativeStruct _internal_struct)
380 var _external_struct = new Dash();
381 _external_struct.Length = _internal_struct.Length;
382 _external_struct.Gap = _internal_struct.Gap;
383 return _external_struct;
388 #pragma warning restore CS1591
400 /// <summary>Type defining gradient stops. Describes the location and color of a transition point in a gradient.
401 /// (Since EFL 1.14)</summary>
402 [StructLayout(LayoutKind.Sequential)]
403 [Efl.Eo.BindingEntity]
404 public struct GradientStop
406 /// <summary>The location of the gradient stop within the gradient vector</summary>
407 public double Offset;
408 /// <summary>The component R color of the gradient stop</summary>
410 /// <summary>The component G color of the gradient stop</summary>
412 /// <summary>The component B color of the gradient stop</summary>
414 /// <summary>The component A color of the gradient stop</summary>
416 ///<summary>Constructor for GradientStop.</summary>
418 double Offset = default(double),
419 int R = default(int),
420 int G = default(int),
421 int B = default(int),
422 int A = default(int) )
424 this.Offset = Offset;
431 ///<summary>Implicit conversion to the managed representation from a native pointer.</summary>
432 ///<param name="ptr">Native pointer to be converted.</param>
433 public static implicit operator GradientStop(IntPtr ptr)
435 var tmp = (GradientStop.NativeStruct)Marshal.PtrToStructure(ptr, typeof(GradientStop.NativeStruct));
439 #pragma warning disable CS1591
441 ///<summary>Internal wrapper for struct GradientStop.</summary>
442 [StructLayout(LayoutKind.Sequential)]
443 public struct NativeStruct
446 public double Offset;
455 ///<summary>Implicit conversion to the internal/marshalling representation.</summary>
456 public static implicit operator GradientStop.NativeStruct(GradientStop _external_struct)
458 var _internal_struct = new GradientStop.NativeStruct();
459 _internal_struct.Offset = _external_struct.Offset;
460 _internal_struct.R = _external_struct.R;
461 _internal_struct.G = _external_struct.G;
462 _internal_struct.B = _external_struct.B;
463 _internal_struct.A = _external_struct.A;
464 return _internal_struct;
467 ///<summary>Implicit conversion to the managed representation.</summary>
468 public static implicit operator GradientStop(GradientStop.NativeStruct _internal_struct)
470 var _external_struct = new GradientStop();
471 _external_struct.Offset = _internal_struct.Offset;
472 _external_struct.R = _internal_struct.R;
473 _external_struct.G = _internal_struct.G;
474 _external_struct.B = _internal_struct.B;
475 _external_struct.A = _internal_struct.A;
476 return _external_struct;
481 #pragma warning restore CS1591
493 /// <summary>Internal structure for <see cref="Efl.Gfx.Stroke"/>.</summary>
494 [StructLayout(LayoutKind.Sequential)]
495 [Efl.Eo.BindingEntity]
496 public struct StrokeColor
498 /// <summary>The component R color of the stroke</summary>
500 /// <summary>The component G color of the stroke</summary>
502 /// <summary>The component B color of the stroke</summary>
504 /// <summary>The component A color of the stroke</summary>
506 ///<summary>Constructor for StrokeColor.</summary>
508 int R = default(int),
509 int G = default(int),
510 int B = default(int),
511 int A = default(int) )
519 ///<summary>Implicit conversion to the managed representation from a native pointer.</summary>
520 ///<param name="ptr">Native pointer to be converted.</param>
521 public static implicit operator StrokeColor(IntPtr ptr)
523 var tmp = (StrokeColor.NativeStruct)Marshal.PtrToStructure(ptr, typeof(StrokeColor.NativeStruct));
527 #pragma warning disable CS1591
529 ///<summary>Internal wrapper for struct StrokeColor.</summary>
530 [StructLayout(LayoutKind.Sequential)]
531 public struct NativeStruct
541 ///<summary>Implicit conversion to the internal/marshalling representation.</summary>
542 public static implicit operator StrokeColor.NativeStruct(StrokeColor _external_struct)
544 var _internal_struct = new StrokeColor.NativeStruct();
545 _internal_struct.R = _external_struct.R;
546 _internal_struct.G = _external_struct.G;
547 _internal_struct.B = _external_struct.B;
548 _internal_struct.A = _external_struct.A;
549 return _internal_struct;
552 ///<summary>Implicit conversion to the managed representation.</summary>
553 public static implicit operator StrokeColor(StrokeColor.NativeStruct _internal_struct)
555 var _external_struct = new StrokeColor();
556 _external_struct.R = _internal_struct.R;
557 _external_struct.G = _internal_struct.G;
558 _external_struct.B = _internal_struct.B;
559 _external_struct.A = _internal_struct.A;
560 return _external_struct;
565 #pragma warning restore CS1591
577 /// <summary>Type defining stroke information. Describes the properties to define the path stroke.
578 /// (Since EFL 1.14)</summary>
579 [StructLayout(LayoutKind.Sequential)]
580 [Efl.Eo.BindingEntity]
583 /// <summary>Stroke scale</summary>
585 /// <summary>Stroke width</summary>
587 /// <summary>Stroke centered</summary>
588 public double Centered;
589 /// <summary>Stroke color</summary>
590 public Efl.Gfx.StrokeColor Color;
591 /// <summary>Stroke dash</summary>
592 public Efl.Gfx.Dash Dash;
593 /// <summary>Stroke dash length</summary>
594 public uint Dash_length;
595 /// <summary>Stroke cap</summary>
596 public Efl.Gfx.Cap Cap;
597 /// <summary>Stroke join</summary>
598 public Efl.Gfx.Join Join;
599 ///<summary>Constructor for Stroke.</summary>
601 double Scale = default(double),
602 double Width = default(double),
603 double Centered = default(double),
604 Efl.Gfx.StrokeColor Color = default(Efl.Gfx.StrokeColor),
605 Efl.Gfx.Dash Dash = default(Efl.Gfx.Dash),
606 uint Dash_length = default(uint),
607 Efl.Gfx.Cap Cap = default(Efl.Gfx.Cap),
608 Efl.Gfx.Join Join = default(Efl.Gfx.Join) )
612 this.Centered = Centered;
615 this.Dash_length = Dash_length;
620 ///<summary>Implicit conversion to the managed representation from a native pointer.</summary>
621 ///<param name="ptr">Native pointer to be converted.</param>
622 public static implicit operator Stroke(IntPtr ptr)
624 var tmp = (Stroke.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Stroke.NativeStruct));
628 #pragma warning disable CS1591
630 ///<summary>Internal wrapper for struct Stroke.</summary>
631 [StructLayout(LayoutKind.Sequential)]
632 public struct NativeStruct
639 public double Centered;
641 public Efl.Gfx.StrokeColor.NativeStruct Color;
643 public Efl.Gfx.Dash.NativeStruct Dash;
645 public uint Dash_length;
647 public Efl.Gfx.Cap Cap;
649 public Efl.Gfx.Join Join;
650 ///<summary>Implicit conversion to the internal/marshalling representation.</summary>
651 public static implicit operator Stroke.NativeStruct(Stroke _external_struct)
653 var _internal_struct = new Stroke.NativeStruct();
654 _internal_struct.Scale = _external_struct.Scale;
655 _internal_struct.Width = _external_struct.Width;
656 _internal_struct.Centered = _external_struct.Centered;
657 _internal_struct.Color = _external_struct.Color;
658 _internal_struct.Dash = _external_struct.Dash;
659 _internal_struct.Dash_length = _external_struct.Dash_length;
660 _internal_struct.Cap = _external_struct.Cap;
661 _internal_struct.Join = _external_struct.Join;
662 return _internal_struct;
665 ///<summary>Implicit conversion to the managed representation.</summary>
666 public static implicit operator Stroke(Stroke.NativeStruct _internal_struct)
668 var _external_struct = new Stroke();
669 _external_struct.Scale = _internal_struct.Scale;
670 _external_struct.Width = _internal_struct.Width;
671 _external_struct.Centered = _internal_struct.Centered;
672 _external_struct.Color = _internal_struct.Color;
673 _external_struct.Dash = _internal_struct.Dash;
674 _external_struct.Dash_length = _internal_struct.Dash_length;
675 _external_struct.Cap = _internal_struct.Cap;
676 _external_struct.Join = _internal_struct.Join;
677 return _external_struct;
682 #pragma warning restore CS1591
694 /// <summary>Public shape</summary>
695 [StructLayout(LayoutKind.Sequential)]
696 [Efl.Eo.BindingEntity]
697 public struct ShapePublic
699 /// <summary>Internal representation as stroke</summary>
700 public Efl.Gfx.Stroke Stroke;
701 ///<summary>Constructor for ShapePublic.</summary>
703 Efl.Gfx.Stroke Stroke = default(Efl.Gfx.Stroke) )
705 this.Stroke = Stroke;
708 ///<summary>Implicit conversion to the managed representation from a native pointer.</summary>
709 ///<param name="ptr">Native pointer to be converted.</param>
710 public static implicit operator ShapePublic(IntPtr ptr)
712 var tmp = (ShapePublic.NativeStruct)Marshal.PtrToStructure(ptr, typeof(ShapePublic.NativeStruct));
716 #pragma warning disable CS1591
718 ///<summary>Internal wrapper for struct ShapePublic.</summary>
719 [StructLayout(LayoutKind.Sequential)]
720 public struct NativeStruct
723 public Efl.Gfx.Stroke.NativeStruct Stroke;
724 ///<summary>Implicit conversion to the internal/marshalling representation.</summary>
725 public static implicit operator ShapePublic.NativeStruct(ShapePublic _external_struct)
727 var _internal_struct = new ShapePublic.NativeStruct();
728 _internal_struct.Stroke = _external_struct.Stroke;
729 return _internal_struct;
732 ///<summary>Implicit conversion to the managed representation.</summary>
733 public static implicit operator ShapePublic(ShapePublic.NativeStruct _internal_struct)
735 var _external_struct = new ShapePublic();
736 _external_struct.Stroke = _internal_struct.Stroke;
737 return _external_struct;
742 #pragma warning restore CS1591
756 /// <summary>Data sent along a "render,post" event, after a frame has been rendered.</summary>
757 [StructLayout(LayoutKind.Sequential)]
758 [Efl.Eo.BindingEntity]
759 public struct RenderPost
761 /// <summary>A list of rectangles that were updated in the canvas.</summary>
762 public Eina.List<Eina.Rect> Updated_area;
763 ///<summary>Constructor for RenderPost.</summary>
765 Eina.List<Eina.Rect> Updated_area = default(Eina.List<Eina.Rect>) )
767 this.Updated_area = Updated_area;
770 ///<summary>Implicit conversion to the managed representation from a native pointer.</summary>
771 ///<param name="ptr">Native pointer to be converted.</param>
772 public static implicit operator RenderPost(IntPtr ptr)
774 var tmp = (RenderPost.NativeStruct)Marshal.PtrToStructure(ptr, typeof(RenderPost.NativeStruct));
778 #pragma warning disable CS1591
780 ///<summary>Internal wrapper for struct RenderPost.</summary>
781 [StructLayout(LayoutKind.Sequential)]
782 public struct NativeStruct
785 public System.IntPtr Updated_area;
786 ///<summary>Implicit conversion to the internal/marshalling representation.</summary>
787 public static implicit operator RenderPost.NativeStruct(RenderPost _external_struct)
789 var _internal_struct = new RenderPost.NativeStruct();
790 _internal_struct.Updated_area = _external_struct.Updated_area.Handle;
791 return _internal_struct;
794 ///<summary>Implicit conversion to the managed representation.</summary>
795 public static implicit operator RenderPost(RenderPost.NativeStruct _internal_struct)
797 var _external_struct = new RenderPost();
798 _external_struct.Updated_area = new Eina.List<Eina.Rect>(_internal_struct.Updated_area, false, false);
799 return _external_struct;
804 #pragma warning restore CS1591