Exemplo n.º 1
0
 public static void MapPlaceholderColor(IEditorHandler handler, IEditor editor)
 {
     if (handler is EditorHandler platformHandler)
     {
         handler.PlatformView?.UpdatePlaceholderColor(editor, platformHandler._defaultPlaceholderColors);
     }
 }
Exemplo n.º 2
0
        public static void MapText(IEditorHandler handler, IEditor editor)
        {
            handler.PlatformView?.UpdateText(editor);

            // Any text update requires that we update any attributed string formatting
            MapFormatting(handler, editor);
        }
Exemplo n.º 3
0
        public static void MapFormatting(IEditorHandler handler, IEditor editor)
        {
            handler.PlatformView?.UpdateMaxLength(editor);

            // Update all of the attributed text formatting properties
            handler.PlatformView?.UpdateCharacterSpacing(editor);
        }
Exemplo n.º 4
0
        internal static void AddEditor(IEditorHandler editor)
        {
            lock (AvailiableEditors)
            {
                AvailiableEditors.Add(editor);
            }

            Interlocked.Increment(ref AvailableEditorsCount);
        }
Exemplo n.º 5
0
        internal static void RemoveEditor(IEditorHandler editor)
        {
            if (editor == null)
            {
                return;
            }

            lock (AvailiableEditors)
            {
                AvailiableEditors.Remove(editor);
            }

            Interlocked.Decrement(ref AvailableEditorsCount);
        }
Exemplo n.º 6
0
 public static void MapCharacterSpacing(IEditorHandler handler, IEditor editor)
 {
 }
Exemplo n.º 7
0
 public static void MapSelectionLength(IEditorHandler handler, ITextInput editor)
 {
     handler.PlatformView?.UpdateSelectionLength(editor);
 }
Exemplo n.º 8
0
 public static void MapVerticalTextAlignment(IEditorHandler handler, IEditor editor)
 {
     handler.PlatformView?.UpdateVerticalTextAlignment(editor);
 }
Exemplo n.º 9
0
 public static void MapSelectionLength(IEditorHandler handler, IEditor editor) =>
 handler.PlatformView?.UpdateSelectionLength(editor);
Exemplo n.º 10
0
 public static void MapTextColor(IEditorHandler handler, IEditor editor)
 {
     handler.PlatformView?.UpdateTextColor(editor);
 }
Exemplo n.º 11
0
 public static void MapVerticalTextAlignment(IEditorHandler handler, IEditor editor)
 {
 }
Exemplo n.º 12
0
 public static void MapTextColor(IEditorHandler handler, IEditor editor)
 {
 }
Exemplo n.º 13
0
 public static void MapMaxLength(IEditorHandler handler, IEditor editor)
 {
     handler.PlatformView?.UpdateMaxLength(editor);
 }
Exemplo n.º 14
0
 public static void MapBackground(IEditorHandler handler, IEditor editor) =>
 handler.PlatformView?.UpdateBackground(editor);
Exemplo n.º 15
0
 public static void MapText(IEditorHandler handler, IEditor editor) =>
 handler.PlatformView?.UpdateText(editor);
Exemplo n.º 16
0
 public static void MapSelectionLength(IEditorHandler handler, ITextInput editor)
 {
 }
Exemplo n.º 17
0
 public static void MapCursorPosition(IEditorHandler handler, ITextInput editor)
 {
 }
Exemplo n.º 18
0
 public static void MapKeyboard(IEditorHandler handler, IEditor editor)
 {
 }
Exemplo n.º 19
0
 public static void MapBackground(IEditorHandler handler, IEditor editor)
 {
     handler.UpdateValue(nameof(handler.ContainerView));
     handler.ToPlatform()?.UpdateBackground(editor);
 }
Exemplo n.º 20
0
 public static void MapIsTextPredictionEnabled(IEditorHandler handler, IEditor editor)
 {
     handler.PlatformView?.UpdateIsTextPredictionEnabled(editor);
 }
Exemplo n.º 21
0
 public static void MapIsTextPredictionEnabled(IEditorHandler handler, IEditor editor)
 {
 }
Exemplo n.º 22
0
 public static void MapKeyboard(IEditorHandler handler, IEditor editor)
 {
     handler.PlatformView?.UpdateKeyboard(editor);
 }
Exemplo n.º 23
0
 public static void MapPlaceholderColor(IEditorHandler handler, IEditor editor)
 {
     handler.PlatformView?.UpdatePlaceholderColor(editor);
 }
Exemplo n.º 24
0
 public static void MapHorizontalTextAlignment(IEditorHandler handler, IEditor editor)
 {
 }
Exemplo n.º 25
0
 public static void MapIsReadOnly(IEditorHandler handler, IEditor editor)
 {
     handler.PlatformView?.UpdateIsReadOnly(editor);
 }
Exemplo n.º 26
0
 public static void MapCharacterSpacing(IEditorHandler handler, IEditor editor) =>
 handler.PlatformView?.UpdateCharacterSpacing(editor);
Exemplo n.º 27
0
        public static void MapFont(IEditorHandler handler, IEditor editor)
        {
            var fontManager = handler.GetRequiredService <IFontManager>();

            handler.PlatformView?.UpdateFont(editor, fontManager);
        }
Exemplo n.º 28
0
 public static void MapFont(IEditorHandler handler, IEditor editor) =>
 handler.PlatformView?.UpdateFont(editor, handler.GetRequiredService <IFontManager>());
Exemplo n.º 29
0
 public static void MapHorizontalTextAlignment(IEditorHandler handler, IEditor editor)
 {
     handler.PlatformView?.UpdateHorizontalTextAlignment(editor);
 }
Exemplo n.º 30
0
 public static void MapCursorPosition(IEditorHandler handler, IEditor editor) =>
 handler.PlatformView?.UpdateCursorPosition(editor);