예제 #1
0
 /// <summary>
 /// Send a TextChange Event
 /// </summary>
 /// <param name="info"></param>
 internal void Send(TextChangeInfo info, IEnumerable <char> data)
 {
     if (Observers != null)
     {
         info.Data = data;
         Observers(this, info);
     }
 }
예제 #2
0
 /// <summary>
 /// Send a TextChange Event
 /// </summary>
 /// <param name="info"></param>
 internal void Send(TextChangeInfo info)
 {
     if (Observers != null)
     {
         info.Data = null;
         Observers(this, info);
     }
 }
예제 #3
0
        internal static TextChangeInfo_StructInternal ToInternal(TextChangeInfo _external_struct)
        {
            var _internal_struct = new TextChangeInfo_StructInternal();

            _internal_struct.Content  = Eina.MemoryNative.StrDup(_external_struct.Content);
            _internal_struct.Position = _external_struct.Position;
            _internal_struct.Length   = _external_struct.Length;
            _internal_struct.Insert   = _external_struct.Insert ? (byte)1 : (byte)0;
            _internal_struct.Merge    = _external_struct.Merge ? (byte)1 : (byte)0;

            return(_internal_struct);
        }
예제 #4
0
        internal static TextChangeInfo ToManaged(TextChangeInfo_StructInternal _internal_struct)
        {
            var _external_struct = new TextChangeInfo();

            _external_struct.Content  = Eina.StringConversion.NativeUtf8ToManagedString(_internal_struct.Content);
            _external_struct.Position = _internal_struct.Position;
            _external_struct.Length   = _internal_struct.Length;
            _external_struct.Insert   = _internal_struct.Insert != 0;
            _external_struct.Merge    = _internal_struct.Merge != 0;

            return(_external_struct);
        }