Module lv
LiveView functions
Info:
- Copyright: 2014
- License: GPL
- Author: Magic Lantern Team
enabled |
Whether or not LV is enabled (may be running or paused). |
paused |
Whether or not LV is paused (shutter open, but sensor inactive; useful for powersaving). |
running |
Whether or not LV is running (that is, enabled and not paused). |
zoom |
Get/set LiveView zoom factor (1, 5, 10). |
Functions
-
start ()
-
Enter LiveView.
-
pause ()
-
Pause LiveView (but leave shutter open).
-
resume ()
-
Resume LiveView.
-
stop ()
-
Exit LiveView.
-
wait (num_frames)
-
Wait for N LiveView frames in LiveView.
Parameters:
-
info (definition)
-
Create a new LV info item
Parameters:
- definition
table
A table with the inital values for properties of the item
Returns:
lvinfo
Fields
-
enabled
-
Whether or not LV is enabled (may be running or paused).
-
paused
-
Whether or not LV is paused (shutter open, but sensor inactive; useful for powersaving).
-
running
-
Whether or not LV is running (that is, enabled and not paused).
-
zoom
-
Get/set LiveView zoom factor (1, 5, 10).
Class lvinfo
Represents an info item that is displayed in the ML info bars in LiveView
-
lvinfo:update ()
-
Function called before displaying; can override strings, dimensions and so on
-
lvinfo.name
-
Get/Set the item name (for menu)
-
lvinfo.value
-
Get/Set the item value
-
lvinfo.background
-
Get/Set the item background color
-
lvinfo.foreground
-
Get/Set the item foreground color
-
lvinfo.custom_drawing
-
Get/Set if the item uses custom drawing
-
lvinfo.font
-
Get the item font assigned by the backend
-
lvinfo.height
-
Get/Set the item height
-
lvinfo.preferred_position
-
Get/Set the item's preferred position
-
lvinfo.priority
-
Get/Set the item priority: if there's not enough space, the items with low priority will disappear
-
lvinfo.bar
-
Get/Set the which bar the item appears on
-
lvinfo.width
-
Get/Set the item width; default: measured from value and fontspec; 0 = do not display this item at all
-
lvinfo.x
-
Get the item x position
-
lvinfo.y
-
Get the item y position