Added add/remove signals to scenes

Scenes will now signal via their source when an item has been added
or removed from them.

  "add" - Item added to the scene.
  Parameters:  "scene": Scene that the item was added to.
               "item":  Item that was added.

  "remove" - Item removed from the scene.
  Parameters:  "scene": Scene that the item was removed from.
               "item":  Item that was removed.
This commit is contained in:
jp9000
2014-01-04 13:38:56 -07:00
parent 968f5fed32
commit a2a8a5f148
6 changed files with 58 additions and 10 deletions

View File

@@ -472,6 +472,9 @@ EXPORT obs_sceneitem_t obs_scene_add(obs_scene_t scene, obs_source_t source);
* (if any) */
EXPORT int obs_sceneitem_destroy(obs_sceneitem_t item);
/** Gets the scene parent associated with the scene item */
EXPORT obs_scene_t obs_sceneitem_getscene(obs_sceneitem_t item);
/** Gets the source of a scene item */
EXPORT obs_source_t obs_sceneitem_getsource(obs_sceneitem_t item);