Camera:toback([widget])method

widget only

This method 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.
Puts the Camera widget behind all other widgets, or behind the specified widget.

Parameters

[widget]

An optional widget below which the Camera will be placed.

Return value

This method returns no value.

Example

--! luart-extensions import ui, capture local win = ui.Window("Camera:toback() sample", "fixed", 640, 520) local cam = ui.Camera(win, 10, 34, 620, 460) local lbl = ui.Label(win, capture.devices.video[1] or "No Webcam detected") win:showasync() lbl.fontsize = 18 lbl.y = cam.y cam:toback() waitall()