瀏覽代碼

docs: Add obs_properties_add_button2

gxalpha 2 年之前
父節點
當前提交
32713eb95e
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      docs/sphinx/reference-properties.rst

+ 4 - 1
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: