widget only
This event is only available when the
ui module is loaded before capture and Camera is used as a widget.Camera:onLeave()event
This event is fired when the mouse cursor leaves the Camera widget area.
Return value
The event returns no value.Example
--! luart-extensions
import ui, capture
local win = ui.Window("Camera:onLeave() sample", "fixed", 640, 520)
local cam = ui.Camera(win, 10, 10, 620, 460)
function cam:onLeave()
print("Mouse left the Camera preview area")
end
await win:showasync()