luadocs/content/lua.api.manual/darktable/gui/libs/metadata_view.md
wpferguson fbebfabca5 [Lua API] Removed references to API 6.x.x. Updated version to 7.0.0.
Reordered types alphabetically.  Fixed darktable.gui.libs.snapshots
2021-06-22 22:40:54 -04:00

1.2 KiB

title id weight draft author
darktable.gui.libs.metadata_view metadata_view 250 false people

The widget displaying metadata about the current image

Attributes:

darktable.gui.libs.metadata_view.register_info

function(
  name : string,
  callback : function
)

Register a field in the image information module with a callback function to update the field

  • name - string - The name displayed for the new information
  • callback - function - The function providing the info

callback -

function(
  image : types.dt_lua_image_t
) : string
  • image - types.dt_lua_image_t - The image to analyze
  • return - string - The extra information to display

darktable.gui.libs.metadata_view.destroy_info

function(
  name : string
)

Remove the named field from the image information module and it's associated callback