Commit 1d3367a4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

window: define close event

parent 2669fb9b
......@@ -83,6 +83,7 @@ typedef struct {
typedef struct vout_window_owner {
void *sys;
void (*resized)(vout_window_t *, unsigned width, unsigned height);
void (*closed)(vout_window_t *);
} vout_window_owner_t;
/**
......@@ -200,4 +201,10 @@ static inline void vout_window_ReportSize(vout_window_t *window,
window->owner.resized(window, width, height);
}
static inline void vout_window_ReportClose(vout_window_t *window)
{
if (window->owner.closed != NULL)
window->owner.closed(window);
}
#endif /* VLC_VOUT_WINDOW_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment