VLC
4.0.0-dev
|
Window event callbacks structure. More...
Data Fields | |
void(* | resized )(struct vout_window_t *, unsigned width, unsigned height) |
Callback for window size changes. More... | |
void(* | closed )(struct vout_window_t *) |
Callback for window closing. More... | |
void(* | state_changed )(struct vout_window_t *, unsigned state) |
Callback for window state change. More... | |
void(* | windowed )(struct vout_window_t *) |
Callback for windowed mode. More... | |
void(* | fullscreened )(struct vout_window_t *, const char *id) |
Callback for fullscreen mode. More... | |
void(* | mouse_event )(struct vout_window_t *, const vout_window_mouse_event_t *mouse) |
Callback for pointer input events. More... | |
void(* | keyboard_event )(struct vout_window_t *, unsigned key) |
Callback for keyboard input events. More... | |
void(* | output_event )(struct vout_window_t *, const char *id, const char *desc) |
Callback for fullscreen output enumeration. More... | |
Window event callbacks structure.
This structure provided to vout_window_New() conveys callbacks to handle window events.
As a general rule, the events can occur synchronously or asynchronously from the time that the window is (succesfully) being created by vout_window_New() until the time that the window has been deleted by vout_window_Delete().
void(* vout_window_callbacks::closed) (struct vout_window_t *) |
Callback for window closing.
This callback function (if non-NULL) is invoked upon an external request to close the window. Not all windowing systems support this.
Soon after this callback, the window should be disabled with vout_window_Disable().
Referenced by vout_window_ReportClose().
void(* vout_window_callbacks::fullscreened) (struct vout_window_t *, const char *id) |
Callback for fullscreen mode.
This callback function (if non-NULL) is invoked when the window becomes fullscreen, when it changes to a different fullscreen output, or spuriously when the window remains in fullscreen mode.
id | fullscreen output identifier (NULL if unspecified) |
Referenced by vout_window_ReportFullscreen().
void(* vout_window_callbacks::keyboard_event) (struct vout_window_t *, unsigned key) |
Callback for keyboard input events.
This callback function (if non-NULL) is invoked upon any keyboard key press event, or repetition event, on the window.
key | VLC key code |
Referenced by vout_window_ReportKeyPress().
void(* vout_window_callbacks::mouse_event) (struct vout_window_t *, const vout_window_mouse_event_t *mouse) |
Callback for pointer input events.
This callback function (if non-NULL) is invoked upon any pointer input event on the window. See vout_window_mouse_event_t.
mouse | pointer to the input event. |
Referenced by vout_window_SendMouseEvent().
void(* vout_window_callbacks::output_event) (struct vout_window_t *, const char *id, const char *desc) |
Callback for fullscreen output enumeration.
This callback function (if non-NULL) indicates that a fullscreen output becomes available, changes human-readable description, or becomes unavailable.
id | nul-terminated id fullscreen output identifier (cannot be NULL) |
desc | nul-terminated human-readable description, or NULL if the output has become unavailable |
Referenced by vout_window_ReportOutputDevice().
void(* vout_window_callbacks::resized) (struct vout_window_t *, unsigned width, unsigned height) |
Callback for window size changes.
This callback function is invoked when the windowing system changes the window size.
This event may occur synchronously when the window is created or a size change is requested. It may also occur asynchronously as a consequence of external events from the windowing system, or deferred processing of a size change request.
Referenced by vlc_gl_surface_Create(), and vout_window_ReportSize().
void(* vout_window_callbacks::state_changed) (struct vout_window_t *, unsigned state) |
Callback for window state change.
This callback function (if non-NULL) is invoked when the window state as changed, either as a consequence of vout_window_SetSate() or external events.
state | new window state (see vout_window_state). |
Referenced by vout_window_ReportState().
void(* vout_window_callbacks::windowed) (struct vout_window_t *) |
Callback for windowed mode.
This callback function (if non-NULL) is invoked when the window becomes windowed. It might also occur spuriously if the window remains windowed.
Referenced by vout_window_ReportWindowed().