DVUI

processHover

Parameters

#
self:*ButtonWidget
*ButtonWidget

Source

Implementation

#
pub fn processHover(self: *ButtonWidget) void {
    for (dvui.events()) |*e| {
        if (!dvui.eventMatchSimple(e, self.data())) continue;

        if (e.evt == .mouse and e.evt.mouse.action == .position) {
            self.hover = true;
        }
    }
}