// Generated API outline. Implementation bodies omitted. #nullable enable using System.Collections.Generic; using System.IO; using System.Linq; using System.Net.Http; using System.Threading.Tasks; using System.Threading; using System; using nfloat = System.Runtime.InteropServices.NFloat; namespace Xui.ToolKit.UI.Drawing { using Xui.Core.Canvas; using Xui.Core.Math2D; /// Draws a soft rounded-rectangle outline shadow using only gradient-filled geometry. public static class RoundedRectShadow { /// Draws a shadow outside the supplied rounded rectangle. /// The drawing context. /// The rectangle whose interior remains unpainted. /// Corner radii, clamped to fit the rectangle. /// Distance from the outline to the transparent outer edge. /// Shadow color and opacity at the outline. /// /// Uses up to four strips and four quarter rings, without a bitmap, blur pass, or extra clip. /// Uniform corners share one radial gradient; all strips share one linear gradient. /// This is a geometric falloff, not a Gaussian blur. Canvas state is restored, but the current /// path is replaced. The caller must include the extent in its culling bounds. /// public static void Draw(IContext context, Rect bounds, CornerRadius radius, nfloat extent, Color color); } }