luadocs/content/lua.api.manual/events/view-changed.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

30 lines
647 B
Markdown

---
title: view_changed
id: view_changed
weight: 120
draft: false
author: "people"
---
`event`
This event is triggered after the user changed the active view
#view-changed.callback
```
function(
event : string,
old_view : types.dt_lua_view_t,
new_view : types.dt_lua_view_t
)
```
* **event** - _string_ - The name of the event that triggered the callback.
* **old_view** - _[types.dt_lua_view_t](../types/dt_lua_view_t)_ - The view that we just left
* **new_view** - _[types.dt_lua_view_t](../types/dt_lua_view_t)_ - The view we are now in
#view-changed.extra registration parameters
This event has no extra registration parameters.