ctrl_video.hpp

来自「video linux conference」· HPP 代码 · 共 60 行

HPP
60
字号
/***************************************************************************** * ctrl_video.hpp ***************************************************************************** * Copyright (C) 2004 VideoLAN * $Id: ctrl_video.hpp 9596 2004-12-17 23:39:34Z ipkiss $ * * Authors: Cyril Deguet     <asmax@via.ecp.fr> * * 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 * (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. * * 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., 59 Temple Place - Suite 330, Boston, MA  02111, USA. *****************************************************************************/#ifndef CTRL_VIDEO_HPP#define CTRL_VIDEO_HPP#include "ctrl_generic.hpp"class VoutWindow;/// Control videoclass CtrlVideo: public CtrlGeneric{    public:        CtrlVideo( intf_thread_t *pIntf, const UString &rHelp,                   VarBool *pVisible );        virtual ~CtrlVideo();        /// Handle an event on the control        virtual void handleEvent( EvtGeneric &rEvent );        /// Check whether coordinates are inside the control        virtual bool mouseOver( int x, int y ) const;        /// Callback for layout resize        virtual void onResize();        /// Draw the control on the given graphics        virtual void draw( OSGraphics &rImage, int xDest, int yDest );        /// Get the type of control (custom RTTI)        virtual string getType() const { return "video"; }    private:        /// Vout window        VoutWindow *m_pVout;};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?