public static void MapPlaceholderColor(IEditorHandler handler, IEditor editor) { if (handler is EditorHandler platformHandler) { handler.PlatformView?.UpdatePlaceholderColor(editor, platformHandler._defaultPlaceholderColors); } }
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); }
public static void MapFormatting(IEditorHandler handler, IEditor editor) { handler.PlatformView?.UpdateMaxLength(editor); // Update all of the attributed text formatting properties handler.PlatformView?.UpdateCharacterSpacing(editor); }
internal static void AddEditor(IEditorHandler editor) { lock (AvailiableEditors) { AvailiableEditors.Add(editor); } Interlocked.Increment(ref AvailableEditorsCount); }
internal static void RemoveEditor(IEditorHandler editor) { if (editor == null) { return; } lock (AvailiableEditors) { AvailiableEditors.Remove(editor); } Interlocked.Decrement(ref AvailableEditorsCount); }
public static void MapCharacterSpacing(IEditorHandler handler, IEditor editor) { }
public static void MapSelectionLength(IEditorHandler handler, ITextInput editor) { handler.PlatformView?.UpdateSelectionLength(editor); }
public static void MapVerticalTextAlignment(IEditorHandler handler, IEditor editor) { handler.PlatformView?.UpdateVerticalTextAlignment(editor); }
public static void MapSelectionLength(IEditorHandler handler, IEditor editor) => handler.PlatformView?.UpdateSelectionLength(editor);
public static void MapTextColor(IEditorHandler handler, IEditor editor) { handler.PlatformView?.UpdateTextColor(editor); }
public static void MapVerticalTextAlignment(IEditorHandler handler, IEditor editor) { }
public static void MapTextColor(IEditorHandler handler, IEditor editor) { }
public static void MapMaxLength(IEditorHandler handler, IEditor editor) { handler.PlatformView?.UpdateMaxLength(editor); }
public static void MapBackground(IEditorHandler handler, IEditor editor) => handler.PlatformView?.UpdateBackground(editor);
public static void MapText(IEditorHandler handler, IEditor editor) => handler.PlatformView?.UpdateText(editor);
public static void MapSelectionLength(IEditorHandler handler, ITextInput editor) { }
public static void MapCursorPosition(IEditorHandler handler, ITextInput editor) { }
public static void MapKeyboard(IEditorHandler handler, IEditor editor) { }
public static void MapBackground(IEditorHandler handler, IEditor editor) { handler.UpdateValue(nameof(handler.ContainerView)); handler.ToPlatform()?.UpdateBackground(editor); }
public static void MapIsTextPredictionEnabled(IEditorHandler handler, IEditor editor) { handler.PlatformView?.UpdateIsTextPredictionEnabled(editor); }
public static void MapIsTextPredictionEnabled(IEditorHandler handler, IEditor editor) { }
public static void MapKeyboard(IEditorHandler handler, IEditor editor) { handler.PlatformView?.UpdateKeyboard(editor); }
public static void MapPlaceholderColor(IEditorHandler handler, IEditor editor) { handler.PlatformView?.UpdatePlaceholderColor(editor); }
public static void MapHorizontalTextAlignment(IEditorHandler handler, IEditor editor) { }
public static void MapIsReadOnly(IEditorHandler handler, IEditor editor) { handler.PlatformView?.UpdateIsReadOnly(editor); }
public static void MapCharacterSpacing(IEditorHandler handler, IEditor editor) => handler.PlatformView?.UpdateCharacterSpacing(editor);
public static void MapFont(IEditorHandler handler, IEditor editor) { var fontManager = handler.GetRequiredService <IFontManager>(); handler.PlatformView?.UpdateFont(editor, fontManager); }
public static void MapFont(IEditorHandler handler, IEditor editor) => handler.PlatformView?.UpdateFont(editor, handler.GetRequiredService <IFontManager>());
public static void MapHorizontalTextAlignment(IEditorHandler handler, IEditor editor) { handler.PlatformView?.UpdateHorizontalTextAlignment(editor); }
public static void MapCursorPosition(IEditorHandler handler, IEditor editor) => handler.PlatformView?.UpdateCursorPosition(editor);