mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
docs: rename typedef Source to SceneItem
This commit is contained in:
parent
033a6929c3
commit
ae0ffdc4d5
@ -28,7 +28,7 @@ with this program. If not, see <https://www.gnu.org/licenses/>
|
||||
#include "Config.h"
|
||||
|
||||
/**
|
||||
* @typedef {Object} `Source` An OBS Scene Item.
|
||||
* @typedef {Object} `SceneItem` An OBS Scene Item.
|
||||
* @property {Number} `cy`
|
||||
* @property {Number} `cx`
|
||||
* @property {String} `name` The name of this Scene Item.
|
||||
|
@ -344,7 +344,7 @@ const char* WSEvents::GetRecordingTimecode() {
|
||||
* Indicates a scene change.
|
||||
*
|
||||
* @return {String} `scene-name` The new scene.
|
||||
* @return {Array<Source>} `sources` List of sources in the new scene. Same specification as [`GetCurrentScene`](#getcurrentscene).
|
||||
* @return {Array<SceneItem>} `sources` List of scene items in the new scene. Same specification as [`GetCurrentScene`](#getcurrentscene).
|
||||
*
|
||||
* @api events
|
||||
* @name SwitchScenes
|
||||
@ -1435,7 +1435,7 @@ void WSEvents::OnSceneItemDeselected(void* param, calldata_t* data) {
|
||||
* The selected preview scene has changed (only available in Studio Mode).
|
||||
*
|
||||
* @return {String} `scene-name` Name of the scene being previewed.
|
||||
* @return {Array<Source>} `sources` List of sources composing the scene. Same specification as [`GetCurrentScene`](#getcurrentscene).
|
||||
* @return {Array<SceneItem>} `sources` List of sources composing the scene. Same specification as [`GetCurrentScene`](#getcurrentscene).
|
||||
*
|
||||
* @api events
|
||||
* @name PreviewSceneChanged
|
||||
|
@ -5,7 +5,7 @@
|
||||
/**
|
||||
* @typedef {Object} `Scene`
|
||||
* @property {String} `name` Name of the currently active scene.
|
||||
* @property {Array<Source>} `sources` Ordered list of the current scene's source items.
|
||||
* @property {Array<SceneItem>} `sources` Ordered list of the current scene's source items.
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -38,7 +38,7 @@ HandlerResponse WSRequestHandler::HandleSetCurrentScene(WSRequestHandler* req) {
|
||||
* Get the current scene's name and source items.
|
||||
*
|
||||
* @return {String} `name` Name of the currently active scene.
|
||||
* @return {Array<Source>} `sources` Ordered list of the current scene's source items.
|
||||
* @return {Array<SceneItem>} `sources` Ordered list of the current scene's source items.
|
||||
*
|
||||
* @api requests
|
||||
* @name GetCurrentScene
|
||||
|
@ -26,7 +26,7 @@ HandlerResponse WSRequestHandler::HandleGetStudioModeStatus(WSRequestHandler* re
|
||||
* Will return an `error` if Studio Mode is not enabled.
|
||||
*
|
||||
* @return {String} `name` The name of the active preview scene.
|
||||
* @return {Array<Source>} `sources`
|
||||
* @return {Array<SceneItem>} `sources`
|
||||
*
|
||||
* @api requests
|
||||
* @name GetPreviewScene
|
||||
|
Loading…
x
Reference in New Issue
Block a user