vlc | branch: master | Steve Lhomme <[email protected]> | Wed Mar 27 10:13:42 2019 +0100| [2d5e18b9d2194ce818a93410ecee63f9e9052603] | committer: Steve Lhomme
window: add an API to set the window title This has no effect on embedded windows. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2d5e18b9d2194ce818a93410ecee63f9e9052603 --- include/vlc_vout_window.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/vlc_vout_window.h b/include/vlc_vout_window.h index 27cceaa955..916bc2e333 100644 --- a/include/vlc_vout_window.h +++ b/include/vlc_vout_window.h @@ -316,6 +316,7 @@ struct vout_window_operations { void (*set_state)(struct vout_window_t *, unsigned state); void (*unset_fullscreen)(struct vout_window_t *); void (*set_fullscreen)(struct vout_window_t *, const char *id); + void (*set_title)(struct vout_window_t *, const char *id); }; /** @@ -489,6 +490,18 @@ static inline void vout_window_UnsetFullScreen(vout_window_t *window) } /** + * Request a new window title. + * + * \param window window to change the title. + * \param title window title to use. + */ +static inline void vout_window_SetTitle(vout_window_t *window, const char *title) +{ + if (window->ops->set_title != NULL) + window->ops->set_title(window, title); +} + +/** * Enables a window. * * This informs the window provider that the window is about to be taken into _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
