Beispiel #1
0
 public static void MapPlaceholderColor(IEditorHandler handler, IEditor editor)
 {
     if (handler is EditorHandler platformHandler)
     {
         handler.PlatformView?.UpdatePlaceholderColor(editor, platformHandler._defaultPlaceholderColors);
     }
 }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #4
0
        internal static void AddEditor(IEditorHandler editor)
        {
            lock (AvailiableEditors)
            {
                AvailiableEditors.Add(editor);
            }

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

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

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

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