Camera.cursor
readwrite |
This property is only available when the ui module is loaded before capture and Camera is used as a widget. Accessing it in object mode will raise an error.
Get or set the mouse cursor image as it hovers over the Camera widget. Accepted values are: "arrow", "cross", "working", "hand", "help", "ibeam", "forbidden", "cardinal", "horizontal", "vertical", "leftdiagonal", "rightdiagonal", "up", "wait", "none" or nil.
Example
--! luart-extensions
import ui, capture
local win = ui.Window("Camera.cursor sample", "fixed", 640, 520)
local cam = ui.Camera(win, 10, 10, 620, 460)
-- Show a crosshair cursor over the Camera preview
cam.cursor = "cross"
await win:showasync()