Skip to content
Version 2.11.0
↓ Get the launcher

ButtonElement.OnClickWithRect property

When non-null, invoked on click with the button’s screen rect (top-left origin, same coordinate space as Rect). Use to anchor a popup to the button’s actual position.

public Action<WindowRect>? OnClickWithRect { get; set; }