0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

docs: Add entries for Frontend API T-bar control

This commit is contained in:
Christopher P. Yarger 2021-03-05 02:26:18 -05:00 committed by Jim
parent 25a335dc3c
commit dcf3e6cd06

View File

@ -147,6 +147,10 @@ Structures/Enumerations
- **OBS_FRONTEND_EVENT_VIRTUALCAM_STOPPED**
Triggered when the virtual camera is stopped.
- **OBS_FRONTEND_EVENT_TBAR_VALUE_CHANGED**
Triggered when the transition bar is moved.
.. type:: struct obs_frontend_source_list
@ -595,3 +599,27 @@ Functions
.. function:: void obs_frontend_reset_video(void)
Reloads the UI canvas and resets libobs video with latest data from profile.
---------------------------------------
.. function:: void obs_frontend_release_tbar(void);
Emulate a mouse button release on the transition bar and determine transition status.
---------------------------------------
.. function:: void obs_frontend_set_tbar_position(int position)
Set the value of the transition bar.
:param position: The position to set the T-bar to, with a value in 0-1023.
:type position: int
---------------------------------------
.. function:: int obs_frontend_get_tbar_position(void)
Get the value of the transition bar.
:return: The value of the position of the T-bar to, with a value in 0-1023.
:rtype: int