From 32713eb95e8e063eed577e9add753ce803ed39c0 Mon Sep 17 00:00:00 2001 From: gxalpha Date: Fri, 14 Jul 2023 14:02:52 +0200 Subject: [PATCH] docs: Add obs_properties_add_button2 --- docs/sphinx/reference-properties.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/sphinx/reference-properties.rst b/docs/sphinx/reference-properties.rst index 8693ddbc2..6877c0a1a 100644 --- a/docs/sphinx/reference-properties.rst +++ b/docs/sphinx/reference-properties.rst @@ -245,13 +245,16 @@ Property Object Functions --------------------- .. function:: obs_property_t *obs_properties_add_button(obs_properties_t *props, const char *name, const char *text, obs_property_clicked_t callback) + obs_property_t *obs_properties_add_button2(obs_properties_t *props, const char *name, const char *text, obs_property_clicked_t callback, void *priv) Adds a button property. This property does not actually store any settings; it's used to implement a button in user interface if the properties are used to generate user interface. :param name: Setting identifier string - :param description: Localized name shown to user + :param text: Localized name shown to user + :param callback: Callback to be executed when the button is pressed + :param priv: Pointer passed back as the `data` argument of the callback :return: The property Important Related Functions: