mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-04 10:33:30 +00:00
docs: Add obs_properties_add_button2
This commit is contained in:
parent
84f1e962a1
commit
32713eb95e
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue