DVUI

ClickOptions

Fields

#
hovered:?*bool

Is set to true if the cursor is hovering the click rect

hover_cursor:?enums.Cursor

If not null, this will be set when the cursor is within the click rect

rect:?Rect.Physical

The rect in which clicks are checked

buttons:enum { pointer, any }

Which mouse buttons to react to.

touch_drag:bool

If a touch event drags on the button, should we keep capture?