forked from enlightenment/efl
csharp: updating eina_container_common doc and api
Reviewers: felipealmeida, lauromoura, segfaultxavi, woohyun Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8293 Differential Revision: https://phab.enlightenment.org/D10314
This commit is contained in:
parent
e4385c084c
commit
37e6430e46
|
@ -5,6 +5,7 @@ using System.Linq;
|
|||
using System.Runtime.InteropServices;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using System.ComponentModel;
|
||||
|
||||
using Eina.Callbacks;
|
||||
using static Eina.HashNativeFunctions;
|
||||
|
@ -15,6 +16,7 @@ using static Eina.NativeCustomExportFunctions;
|
|||
namespace Eina
|
||||
{
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public enum ElementType
|
||||
{
|
||||
NumericType,
|
||||
|
@ -23,6 +25,7 @@ public enum ElementType
|
|||
ObjectType
|
||||
};
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct InlistMem
|
||||
{
|
||||
|
@ -31,6 +34,7 @@ public struct InlistMem
|
|||
public IntPtr last {get;set;}
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct InlistNode<T>
|
||||
{
|
||||
|
@ -38,6 +42,7 @@ public struct InlistNode<T>
|
|||
public T Val {get;set;}
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public interface IBaseElementTraits<T>
|
||||
{
|
||||
IntPtr ManagedToNativeAlloc(T man);
|
||||
|
@ -58,6 +63,7 @@ public interface IBaseElementTraits<T>
|
|||
IntPtr EinaHashIteratorKeyNew(IntPtr hash);
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public class StringElementTraits : IBaseElementTraits<string>
|
||||
{
|
||||
public StringElementTraits()
|
||||
|
@ -196,6 +202,7 @@ public class StringElementTraits : IBaseElementTraits<string>
|
|||
}
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public class StringshareElementTraits : IBaseElementTraits<Eina.Stringshare>
|
||||
{
|
||||
public StringshareElementTraits()
|
||||
|
@ -335,6 +342,7 @@ public class StringshareElementTraits : IBaseElementTraits<Eina.Stringshare>
|
|||
}
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public class EflObjectElementTraits<T> : IBaseElementTraits<T>
|
||||
{
|
||||
public IntPtr ManagedToNativeAlloc(T man)
|
||||
|
@ -492,6 +500,7 @@ public class EflObjectElementTraits<T> : IBaseElementTraits<T>
|
|||
}
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public abstract class PrimitiveElementTraits<T>
|
||||
{
|
||||
private Eina.Callbacks.EinaCompareCb dlgt = null;
|
||||
|
@ -593,6 +602,7 @@ public abstract class PrimitiveElementTraits<T>
|
|||
}
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
abstract public class Primitive32ElementTraits<T> : PrimitiveElementTraits<T>, IBaseElementTraits<T>
|
||||
{
|
||||
private static IBaseElementTraits<Int32> int32Traits = null;
|
||||
|
@ -631,6 +641,7 @@ abstract public class Primitive32ElementTraits<T> : PrimitiveElementTraits<T>, I
|
|||
}
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
abstract public class Primitive64ElementTraits<T> : PrimitiveElementTraits<T>, IBaseElementTraits<T>
|
||||
{
|
||||
private static IBaseElementTraits<Int64> int64Traits = null;
|
||||
|
@ -669,6 +680,7 @@ abstract public class Primitive64ElementTraits<T> : PrimitiveElementTraits<T>, I
|
|||
}
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public class IntElementTraits : Primitive32ElementTraits<int>, IBaseElementTraits<int>
|
||||
{
|
||||
override public void ManagedToNativeCopyTo(int man, IntPtr mem)
|
||||
|
@ -693,6 +705,7 @@ public class IntElementTraits : Primitive32ElementTraits<int>, IBaseElementTrait
|
|||
}
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public class CharElementTraits : Primitive32ElementTraits<char>, IBaseElementTraits<char>
|
||||
{
|
||||
override public void ManagedToNativeCopyTo(char man, IntPtr mem)
|
||||
|
@ -717,6 +730,7 @@ public class CharElementTraits : Primitive32ElementTraits<char>, IBaseElementTra
|
|||
}
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public class LongElementTraits : Primitive64ElementTraits<long>, IBaseElementTraits<long>
|
||||
{
|
||||
override public void ManagedToNativeCopyTo(long man, IntPtr mem)
|
||||
|
@ -741,6 +755,7 @@ public class LongElementTraits : Primitive64ElementTraits<long>, IBaseElementTra
|
|||
}
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public class ShortElementTraits : Primitive32ElementTraits<short>, IBaseElementTraits<short>
|
||||
{
|
||||
override public void ManagedToNativeCopyTo(short man, IntPtr mem)
|
||||
|
@ -765,6 +780,7 @@ public class ShortElementTraits : Primitive32ElementTraits<short>, IBaseElementT
|
|||
}
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public class FloatElementTraits : Primitive32ElementTraits<float>, IBaseElementTraits<float>
|
||||
{
|
||||
override public void ManagedToNativeCopyTo(float man, IntPtr mem)
|
||||
|
@ -789,6 +805,7 @@ public class FloatElementTraits : Primitive32ElementTraits<float>, IBaseElementT
|
|||
}
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public class DoubleElementTraits : Primitive64ElementTraits<double>, IBaseElementTraits<double>
|
||||
{
|
||||
override public void ManagedToNativeCopyTo(double man, IntPtr mem)
|
||||
|
@ -813,6 +830,7 @@ public class DoubleElementTraits : Primitive64ElementTraits<double>, IBaseElemen
|
|||
}
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public class ByteElementTraits : Primitive32ElementTraits<byte>, IBaseElementTraits<byte>
|
||||
{
|
||||
override public void ManagedToNativeCopyTo(byte man, IntPtr mem)
|
||||
|
@ -837,6 +855,7 @@ public class ByteElementTraits : Primitive32ElementTraits<byte>, IBaseElementTra
|
|||
}
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public static class TraitFunctions
|
||||
{
|
||||
public static bool IsEflObject(System.Type type)
|
||||
|
|
Loading…
Reference in New Issue