API ReferenceSandbox.UI

BorderShapeclass

The shape of a panel's border box, generalising `border-radius` from rounded corners to an arbitrary polygon or a circle. Like `border-radius`, it shapes what the panel itself paints - background, borders and hit testing - and does not clip descendants; that stays the job of `Sandbox.UI.OverflowMode`. Polygons currently support up to `Sandbox.UI.BorderShape.MaxPoints` vertices.

objectBorderShape
Namespace
Sandbox.UI
Assembly
Sandbox.System
Declaration
public sealed class Sandbox.UI.BorderShape

Methods1

Showing 1 methods

public System.ValueTuple`2<Vector2,float> ResolveCircle(Sandbox.Rect rect)PUBLIC

ParameterTypeDescription
rectRect
Returns:ValueTuple<Vector2,float>

Properties7

Showing 7 properties

public bool Sandbox.UI.BorderShape.IsNone { get; set; }PUBLICGETSET

Returns:bool

On this page