William Ferguson (2019-May-15, excerpt):
> > Also, what's the precise semantics of `{[dt.gui.views.lighttable] =
> > {"DT_UI_CONTAINER_PANEL_RIGHT_CENTER", 100}}`, and where would I find
> > documentation about the alternatives?
> >
> The lua api is documented at
> https://www.darktable.org/lua-api/index.html Go to
> darktable.register_lib, then click the types.dt_ui_container_t link
> to get a list of the choices.
Ok, so my understanding is this. Please correct if not. Otherwise,
this might be added to the docs.
`darktable.register_lib`'s argument `containers` [1] is a map which
describes for each of darktable's views where to place the lib
(whysitcalled lib?). The view is identified by one of the strings in
`dt.gui.views`, which I've printed using
for _, v in pairs(dt.gui.views) do print(v) end
resulting in
lighttable
knight
darkroom
slideshow
print
What's `knight` ???
The view identifier is mapped to a pair, describing to which panel the
lib should be added. Its first component seems to be a string (but
the docs say `enum`, is this correct?) indicating an "area", the
second is a number, and all libs inside an "area" are sorted by that
number (I guess!).
Graphics of the "area" would be nice. Is the filmstrip not in
DT_UI_CONTAINER_PANEL_BOTTOM?
Thanks
Stefan
____________________
[1]
https://www.darktable.org/lua-api/index.html#darktable_register_lib_containers
--
http://stefan-klinger.de o/X
I prefer receiving plain text messages, not exceeding 32kB. /\/
\
____________________________________________________________________________
darktable user mailing list
to unsubscribe send a mail to [email protected]