X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_vout_display.h;h=f5f68177a4b543fcd986363dc2563dbce0f81298;hb=a161bda654bcac72c90214c46c6e814643f12398;hp=5cf2136ad043ce631c554e37ffada90bdb662a0b;hpb=b0fc931f3a6faf28692d8958f28a2c87dc104456;p=vlc diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h index 5cf2136ad0..f5f68177a4 100644 --- a/include/vlc_vout_display.h +++ b/include/vlc_vout_display.h @@ -6,19 +6,19 @@ * * Authors: Laurent Aimar * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ #ifndef VLC_VOUT_DISPLAY_H @@ -172,7 +172,7 @@ enum { VOUT_DISPLAY_CHANGE_SOURCE_CROP, /* const video_format_t *p_source */ /* Ask an opengl interface if available. */ - VOUT_DISPLAY_GET_OPENGL, /* vout_opengl_t ** */ + VOUT_DISPLAY_GET_OPENGL, /* vlc_gl_t ** */ }; /** @@ -411,7 +411,7 @@ static inline void vout_display_DeleteWindow(vout_display_t *vd, * * This asssumes that the picture is already cropped. */ -VLC_EXPORT( void, vout_display_GetDefaultDisplaySize, (unsigned *width, unsigned *height, const video_format_t *source, const vout_display_cfg_t *) ); +VLC_API void vout_display_GetDefaultDisplaySize(unsigned *width, unsigned *height, const video_format_t *source, const vout_display_cfg_t *); /** @@ -434,7 +434,20 @@ typedef struct { * \param p_cfg Display configuration * \param b_clip If true, prevent the video to go outside the display (break zoom). */ -VLC_EXPORT( void, vout_display_PlacePicture, (vout_display_place_t *place, const video_format_t *source, const vout_display_cfg_t *cfg, bool do_clipping) ); +VLC_API void vout_display_PlacePicture(vout_display_place_t *place, const video_format_t *source, const vout_display_cfg_t *cfg, bool do_clipping); + +/** + * Helper function that applies the necessary transforms to the mouse position + * and then calls vout_display_SendEventMouseMoved. + * + * \param vd vout_display_t. + * \param orient_display The orientation of the picture as seen on screen (probably ORIENT_NORMAL). + * \param m_x Mouse x position (relative to place, origin is top left). + * \param m_y Mouse y position (relative to place, origin is top left). + * \param place Place of the picture. + */ +VLC_API void vout_display_SendMouseMovedDisplayCoordinates(vout_display_t *vd, video_orientation_t orient_display, int m_x, int m_y, + vout_display_place_t *place); #endif /* VLC_VOUT_DISPLAY_H */