public static void DrawText(ICanvas canvas, RectF dirtyRect, IViewDrawable drawable, IView view) { if (view is IText text) { drawable.DrawText(canvas, dirtyRect, text); } }
public bool DrawLayer(ICanvas canvas, RectF dirtyRect, IViewDrawable drawable, IView virtualView, string property) { if (virtualView == null) { return(false); } return(DrawLayer(property, canvas, dirtyRect, drawable, virtualView)); }
protected bool DrawLayer(string key, ICanvas canvas, RectF dirtyRect, IViewDrawable drawable, IView virtualView) { var action = Get(key); if (action == null) { return(false); } action.Invoke(canvas, dirtyRect, drawable, virtualView); return(true); }
public static void DrawOverlay(ICanvas canvas, RectF dirtyRect, IViewDrawable drawable, IView view) => drawable.DrawOverlay(canvas, dirtyRect, view);
public static void DrawBorder(ICanvas canvas, RectF dirtyRect, IViewDrawable drawable, IView view) => drawable.DrawBorder(canvas, dirtyRect, view);
public static void DrawBackground(ICanvas canvas, RectF dirtyRect, IViewDrawable drawable, IView view) => drawable.DrawBackground(canvas, dirtyRect, view);
public static void DrawClip(ICanvas canvas, RectangleF dirtyRect, IViewDrawable drawable, IView view) => drawable.DrawClip(canvas, dirtyRect, view);