reference-properties.rst 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767
  1. Properties API Reference (obs_properties_t)
  2. ===========================================
  3. Properties are used to enumerate available settings for a libobs object.
  4. Typically this is used to automatically generate user interface widgets,
  5. though can be used to enumerate available and/or valid values for
  6. specific settings as well.
  7. .. type:: obs_properties_t
  8. Properties object (not reference counted).
  9. .. type:: obs_property_t
  10. A property object (not reference counted).
  11. .. code:: cpp
  12. #include <obs.h>
  13. General Functions
  14. -----------------
  15. .. function:: obs_properties_t *obs_properties_create(void)
  16. :return: A new properties object.
  17. ---------------------
  18. .. function:: obs_properties_t *obs_properties_create_param(void *param, void (*destroy)(void *param))
  19. Creates a new properties object with specific private data *param*
  20. associated with the object, and is automatically freed with the
  21. object when the properties are destroyed via the *destroy* function.
  22. :return: A new properties object.
  23. ---------------------
  24. .. function:: void obs_properties_destroy(obs_properties_t *props)
  25. ---------------------
  26. .. function:: void obs_properties_set_flags(obs_properties_t *props, uint32_t flags)
  27. uint32_t obs_properties_get_flags(obs_properties_t *props)
  28. :param flags: 0 or a bitwise OR combination of one of the following
  29. values:
  30. - OBS_PROPERTIES_DEFER_UPDATE - A hint that tells the
  31. front-end to defers updating the settings until the
  32. user has finished editing all properties rather than
  33. immediately updating any settings. Currently only
  34. works for properties of input and transition sources,
  35. this flag is a no-op for other properties at this time.
  36. ---------------------
  37. .. function:: void obs_properties_set_param(obs_properties_t *props, void *param, void (*destroy)(void *param))
  38. void *obs_properties_get_param(obs_properties_t *props)
  39. Sets custom data associated with this properties object. If private
  40. data is already associated with the object, that private data will be
  41. destroyed before assigning new private data to it.
  42. ---------------------
  43. .. function:: void obs_properties_apply_settings(obs_properties_t *props, obs_data_t *settings)
  44. Applies settings to the properties by calling all the necessary
  45. modification callbacks
  46. ---------------------
  47. .. function:: obs_properties_t *obs_properties_get_parent(obs_properties_t *props)
  48. ---------------------
  49. Property Object Functions
  50. -------------------------
  51. .. function:: obs_property_t *obs_properties_add_bool(obs_properties_t *props, const char *name, const char *description)
  52. Adds a boolean property.
  53. :param name: Setting identifier string
  54. :param description: Localized name shown to user
  55. :return: The property
  56. ---------------------
  57. .. function:: obs_property_t *obs_properties_add_int(obs_properties_t *props, const char *name, const char *description, int min, int max, int step)
  58. Adds an integer property.
  59. :param name: Setting identifier string
  60. :param description: Localized name shown to user
  61. :param min: Minimum value
  62. :param max: Maximum value
  63. :param step: Step value
  64. :return: The property
  65. ---------------------
  66. .. function:: obs_property_t *obs_properties_add_float(obs_properties_t *props, const char *name, const char *description, double min, double max, double step)
  67. :param name: Setting identifier string
  68. :param description: Localized name shown to user
  69. :param min: Minimum value
  70. :param max: Maximum value
  71. :param step: Step value
  72. :return: The property
  73. ---------------------
  74. .. function:: obs_property_t *obs_properties_add_int_slider(obs_properties_t *props, const char *name, const char *description, int min, int max, int step)
  75. :param name: Setting identifier string
  76. :param description: Localized name shown to user
  77. :param min: Minimum value
  78. :param max: Maximum value
  79. :param step: Step value
  80. :return: The property
  81. ---------------------
  82. .. function:: obs_property_t *obs_properties_add_float_slider(obs_properties_t *props, const char *name, const char *description, double min, double max, double step)
  83. :param name: Setting identifier string
  84. :param description: Localized name shown to user
  85. :param min: Minimum value
  86. :param max: Maximum value
  87. :param step: Step value
  88. :return: The property
  89. ---------------------
  90. .. function:: obs_property_t *obs_properties_add_text(obs_properties_t *props, const char *name, const char *description, enum obs_text_type type)
  91. :param name: Setting identifier string
  92. :param description: Localized name shown to user
  93. :param type: Can be one of the following values:
  94. - **OBS_TEXT_DEFAULT** - Single line of text
  95. - **OBS_TEXT_PASSWORD** - Single line of text (passworded)
  96. - **OBS_TEXT_MULTILINE** - Multi-line text
  97. - **OBS_TEXT_INFO** - Read-only informative text, behaves differently
  98. depending on wether description, string value and long description
  99. are set
  100. :return: The property
  101. Important Related Functions:
  102. - :c:func:`obs_property_text_set_info_type`
  103. - :c:func:`obs_property_text_set_info_word_wrap`
  104. ---------------------
  105. .. function:: obs_property_t *obs_properties_add_path(obs_properties_t *props, const char *name, const char *description, enum obs_path_type type, const char *filter, const char *default_path)
  106. Adds a 'path' property. Can be a directory or a file.
  107. If target is a file path, the filters should be this format, separated by
  108. double semicolons, and extensions separated by space::
  109. "Example types 1 and 2 (*.ex1 *.ex2);;Example type 3 (*.ex3)"
  110. :param name: Setting identifier string
  111. :param description: Localized name shown to user
  112. :param type: Can be one of the following values:
  113. - **OBS_PATH_FILE** - File (for reading)
  114. - **OBS_PATH_FILE_SAVE** - File (for writing)
  115. - **OBS_PATH_DIRECTORY** - Directory
  116. :param filter: If type is a file path, then describes the file filter
  117. that the user can browse. Items are separated via
  118. double semicolons. If multiple file types in a
  119. filter, separate with space.
  120. :param default_path: The default path to start in, or *NULL*
  121. :return: The property
  122. ---------------------
  123. .. function:: obs_property_t *obs_properties_add_list(obs_properties_t *props, const char *name, const char *description, enum obs_combo_type type, enum obs_combo_format format)
  124. Adds an integer/string/floating point item list. This would be
  125. implemented as a combo box in user interface.
  126. :param name: Setting identifier string
  127. :param description: Localized name shown to user
  128. :param type: Can be one of the following values:
  129. - **OBS_COMBO_TYPE_EDITABLE** - Can be edited.
  130. Only used with string lists.
  131. - **OBS_COMBO_TYPE_LIST** - Not editable. Displayed as combo box.
  132. - **OBS_COMBO_TYPE_RADIO** - Not editable. Displayed as radio buttons.
  133. :param format: Can be one of the following values:
  134. - **OBS_COMBO_FORMAT_INT** - Integer list
  135. - **OBS_COMBO_FORMAT_FLOAT** - Floating point
  136. list
  137. - **OBS_COMBO_FORMAT_STRING** - String list
  138. - **OBS_COMBO_FORMAT_BOOL** - Boolean list
  139. :return: The property
  140. Important Related Functions:
  141. - :c:func:`obs_property_list_add_string`
  142. - :c:func:`obs_property_list_add_int`
  143. - :c:func:`obs_property_list_add_float`
  144. - :c:func:`obs_property_list_insert_string`
  145. - :c:func:`obs_property_list_insert_int`
  146. - :c:func:`obs_property_list_insert_float`
  147. - :c:func:`obs_property_list_item_remove`
  148. - :c:func:`obs_property_list_clear`
  149. ---------------------
  150. .. function:: obs_property_t *obs_properties_add_color(obs_properties_t *props, const char *name, const char *description)
  151. Adds a color property without alpha (stored internally with an alpha value of 255).
  152. The color can be retrieved from an :c:type:`obs_data_t` object by using :c:func:`obs_data_get_int()`.
  153. :param name: Setting identifier string
  154. :param description: Localized name shown to user
  155. :return: The property
  156. ---------------------
  157. .. function:: obs_property_t *obs_properties_add_color_alpha(obs_properties_t *props, const char *name, const char *description)
  158. Adds a color property with alpha. The color can be retrieved from an
  159. :c:type:`obs_data_t` object by using :c:func:`obs_data_get_int()`.
  160. :param name: Setting identifier string
  161. :param description: Localized name shown to user
  162. :return: The property
  163. ---------------------
  164. .. function:: obs_property_t *obs_properties_add_button(obs_properties_t *props, const char *name, const char *text, obs_property_clicked_t callback)
  165. obs_property_t *obs_properties_add_button2(obs_properties_t *props, const char *name, const char *text, obs_property_clicked_t callback, void *priv)
  166. Adds a button property. This property does not actually store any
  167. settings; it's used to implement a button in user interface if the
  168. properties are used to generate user interface.
  169. :param name: Setting identifier string
  170. :param text: Localized name shown to user
  171. :param callback: Callback to be executed when the button is pressed
  172. :param priv: Pointer passed back as the `data` argument of the callback
  173. :return: The property
  174. Important Related Functions:
  175. - :c:func:`obs_property_button_set_type`
  176. - :c:func:`obs_property_button_set_url`
  177. For scripting, use :py:func:`obs_properties_add_button`.
  178. Relevant data types used with this function:
  179. .. code:: cpp
  180. typedef bool (*obs_property_clicked_t)(obs_properties_t *props,
  181. obs_property_t *property, void *data);
  182. ---------------------
  183. .. function:: obs_property_t *obs_properties_add_font(obs_properties_t *props, const char *name, const char *description)
  184. Adds a font property. The font can be retrieved from an :c:type:`obs_data_t`
  185. object by using :c:func:`obs_data_get_obj()`.
  186. :param name: Setting identifier string
  187. :param description: Localized name shown to user
  188. :return: The property
  189. ---------------------
  190. .. function:: obs_property_t *obs_properties_add_editable_list(obs_properties_t *props, const char *name, const char *description, enum obs_editable_list_type type, const char *filter, const char *default_path)
  191. Adds a list in which the user can add/insert/remove items. The items can be
  192. retrieved from an :c:type:`obs_data_t` object by using :c:func:`obs_data_get_array()`.
  193. :param name: Setting identifier string
  194. :param description: Localized name shown to user
  195. :param type: Can be one of the following values:
  196. - **OBS_EDITABLE_LIST_TYPE_STRINGS** - An
  197. editable list of strings.
  198. - **OBS_EDITABLE_LIST_TYPE_FILES** - An
  199. editable list of files.
  200. - **OBS_EDITABLE_LIST_TYPE_FILES_AND_URLS** -
  201. An editable list of files and URLs.
  202. :param filter: File filter to use if a file list
  203. :param default_path: Default path if a file list
  204. :return: The property
  205. ---------------------
  206. .. function:: obs_property_t *obs_properties_add_frame_rate(obs_properties_t *props, const char *name, const char *description)
  207. Adds a frame rate property.
  208. :param name: Setting identifier string
  209. :param description: Localized name shown to user
  210. :return: The property
  211. Important Related Functions:
  212. - :c:func:`obs_property_frame_rate_option_add`
  213. - :c:func:`obs_property_frame_rate_fps_range_add`
  214. - :c:func:`obs_property_frame_rate_option_insert`
  215. - :c:func:`obs_property_frame_rate_fps_range_insert`
  216. ---------------------
  217. .. function:: obs_property_t *obs_properties_add_group(obs_properties_t *props, const char *name, const char *description, enum obs_group_type type, obs_properties_t *group)
  218. Adds a property group.
  219. :param name: Setting identifier string
  220. :param description: Localized name shown to user
  221. :param type: Can be one of the following values:
  222. - **OBS_GROUP_NORMAL** - A normal group with just a name and content.
  223. - **OBS_GROUP_CHECKABLE** - A checkable group with a checkbox, name and content.
  224. :param group: Group to add
  225. :return: The property
  226. Important Related Functions:
  227. - :c:func:`obs_property_group_type`
  228. - :c:func:`obs_property_group_content`
  229. - :c:func:`obs_properties_get_parent`
  230. ---------------------
  231. Property Enumeration Functions
  232. ------------------------------
  233. .. function:: obs_property_t *obs_properties_first(obs_properties_t *props)
  234. :return: The first property in the properties object.
  235. ---------------------
  236. .. function:: obs_property_t *obs_properties_get(obs_properties_t *props, const char *property)
  237. :param property: The name of the property to get
  238. :return: A specific property or *NULL* if not found
  239. ---------------------
  240. .. function:: bool obs_property_next(obs_property_t **p)
  241. :param p: Pointer to the pointer of the next property
  242. :return: *true* if successful, *false* if no more properties
  243. ---------------------
  244. .. function:: const char * obs_property_name(obs_property_t *p)
  245. :return: The setting identifier string of the property
  246. *(Author's Note: "name" was a bad name to use here. Should have been
  247. "setting")*
  248. ---------------------
  249. .. function:: const char * obs_property_description(obs_property_t *p)
  250. :return: The actual localized display name of the property
  251. *(Author's note: This one should have been the "name")*
  252. ---------------------
  253. .. function:: const char * obs_property_long_description(obs_property_t *p)
  254. :return: A detailed description of what the setting is used for.
  255. Usually used with things like tooltips.
  256. ---------------------
  257. .. function:: enum obs_property_type obs_property_get_type(obs_property_t *p)
  258. :return: One of the following values:
  259. - OBS_PROPERTY_INVALID
  260. - OBS_PROPERTY_BOOL
  261. - OBS_PROPERTY_INT
  262. - OBS_PROPERTY_FLOAT
  263. - OBS_PROPERTY_TEXT
  264. - OBS_PROPERTY_PATH
  265. - OBS_PROPERTY_LIST
  266. - OBS_PROPERTY_COLOR
  267. - OBS_PROPERTY_BUTTON
  268. - OBS_PROPERTY_FONT
  269. - OBS_PROPERTY_EDITABLE_LIST
  270. - OBS_PROPERTY_FRAME_RATE
  271. - OBS_PROPERTY_GROUP
  272. ---------------------
  273. .. function:: bool obs_property_enabled(obs_property_t *p)
  274. ---------------------
  275. .. function:: bool obs_property_visible(obs_property_t *p)
  276. ---------------------
  277. .. function:: int obs_property_int_min(obs_property_t *p)
  278. ---------------------
  279. .. function:: int obs_property_int_max(obs_property_t *p)
  280. ---------------------
  281. .. function:: int obs_property_int_step(obs_property_t *p)
  282. ---------------------
  283. .. function:: enum obs_number_type obs_property_int_type(obs_property_t *p)
  284. ---------------------
  285. .. function:: double obs_property_float_min(obs_property_t *p)
  286. ---------------------
  287. .. function:: double obs_property_float_max(obs_property_t *p)
  288. ---------------------
  289. .. function:: double obs_property_float_step(obs_property_t *p)
  290. ---------------------
  291. .. function:: enum obs_number_type obs_property_float_type(obs_property_t *p)
  292. ---------------------
  293. .. function:: enum obs_text_type obs_property_text_type(obs_property_t *p)
  294. ---------------------
  295. .. function:: enum obs_text_info_type obs_property_text_info_type(obs_property_t *p)
  296. :return: One of the following values:
  297. - OBS_TEXT_INFO_NORMAL
  298. - OBS_TEXT_INFO_WARNING
  299. - OBS_TEXT_INFO_ERROR
  300. ---------------------
  301. .. function:: bool obs_property_text_info_word_wrap(obs_property_t *p)
  302. ---------------------
  303. .. function:: enum obs_path_type obs_property_path_type(obs_property_t *p)
  304. ---------------------
  305. .. function:: const char * obs_property_path_filter(obs_property_t *p)
  306. ---------------------
  307. .. function:: const char * obs_property_path_default_path(obs_property_t *p)
  308. ---------------------
  309. .. function:: enum obs_combo_type obs_property_list_type(obs_property_t *p)
  310. ---------------------
  311. .. function:: enum obs_combo_format obs_property_list_format(obs_property_t *p)
  312. ---------------------
  313. .. function:: bool obs_property_list_item_disabled(obs_property_t *p, size_t idx)
  314. ---------------------
  315. .. function:: size_t obs_property_list_item_count(obs_property_t *p)
  316. ---------------------
  317. .. function:: const char *obs_property_list_item_name(obs_property_t *p, size_t idx)
  318. ---------------------
  319. .. function:: const char *obs_property_list_item_string(obs_property_t *p, size_t idx)
  320. ---------------------
  321. .. function:: long long obs_property_list_item_int(obs_property_t *p, size_t idx)
  322. ---------------------
  323. .. function:: double obs_property_list_item_float(obs_property_t *p, size_t idx)
  324. ---------------------
  325. .. function:: enum obs_editable_list_type obs_property_editable_list_type(obs_property_t *p)
  326. ---------------------
  327. .. function:: const char *obs_property_editable_list_filter(obs_property_t *p)
  328. ---------------------
  329. .. function:: const char *obs_property_editable_list_default_path(obs_property_t *p)
  330. ---------------------
  331. .. function:: size_t obs_property_frame_rate_options_count(obs_property_t *p)
  332. ---------------------
  333. .. function:: const char *obs_property_frame_rate_option_name(obs_property_t *p, size_t idx)
  334. ---------------------
  335. .. function:: const char *obs_property_frame_rate_option_description( obs_property_t *p, size_t idx)
  336. ---------------------
  337. .. function:: size_t obs_property_frame_rate_fps_ranges_count(obs_property_t *p)
  338. ---------------------
  339. .. function:: struct media_frames_per_second obs_property_frame_rate_fps_range_min( obs_property_t *p, size_t idx)
  340. ---------------------
  341. .. function:: struct media_frames_per_second obs_property_frame_rate_fps_range_max( obs_property_t *p, size_t idx)
  342. ---------------------
  343. .. function:: enum obs_button_type obs_property_button_type(obs_property_t *p)
  344. :return: One of the following values:
  345. - OBS_BUTTON_DEFAULT
  346. - OBS_BUTTON_URL
  347. ---------------------
  348. .. function:: const char *obs_property_button_url(obs_property_t *p)
  349. ---------------------
  350. .. function:: enum obs_group_type obs_property_group_type(obs_property_t *p)
  351. :return: One of the following values:
  352. - OBS_COMBO_INVALID
  353. - OBS_GROUP_NORMAL
  354. - OBS_GROUP_CHECKABLE
  355. ---------------------
  356. .. function:: obs_properties_t *obs_property_group_content(obs_property_t *p)
  357. ---------------------
  358. Property Modification Functions
  359. -------------------------------
  360. .. function:: void obs_property_set_modified_callback(obs_property_t *p, obs_property_modified_t modified)
  361. void obs_property_set_modified_callback2(obs_property_t *p, obs_property_modified2_t modified2, void *priv)
  362. Allows the ability to change the properties depending on what
  363. settings are used by the user. The callback should return ``true``
  364. if the property widgets need to be refreshed due to changes to the
  365. property layout.
  366. Relevant data types used with these functions:
  367. .. code:: cpp
  368. typedef bool (*obs_property_modified_t)(obs_properties_t *props,
  369. obs_property_t *property, obs_data_t *settings);
  370. typedef bool (*obs_property_modified2_t)(void *priv,
  371. obs_properties_t *props, obs_property_t *property,
  372. obs_data_t *settings);
  373. ---------------------
  374. .. function:: bool obs_property_modified(obs_property_t *p, obs_data_t *settings)
  375. ---------------------
  376. .. function:: bool obs_property_button_clicked(obs_property_t *p, void *obj)
  377. ---------------------
  378. .. function:: void obs_property_set_visible(obs_property_t *p, bool visible)
  379. ---------------------
  380. .. function:: void obs_property_set_enabled(obs_property_t *p, bool enabled)
  381. ---------------------
  382. .. function:: void obs_property_set_description(obs_property_t *p, const char *description)
  383. Sets the displayed localized name of the property, shown to the user.
  384. ---------------------
  385. .. function:: void obs_property_set_long_description(obs_property_t *p, const char *long_description)
  386. Sets the localized long description of the property, usually shown to
  387. a user via tooltip.
  388. ---------------------
  389. .. function:: void obs_property_int_set_limits(obs_property_t *p, int min, int max, int step)
  390. ---------------------
  391. .. function:: void obs_property_float_set_limits(obs_property_t *p, double min, double max, double step)
  392. ---------------------
  393. .. function:: void obs_property_text_set_info_type(obs_property_t *p, enum obs_text_info_type type)
  394. :param type: Can be one of the following values:
  395. - **OBS_TEXT_INFO_NORMAL** - To show a basic message
  396. - **OBS_TEXT_INFO_WARNING** - To show a warning
  397. - **OBS_TEXT_INFO_ERROR** - To show an error
  398. ---------------------
  399. .. function:: void obs_property_text_set_info_word_wrap(obs_property_t *p, bool word_wrap)
  400. ---------------------
  401. .. function:: void obs_property_list_clear(obs_property_t *p)
  402. ---------------------
  403. .. function:: size_t obs_property_list_add_string(obs_property_t *p, const char *name, const char *val)
  404. Adds a string to a string list.
  405. :param name: Localized name shown to user
  406. :param val: The actual string value stored and will be returned by :c:func:`obs_data_get_string`
  407. :returns: The index of the list item.
  408. ---------------------
  409. .. function:: size_t obs_property_list_add_int(obs_property_t *p, const char *name, long long val)
  410. Adds an integer to a integer list.
  411. :param name: Localized name shown to user
  412. :param val: The actual int value stored and will be returned by :c:func:`obs_data_get_int`
  413. :returns: The index of the list item.
  414. ---------------------
  415. .. function:: size_t obs_property_list_add_float(obs_property_t *p, const char *name, double val)
  416. Adds a floating point to a floating point list.
  417. :param name: Localized name shown to user
  418. :param val: The actual float value stored and will be returned by :c:func:`obs_data_get_double`
  419. :returns: The index of the list item.
  420. ---------------------
  421. .. function:: void obs_property_list_insert_string(obs_property_t *p, size_t idx, const char *name, const char *val)
  422. Inserts a string in to a string list.
  423. :param idx: The index of the list item
  424. :param name: Localized name shown to user
  425. :param val: The actual string value stored and will be returned by :c:func:`obs_data_get_string`
  426. ---------------------
  427. .. function:: void obs_property_list_insert_int(obs_property_t *p, size_t idx, const char *name, long long val)
  428. Inserts an integer in to an integer list.
  429. :param idx: The index of the list item
  430. :param name: Localized name shown to user
  431. :param val: The actual int value stored and will be returned by :c:func:`obs_data_get_int`
  432. ---------------------
  433. .. function:: void obs_property_list_insert_float(obs_property_t *p, size_t idx, const char *name, double val)
  434. Inserts a floating point in to a floating point list.
  435. :param idx: The index of the list item.
  436. :param name: Localized name shown to user
  437. :param val: The actual float value stored and will be returned by :c:func:`obs_data_get_double`
  438. ---------------------
  439. .. function:: void obs_property_list_item_disable(obs_property_t *p, size_t idx, bool disabled)
  440. ---------------------
  441. .. function:: void obs_property_list_item_remove(obs_property_t *p, size_t idx)
  442. ---------------------
  443. .. function:: size_t obs_property_frame_rate_option_add(obs_property_t *p, const char *name, const char *description)
  444. ---------------------
  445. .. function:: size_t obs_property_frame_rate_fps_range_add(obs_property_t *p, struct media_frames_per_second min, struct media_frames_per_second max)
  446. ---------------------
  447. .. function:: void obs_property_frame_rate_clear(obs_property_t *p)
  448. ---------------------
  449. .. function:: void obs_property_frame_rate_options_clear(obs_property_t *p)
  450. ---------------------
  451. .. function:: void obs_property_frame_rate_fps_ranges_clear(obs_property_t *p)
  452. ---------------------
  453. .. function:: void obs_property_frame_rate_option_insert(obs_property_t *p, size_t idx, const char *name, const char *description)
  454. ---------------------
  455. .. function:: void obs_property_frame_rate_fps_range_insert(obs_property_t *p, size_t idx, struct media_frames_per_second min, struct media_frames_per_second max)
  456. ---------------------
  457. .. function:: void obs_property_button_set_type(obs_property_t *p, enum obs_button_type type)
  458. :param type: Can be one of the following values:
  459. - **OBS_BUTTON_DEFAULT** - Standard button
  460. - **OBS_BUTTON_URL** - Button that opens a URL
  461. :return: The property
  462. ---------------------
  463. .. function:: void obs_property_button_set_url(obs_property_t *p, char *url)