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:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user