libobs, UI: Implement item_locked event

Similar to item_visible, this event fires whenever a scene item is
locked or unlocked. This allows the UI and libobs to remain in sync
regarding scene elements' statuses.
This commit is contained in:
Chris Angelico
2019-05-24 21:34:41 +10:00
committed by jp9000
parent dd607b422f
commit 2fe641b8a4
5 changed files with 46 additions and 0 deletions

View File

@@ -139,6 +139,10 @@ Scene Signals
Called when a scene item's visibility state changes.
**item_locked** (ptr scene, ptr item, bool locked)
Called when a scene item has been locked or unlocked.
**item_select** (ptr scene, ptr item)
**item_deselect** (ptr scene, ptr item)
@@ -406,6 +410,13 @@ Scene Item Functions
---------------------
.. function:: bool obs_sceneitem_set_locked(obs_sceneitem_t *item, bool locked)
bool obs_sceneitem_locked(const obs_sceneitem_t *item)
Sets/gets the locked/unlocked state of the scene item.
---------------------
.. function:: void obs_sceneitem_set_crop(obs_sceneitem_t *item, const struct obs_sceneitem_crop *crop)
void obs_sceneitem_get_crop(const obs_sceneitem_t *item, struct obs_sceneitem_crop *crop)