DVUI

clicked

Handles all events needed for clicking behaviour, used by ButtonWidget.

Parameters

#
wd:*const WidgetData
*const WidgetData
opts:ClickOptions
ClickOptions

Source

Implementation

#
pub fn clicked(wd: *const WidgetData, opts: ClickOptions) bool {
    if (clickedEx(wd, opts)) |_| {
        return true;
    }

    return false;
}