Xui.ToolKit.UI.Drawing
Assembly: Xui.ToolKit.UI · C# declarations · Assembly overview
Types
class RoundedRectShadow
Draws a soft rounded-rectangle outline shadow using only gradient-filled geometry.
public static class RoundedRectShadow
{
public static void Draw(IContext context, Rect bounds, CornerRadius radius, nfloat extent, Color color);
}
void RoundedRectShadow.Draw(IContext context, Rect bounds, CornerRadius radius, NFloat extent, Color color)
public static void Draw(IContext context, Rect bounds, CornerRadius radius, nfloat extent, Color color);
Draws a shadow outside the supplied rounded rectangle.
context— The drawing context.bounds— The rectangle whose interior remains unpainted.radius— Corner radii, clamped to fit the rectangle.extent— Distance from the outline to the transparent outer edge.color— 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.